mirror of https://github.com/zulip/zulip.git
check-frontend-i18n: Generate only English translations.
This commit is contained in:
parent
50ee14d390
commit
f1fded08ab
|
@ -10,6 +10,7 @@ sanity_check.check_venv(__file__)
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import subprocess
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
from scripts.lib.zulip_tools import WARNING, FAIL, ENDC
|
from scripts.lib.zulip_tools import WARNING, FAIL, ENDC
|
||||||
|
@ -23,6 +24,8 @@ def find_handlebars(translatable_strings):
|
||||||
return errored
|
return errored
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
subprocess.call(['./manage.py', 'makemessages', '--locale', 'en'], stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
with open('static/locale/en/translations.json') as f:
|
with open('static/locale/en/translations.json') as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue