mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-04 07:27:42 +00:00
29 lines
736 B
Bash
Executable File
29 lines
736 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Generating language files"
|
|
|
|
# Store the current working directory
|
|
original_dir=$(pwd)
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Navigate to the project root
|
|
cd ../../../appflowy_flutter
|
|
|
|
# copy the resources/translations folder to
|
|
# the appflowy_flutter/assets/translation directory
|
|
cp -rf ../resources/translations/ assets/translations/
|
|
|
|
flutter packages pub get
|
|
|
|
echo "Specifying source directory for AppFlowy Localizations."
|
|
dart run easy_localization:generate -S assets/translations/
|
|
|
|
echo "Generating language files for AppFlowy."
|
|
dart run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations/ -s en.json
|
|
|
|
echo "Done generating language files."
|
|
|
|
# Return to the original directory
|
|
cd "$original_dir"
|