Initial commit
This commit is contained in:
commit
4f415b6190
77 changed files with 52208 additions and 0 deletions
11
bin/transform_weblate.sh
Normal file
11
bin/transform_weblate.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Transform Weblate JSON files to js files
|
||||
#
|
||||
# 1) download the translation files as a zip from
|
||||
# https://weblate.framasoft.org/projects/mobilizon/
|
||||
# 2) unzip the archive, copy all frontend/src/i18n/ to res/locale
|
||||
# 3) run this script from the base directory
|
||||
|
||||
find ./res/locale -name *.json -exec sh -c 'sed -e "1s/^/CTX.setMessages\(/" -e "\$s/\$/);/" $0 > ./res/locale/$(basename $0 .json).js' {} \;
|
||||
rm ./res/locale/*.json
|
||||
Loading…
Add table
Add a link
Reference in a new issue