feat: Add translation populating procedure for the web interface.

This commit is contained in:
Terry Geng
2020-07-12 14:29:50 +08:00
parent 9f2c4a2afd
commit 97309599f1
12 changed files with 239 additions and 110 deletions

View File

@ -832,6 +832,7 @@ if __name__ == '__main__':
if lang not in supported_languages:
raise KeyError(f"Unsupported language {lang}")
var.language = lang
constants.load_lang(lang)
# ======================