esskar / vscode-flutter-i18n-json

VS Code extension to create a binding between your translations from .json files and your Flutter app.
92 stars 22 forks source link

how can i generated i18n.dart by the jsons that download from others #59

Open HongxiangShe opened 4 years ago

HongxiangShe commented 4 years ago

i want to generated the 'i18n.dart' by the jsons from our apis, for example if we find a wrong text in the json, we can upload a new json to replace the old json

gnudles commented 3 years ago

I wrote an alternative dart code generator in dart. you can costumize it very very easily! 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