The specific case I'm looking at is two .arb
language files: en
and en_AU
. en
includes all the translation tokens and en_AU
includes only a few that are actually different. This works as expected: with en_AU
locale en
tokens are used when no alternate translation provided.
However, when running flutter gen-l10n
it gives the untranslated message(s)
warning for en_AU
. Is there a way to turn this off, while preserving the warning for different languages?
Below answer is based on the usage of
flutter_localizations
pubspec.yaml
Create a file named
l10n.yaml
in your root location.Please follow the comments on each line to understand the purpose.
Example snippet of untranslated_keys
This will help you understand what translations are missing which could potentially break behaviour on specific locales.
Refer https://pub.dev/packages/flutter_localization