Open Flomp opened 4 years ago
I have the same problem. Work around I found is to hardcode it into the i18n.dart file, though it requires me to do that after every update (including removing and pasting back the text in the language file) - at least until it is fixed by the developer. But it works.
I wrote an alternative dart code generator in dart in order to fix the same issue with the arrays. you can find it at https://github.com/gnudles/dart_i18n_generator add it to dev dependencies in pubspec.yaml and generate i18n.dart by running the command flutter pub run i18n_json:i18n_json
Upon generation the private locale class of the second locale is not generated in i18n.dart if you have two locales that have an array with the same key.
Steps to reproduce:
Flutter I18n Json: initialize
in a fresh flutter projectFlutter I18n Json: Add locale
and generate a second locale different from your first oneFlutter I18n Json: Update