diff --git a/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_en.arb b/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_en.arb index 3ae6122a7d..5f1779ba00 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_en.arb +++ b/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_en.arb @@ -57,24 +57,22 @@ "@signOut": { "description": "Label of button to sign out the user" }, - "backTo": "Back to {previousStep, select, signUp{Sign Up}, signIn{Sign In}, confirmSignUp{Confirm Sign-up}, confirmSignInMfa{Confirm Sign-in} confirmSignInNewPassword{Confirm Sign-in} sendCode{Send Code} resetPassword{Reset Password} verifyUser{Verify User} confirmVerifyUser{Confirm Verify User}}", + "backTo": "Back to {previousStep, select, signUp{Sign Up} signIn{Sign In} confirmSignUp{Confirm Sign-up} confirmSignInMfa{Confirm Sign-in} confirmSignInNewPassword{Confirm Sign-in} sendCode{Send Code} resetPassword{Reset Password} verifyUser{Verify User} confirmVerifyUser{Confirm Verify User} other{ERROR}}", "@backTo": { "description": "Label of button to return to the previous step", "placeholders": { "previousStep": { - "type": "AuthenticatorStep", "example": "signIn", "description": "The title of the previous step." } } }, - "signInWith": "Sign In with {provider, select, google{Google} facebook{Facebook} amazon{Amazon} apple{Apple}}", + "signInWith": "Sign In with {provider, select, google{Google} facebook{Facebook} amazon{Amazon} apple{Apple} other{ERROR}}", "@signInWith": { "description": "Label of button to sign in with a social provider", "placeholders": { "provider": { - "type": "AuthProvider", - "example": "Google", + "example": "google", "description": "The social sign-in provider" } } diff --git a/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_es.arb b/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_es.arb index 7917ec4490..1b726119eb 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_es.arb +++ b/packages/authenticator/amplify_authenticator/example/lib/l10n/amplify_es.arb @@ -13,8 +13,8 @@ "verify": "Verificar", "skip": "Omitir", "signOut": "Salir", - "backTo": "Regresar al {previousStep, select, signUp{registro}, signIn{inicio de sesión}, confirmSignUp{Confirmar registro}, confirmSignInMfa{Confirmar inicio de sesión} confirmSignInNewPassword{Confirmar inicio de sesión} sendCode{Enviar código} resetPassword{Restablecer contraseña} verifyUser{Verificar usuario} confirmVerifyUser{Confirmar verificación de usuario}}", - "signInWith": "Iniciar Sesión con {provider, select, google{Google} facebook{Facebook} amazon{Amazon} apple{Apple}}", + "backTo": "Regresar al {previousStep, select, signUp{registro} signIn{inicio de sesión} confirmSignUp{Confirmar registro} confirmSignInMfa{Confirmar inicio de sesión} confirmSignInNewPassword{Confirmar inicio de sesión} sendCode{Enviar código} resetPassword{Restablecer contraseña} verifyUser{Verificar usuario} confirmVerifyUser{Confirmar verificación de usuario} other{ERROR}}", + "signInWith": "Iniciar Sesión con {provider, select, google{Google} facebook{Facebook} amazon{Amazon} apple{Apple} other{ERROR}}", "us": "Estados Unidos", "selectDialCode": "seleccionar país", "confirmSignInCustomAuth": "Título de formulario personalizado" diff --git a/packages/authenticator/amplify_authenticator/example/lib/resolvers/localized_button_resolver.dart b/packages/authenticator/amplify_authenticator/example/lib/resolvers/localized_button_resolver.dart index c31c821846..bdd106874a 100644 --- a/packages/authenticator/amplify_authenticator/example/lib/resolvers/localized_button_resolver.dart +++ b/packages/authenticator/amplify_authenticator/example/lib/resolvers/localized_button_resolver.dart @@ -56,12 +56,12 @@ class LocalizedButtonResolver extends ButtonResolver { @override String signInWith(BuildContext context, AuthProvider provider) { - return AppLocalizations.of(context).signInWith(provider); + return AppLocalizations.of(context).signInWith(provider.name); } @override String backTo(BuildContext context, AuthenticatorStep previousStep) { - return AppLocalizations.of(context).backTo(previousStep); + return AppLocalizations.of(context).backTo(previousStep.name); } @override