Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(script): paths on translation script
haseciluf85ef444f4fe
diff --git a/_regroup/bin/translation.sh b/_regroup/bin/translation.shindex 4375303b9c..15d211ea7a 100644--- a/_regroup/bin/translation.sh+++ b/_regroup/bin/translation.sh@@ -25,15 +25,16 @@ stats() {# Print the number of existing strings on the JSON files for each locales=$(number_of_keys "${paths[0]}/en/server.json")c=$(number_of_keys "${paths[1]}/en/translation.json")- echo "| locale |server strings |client strings |"- echo "|--------|---------------|---------------|"- echo "| en | ${s} | ${c} |"+ echo "| locale | server strings | client strings |"+ echo "|--------|----------------|----------------|"+ echo "| en | ${s} | ${c} |"+ echo "|--------|----------------|----------------|"for locale in "${locales[@]}"; dos=$(number_of_keys "${paths[0]}/${locale}/server.json")c=$(number_of_keys "${paths[1]}/${locale}/translation.json")n1=$(((8 - ${#locale}) / 2))n2=$((n1 == 1 ? n1 + 1 : n1))- echo "|$(printf "%${n1}s")${locale}$(printf "%${n2}s")| ${s} | ${c} |"+ echo "|$(printf "%${n1}s")${locale}$(printf "%${n2}s")| ${s} | ${c} |"done}@@ -78,7 +79,10 @@ file_path="$(cd -- "$(dirname "${0}")" >/dev/null 2>&1 || exitpwd -P)"-paths=("${file_path}/../translations/" "${file_path}/../src/public/translations/")+paths=(+ "${file_path}/../../apps/server/src/assets/translations/"+ "${file_path}/../../apps/client/src/translations/"+)locales=(cn de es fr pt_br ro tw)if [ $# -eq 1 ]; then