zulip/tools/i18n/sync-translations

19 lines
515 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# See https://zulip.readthedocs.io/en/latest/translating/internationalization.html
# for background on this subsystem.
set -e
set -x
./manage.py makemessages --all
tx pull -a -f --mode=translator --minimum-perc=5 "$@"
# For readability, we prefer UTF-8, not ascii, in these JSON files.
find ./locale \
-regextype sed \
-regex '^\./locale/.*/\(mobile\|translations\).json$' \
-exec ./tools/i18n/unescape-contents {} \;
./manage.py compilemessages
./tools/i18n/process-mobile-i18n