ftu is used to generate CSV translation files from Flutter projects that use GetX for internationalization and translations.
To generate the CSV just run the program choosing the language within the Flutter project directory:
ftu -l it
or define the project location via the parameter
ftu -l en -p /home/work/flutter-project
The result will be a CSV-generated file containing 3 columns: location, source, and translation.
To generate the Dart file containing the translation from the CSV, run the program choosing the language e specify the CSV file:
ftu -l de --csv de.csv
The result will be a de.dart
file containing a Map<String,String>
of translations.
- Andrea Ricchi - Maintainer - AndreaRicchi