mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-06 09:56:03 +00:00
add collector for translations
This commit is contained in:
parent
f5d45f379a
commit
c10f37f1cb
1
webapp/locales/bin/.gitignore
vendored
Normal file
1
webapp/locales/bin/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
keys.txt
|
||||
4
webapp/locales/bin/gettrans.sh
Executable file
4
webapp/locales/bin/gettrans.sh
Executable 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
1
webapp/locales/bin/jq.js
Normal file
@ -0,0 +1 @@
|
||||
`jq -s '.[0] * .[1]' <(jq 'walk(if type == "string" then null else . end)' en.json) es.json`
|
||||
Loading…
x
Reference in New Issue
Block a user