diff --git a/webapp/locales/bin/.gitignore b/webapp/locales/bin/.gitignore new file mode 100644 index 000000000..90cfd5922 --- /dev/null +++ b/webapp/locales/bin/.gitignore @@ -0,0 +1 @@ +keys.txt diff --git a/webapp/locales/bin/gettrans.sh b/webapp/locales/bin/gettrans.sh new file mode 100755 index 000000000..041432d6a --- /dev/null +++ b/webapp/locales/bin/gettrans.sh @@ -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 + +#\'[ ]* +#\'[ ]* diff --git a/webapp/locales/bin/jq.js b/webapp/locales/bin/jq.js new file mode 100644 index 000000000..a53c80506 --- /dev/null +++ b/webapp/locales/bin/jq.js @@ -0,0 +1 @@ +`jq -s '.[0] * .[1]' <(jq 'walk(if type == "string" then null else . end)' en.json) es.json` \ No newline at end of file