18

Running Flutter Intl: Initialize generates lib/l10n/intl_en.arb. However due to many strings in my applications I would wish to have multiple arb files for same language.

To make it more clear, consider the following folder structure

 -->lib
    --> screens
        --> screen_a.dart
        --> screen_b.dart

Correspondingly I would have my l10n folder structure as follows:

--> l10n
   --> screen_a
       --> intl_en.dart
       --> intl_fr_FR.dart
   --> screen_b
       --> intl_en.dart
       --> intl_fr_FR.dart

How do I achieve this using flutter intl plugin?
Thanks in advance!

Siva Jagadesh
  • 343
  • 2
  • 10

1 Answers1

2

Package Intl_translation can handle multiple arb source files since 0.17.5:

Allow multiple ARB files with the same locale and combine their translations.

quambene
  • 29
  • 1
  • 2