2

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?

Grok_Narok
  • 21
  • 1

2 Answers2

0

Create l10n.yaml file in the project root and add below code

arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
nullable-getter: false
untranslated-messages-file: l10n_errors.txt

run flutter gen-l10n it will general l10n_errors.txt file and you can see untranslated items.

Erfan Eghterafi
  • 4,344
  • 1
  • 33
  • 44
-1

How about you just provide translartions ffor these different languages. The linter is clearly notifying you that you didn't provide some translations. All you have to do is translate it. If you're finding difficulty figuring out which one you didn't translate, you could just use Chat GPT

Simeon
  • 692
  • 1
  • 6
  • 12