@@ -25,15 +25,16 @@ stats() {
2525 # Print the number of existing strings on the JSON files for each locale
2626 s=$( number_of_keys " ${paths[0]} /en/server.json" )
2727 c=$( number_of_keys " ${paths[1]} /en/translation.json" )
28- echo " | locale |server strings |client strings |"
29- echo " |--------|---------------|---------------|"
30- echo " | en | ${s} | ${c} |"
28+ echo " | locale | server strings | client strings |"
29+ echo " |--------|----------------|----------------|"
30+ echo " | en | ${s} | ${c} |"
31+ echo " |--------|----------------|----------------|"
3132 for locale in " ${locales[@]} " ; do
3233 s=$( number_of_keys " ${paths[0]} /${locale} /server.json" )
3334 c=$( number_of_keys " ${paths[1]} /${locale} /translation.json" )
3435 n1=$(( (8 - ${# locale} ) / 2 ))
3536 n2=$(( n1 == 1 ? n1 + 1 : n1 ))
36- echo " |$( printf " %${n1} s" ) ${locale} $( printf " %${n2} s" ) | ${s} | ${c} |"
37+ echo " |$( printf " %${n1} s" ) ${locale} $( printf " %${n2} s" ) | ${s} | ${c} |"
3738 done
3839}
3940
@@ -78,7 +79,10 @@ file_path="$(
7879 cd -- " $( dirname " ${0} " ) " > /dev/null 2>&1 || exit
7980 pwd -P
8081) "
81- paths=(" ${file_path} /../translations/" " ${file_path} /../src/public/translations/" )
82+ paths=(
83+ " ${file_path} /../../apps/server/src/assets/translations/"
84+ " ${file_path} /../../apps/client/src/translations/"
85+ )
8286locales=(cn de es fr pt_br ro tw)
8387
8488if [ $# -eq 1 ]; then
0 commit comments