Skip to content

Authenticator Internationalization Duplicate String Keys #5795

Open
@Jacopopiazza

Description

@Jacopopiazza

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

Metadata

Metadata

Assignees

Labels

AuthenticatorIssues related to the Authenticator UI ComponentbugSomething is not working; the issue has reproducible steps and has been reproduced

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions