check-frontend-i18n: Generate only English translations.

This commit is contained in:
Umair Khan 2017-07-03 10:39:07 +05:00 committed by showell
parent 50ee14d390
commit f1fded08ab
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ sanity_check.check_venv(__file__)
import json
import os
import sys
import subprocess
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from scripts.lib.zulip_tools import WARNING, FAIL, ENDC
@ -23,6 +24,8 @@ def find_handlebars(translatable_strings):
return errored
if __name__ == '__main__':
subprocess.call(['./manage.py', 'makemessages', '--locale', 'en'], stderr=subprocess.STDOUT)
with open('static/locale/en/translations.json') as f:
data = json.load(f)