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

Authenticator Internationalization Duplicate String Keys #5795

Open
2 of 14 tasks
Jacopopiazza opened this issue Jan 6, 2025 · 1 comment
Open
2 of 14 tasks

Authenticator Internationalization Duplicate String Keys #5795

Jacopopiazza opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
Authenticator Issues related to the Authenticator UI Component bug Something is not working; the issue has reproducible steps and has been reproduced

Comments

@Jacopopiazza
Copy link

Description

I’m working on internationalizing my Flutter app, starting with the Authenticator component. I've been following the official documentation (https://ui.docs.amplify.aws/flutter/connected-components/authenticator/customization#internationalization-i18n) and managed to translate some of the strings.
Following the doc's suggestion, I downloaded all the strings used in the Authenticator component from this GitHub repository (https://github.com/aws-amplify/amplify-flutter/tree/main/packages/authenticator/amplify_authenticator/lib/src/l10n/src).

What I noticed is that both the button and titles ARB files contain a "confirmResetPassword" key. As a result, when I generate a single ARB file required to compile the app, I cannot include both the string for the "Reset password" button and the title for confirming the reset.

I searched for similar issues but couldn’t find any references.
Is this duplicate key expected? Is there a better way to handle internationalization than merging all the ARB files into one as per the flutter standard? The documentation and pubspec file of the examples dont’t seem to suggest an alternative approach.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

check both arb files in Authenticator example contains "confirmResetPassword" key:
-https://github.com/aws-amplify/amplify-flutter/blob/main/packages/authenticator/amplify_authenticator/lib/src/l10n/src/titles/titles_en.arb
-https://github.com/aws-amplify/amplify-flutter/blob/main/packages/authenticator/amplify_authenticator/lib/src/l10n/src/buttons/buttons_en.arb

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.27.1

Amplify Flutter Version

2.5.0

Deployment Method

Amplify Gen 2

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Jan 6, 2025
@tyllark
Copy link
Member

tyllark commented Jan 7, 2025

Hello @Jacopopiazza, thanks for taking the time to open this issue. We will investigate and get back to you.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Jan 7, 2025
@tyllark tyllark self-assigned this Jan 13, 2025
@tyllark tyllark added Authenticator Issues related to the Authenticator UI Component bug Something is not working; the issue has reproducible steps and has been reproduced labels Jan 13, 2025
@github-actions github-actions bot removed the pending-triage This issue is in the backlog of issues to triage label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authenticator Issues related to the Authenticator UI Component bug Something is not working; the issue has reproducible steps and has been reproduced
Projects
None yet
Development

No branches or pull requests

2 participants