generate_language_files.cmd 649 B

1234567891011121314151617181920212223242526
  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 clean
  9. call flutter packages pub get
  10. echo Specifying source directory for AppFlowy Localizations.
  11. call dart run easy_localization:generate -S assets/translations/
  12. echo Generating language files for AppFlowy.
  13. call dart run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations/ -s en.json
  14. echo Done generating language files.
  15. REM Return to the original directory
  16. cd /d "%original_dir%"