docs: Document sign-in widget localization#703
Conversation
Promote localization to its own section, since SignInLocalizationProvider applies to every authentication widget and not only to SignInWidget. List the text objects before the example so the reader can read the code, split the partial translation and locale notes into their own subsections, and keep the existing heading wording intact.
|
The PR description says the example translates into Brazilian Portuguese, but all the strings in the diff are English. The English version reads well as an API reference, so maybe just update the description, or give the copyWith example one non-English string (e.g. signIn: 'Entrar') so the translation point shows. |
developerjamiu
left a comment
There was a problem hiding this comment.
Changes looks good! Please check the added (minor) comment before merge
Updated the stale description. It wasn't even supposed for the PR description to be that long, but the agent went ahead of itself creating the PR without permission, and I forgot to review the PR description after pushing my code review. |
Summary
SignInLocalizationProviderlets an app replace the English text of the authentication widgets, but nothing in the docs mentioned it.Changes
SignInWidget.defaults.copyWithcovers partial translations.Locale, and that the app has to rebuild it when the locale changes.Reference