This simple script extracts strings from a flutter project and creates a JSON file ready for Loco
... is as simple as
git clone https://github.com/donadev/flutter-string-extractor.git
cd flutter-string-extractor && npm i
- Change
folder
variable on index.ts to point at the root of your project. - Start the script
npm run start
- The script will generate a json file with all the strings found on output/strings.json
- Clone this repo
- Create a branch:
git checkout -b your-feature
- Make some changes
- Push your branch and open a Pull Request
This code is open source software licensed under the Apache 2.0 License.
Luigi Donadel - @luigidonadel - [email protected]
Project Link: https://github.com/donadev/flutter-string-extractor