Skip to content

Commit

Permalink
fixed signIn method case (#5049)
Browse files Browse the repository at this point in the history
  • Loading branch information
malaquf authored Mar 19, 2024
1 parent b6adb66 commit 40bea5c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ To use localization, start by following the steps in the [Flutter Localization g

```json
{
"signin": "Sign In - Localized!",
"@signin": {
"signIn": "Sign In - Localized!",
"@signIn": {
"description": "Label of the button to sign in the user."
}
}
Expand All @@ -13,7 +13,7 @@ Then, to add support for another language, create a another file for that langua

```json
{
"signin": "Iniciar Sesión"
"signIn": "Iniciar Sesión"
}
```

Expand All @@ -32,10 +32,10 @@ Then create a `ButtonResolver` and pass it to an `AuthStringResolver`, and in tu
class LocalizedButtonResolver extends ButtonResolver {
const LocalizedButtonResolver();
/// Override the signin function with a localized value
/// Override the signIn function with a localized value
@override
String signin(BuildContext context) {
return AppLocalizations.of(context).signin;
String signIn(BuildContext context) {
return AppLocalizations.of(context).signIn;
}
}
Expand Down

0 comments on commit 40bea5c

Please sign in to comment.