Skip to content

Instantly share code, notes, and snippets.

@reisjr
Created October 4, 2020 18:41
Show Gist options
  • Save reisjr/ff3b302f18bff73e47c3c867c66282e9 to your computer and use it in GitHub Desktop.
Save reisjr/ff3b302f18bff73e47c3c867c66282e9 to your computer and use it in GitHub Desktop.
amplify translation
// https://github.com/aws-amplify/amplify-js/issues/4639
const dict = {
"pt-br": {
"Sign In": "Entrar",
"Sign in": "Entrar",
"Sign Up": "Registrar",
"Sign Out": "Sair",
"Confirm Sign Up": "Confirmar Registro",
"Username": "Usuário",
"Password": "Senha",
"Forgot Password": "Esqueceu sua senha?!",
"Change Password": "Trocar senha",
"Create Account": "Criar conta",
"Create account": "Criar conta",
"Create a new account": "Criar nova conta",
"New Password": "Nova senha",
"Phone Number": "Telefone",
"Sign in with your": "Entre com",
"Username cannot be empty": "Usuario não pode estar vazio",
"Enter your username": "Entre seu usuário",
"Enter your password": "Entre sua senha",
"No account? ": "Ainda não tem conta? ",
"Sign in to your account": "Entrar na sua conta",
"Reset password": "Recuperar senha",
"Forget your password? ": "Esqueceu a senha? ",
"Have an account? ": "Já tem uma conta? ",
"Confirmation Code": "Código de Confirmação ",
"Lost your code? ": "Esqueceu o código? ",
"Resend Code": "Reenviar código",
"Enter your code": "Entre o seu código",
"Back to Sign In": "Voltar ao Login",
"Confirm": "Confirmar",
"Reset your password": "Recuperar sua senha",
"Send Code": "Enviar código",
"User already exists": "Usuário já existe."
}
};
I18n.setLanguage('pt-br');
I18n.putVocabularies(dict);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment