add collector for translations

This commit is contained in:
Ewald Arnold 2019-11-07 18:36:18 +01:00
parent f5d45f379a
commit c10f37f1cb
3 changed files with 6 additions and 0 deletions

1
webapp/locales/bin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
keys.txt

4
webapp/locales/bin/gettrans.sh Executable file
View File

@ -0,0 +1,4 @@
find ../../.. -name '*.js' -o -name '*.vue' -exec grep '$t(' '{}' ';' | sed -e "s/.*$t[ ]*([ ]*'[ ]*\([\.a-zA-Z0-9]*\)[ ]*'[ ]*.*/found: \1/g" |grep "found: " | sed "s/found: //g" |sort |uniq
#\'[ ]*
#\'[ ]*

1
webapp/locales/bin/jq.js Normal file
View File

@ -0,0 +1 @@
`jq -s '.[0] * .[1]' <(jq 'walk(if type == "string" then null else . end)' en.json) es.json`