Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: move translation jsons to right folder (#3050)

Richard Shiue5e2ed56f5bee
diff --git a/frontend/scripts/code_generation/language_files/generate_language_files.sh b/frontend/scripts/code_generation/language_files/generate_language_files.sh
index 86125cdad6..d93c88d1a3 100755
--- a/frontend/scripts/code_generation/language_files/generate_language_files.sh
+++ b/frontend/scripts/code_generation/language_files/generate_language_files.sh
@@ -11,8 +11,10 @@ cd "$(dirname "$0")"
cd ../../../appflowy_flutter
# copy the resources/translations folder to
-# the appflowy_flutter/assets/translation directory
-cp -rf ../resources/translations/ assets/translations/
+# the appflowy_flutter/assets/translation directory
+rm -rf assets/translations/
+mkdir -p assets/translations/
+cp -f ../resources/translations/*.json assets/translations/
flutter packages pub get