Browse Source

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

Richard Shiue 1 year ago
parent
commit
5e2ed56f5b

+ 4 - 2
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