Skip to content

Commit

Permalink
fix(authenticator): ARB syntax (#2560)
Browse files Browse the repository at this point in the history
Remove unncessary commas
  • Loading branch information
dnys1 authored Jan 10, 2023
1 parent 65e1fb9 commit db69cce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db69cce

Please sign in to comment.