generate_language_files.cmd 629 B

123456789101112131415161718192021222324
  1. @echo off
  2. echo 'Generating language files'
  3. REM Store the current working directory
  4. set "original_dir=%CD%"
  5. REM Change the current working directory to the script's location
  6. cd /d "%~dp0"
  7. cd ..\..\..\appflowy_flutter
  8. call flutter packages pub get
  9. echo Specifying source directory for AppFlowy Localizations.
  10. call dart run easy_localization:generate -S assets/translations/
  11. echo Generating language files for AppFlowy.
  12. call dart run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations/ -s en.json
  13. echo Done generating language files.
  14. REM Return to the original directory
  15. cd /d "%original_dir%"