Authenticator Internationalization Duplicate String Keys #5795
Labels
Authenticator
Issues related to the Authenticator UI Component
bug
Something is not working; the issue has reproducible steps and has been reproduced
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
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
Flutter Version
3.27.1
Amplify Flutter Version
2.5.0
Deployment Method
Amplify Gen 2
Schema
No response
The text was updated successfully, but these errors were encountered: