Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing translation for specific texts in the Amplify UI Authenticator (Vue) #4986

Closed
4 tasks done
RihabZA opened this issue Feb 7, 2024 · 2 comments · Fixed by #5034
Closed
4 tasks done

Missing translation for specific texts in the Amplify UI Authenticator (Vue) #4986

RihabZA opened this issue Feb 7, 2024 · 2 comments · Fixed by #5034
Assignees
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working I18n An issue for a missing Localization / Translation / Internationalization Vue An issue or a feature-request for Vue platform

Comments

@RihabZA
Copy link

RihabZA commented Feb 7, 2024

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

Vue

Which UI component?

Authenticator

How is your app built?

Vite

What browsers are you seeing the problem on?

Chrome, Firefox

Which region are you seeing the problem in?

No response

Please describe your bug.

For the Authenticator component in a Vue application (using @aws-amplify/ui-vue), the i18n translation does not apply to the Email and Phone Number texts in the following screen:
Screenshot 2024-02-07 at 18 04 52

What's the expected behaviour?

Screenshot 2024-02-07 at 15 01 06

This is the output in a React application when using @aws-amplify/ui-react and adding the following code block:

import { Authenticator, translations } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
import { I18n } from 'aws-amplify/utils';

I18n.putVocabularies(translations);
I18n.setLanguage('es');
I18n.putVocabularies({
  es: {
    'Email': 'Correo electrónico',
    'Phone Number': 'Teléfono',
  },
});

Help us reproduce the bug!

import { Amplify } from 'aws-amplify';
import { Authenticator, translations } from "@aws-amplify/ui-vue";
import "@aws-amplify/ui-vue/styles.css";
import awsconfig from './aws-exports';;
import { I18n } from 'aws-amplify/utils';

I18n.putVocabularies(translations);
I18n.setLanguage('es');
I18n.putVocabularies({
  es: {
    'Email': 'Correo electrónico',
    'Phone Number': 'Teléfono',
  },
});

Amplify.configure(awsconfig);
  • Log in with a user that has a non-verified email and phone number.

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

No response

@github-actions github-actions bot added the pending-triage Issue is pending triage label Feb 7, 2024
@hbuchel hbuchel added bug Something isn't working Authenticator An issue or a feature-request for an Authenticator UI Component I18n An issue for a missing Localization / Translation / Internationalization and removed pending-triage Issue is pending triage labels Feb 7, 2024
@hbuchel
Copy link
Contributor

hbuchel commented Feb 7, 2024

Thanks @RihabZA I was able to reproduce this using the latest at

"@aws-amplify/ui-vue": "^4.2.0",
"aws-amplify": "^6.0.15",

We'll work on a fix.

@reesscot reesscot added the Vue An issue or a feature-request for Vue platform label Feb 8, 2024
@hbuchel hbuchel self-assigned this Feb 27, 2024
@hbuchel
Copy link
Contributor

hbuchel commented Feb 29, 2024

Hi @RihabZA just leaving a note that this should be fixed in @aws-amplify/[email protected] which was published today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working I18n An issue for a missing Localization / Translation / Internationalization Vue An issue or a feature-request for Vue platform
Projects
None yet
3 participants