2023-07-03 04:07:11 -10:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
echo 'Generating language files'
|
|
|
|
|
|
|
|
REM Store the current working directory
|
|
|
|
set "original_dir=%CD%"
|
|
|
|
|
|
|
|
REM Change the current working directory to the script's location
|
|
|
|
cd /d "%~dp0"
|
|
|
|
|
|
|
|
cd ..\..\..\appflowy_flutter
|
|
|
|
|
2023-07-11 19:27:40 +07:00
|
|
|
REM copy the resources/translations folder to
|
|
|
|
REM the appflowy_flutter/assets/translation directory
|
|
|
|
echo Copying resources/translations to appflowy_flutter/assets/translations
|
2023-07-25 15:41:03 +07:00
|
|
|
xcopy /E /Y /I ..\resources\translations assets\translations
|
2023-07-11 19:27:40 +07:00
|
|
|
|
2023-10-23 17:47:11 +03:30
|
|
|
REM call flutter packages pub get
|
2024-12-03 13:56:15 +08:00
|
|
|
call flutter pub get
|
|
|
|
call flutter packages pub get
|
2023-07-03 04:07:11 -10:00
|
|
|
|
|
|
|
echo Specifying source directory for AppFlowy Localizations.
|
|
|
|
call dart run easy_localization:generate -S assets/translations/
|
|
|
|
|
|
|
|
echo Generating language files for AppFlowy.
|
|
|
|
call dart run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations/ -s en.json
|
|
|
|
|
|
|
|
echo Done generating language files.
|
|
|
|
|
|
|
|
REM Return to the original directory
|
|
|
|
cd /d "%original_dir%"
|