Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nengyuanzhang committed May 21, 2024
2 parents 7948783 + d8ceba5 commit 59544c8
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 527 deletions.
2 changes: 1 addition & 1 deletion myems-api/core/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def get_translation(language):
if language is None or not isinstance(language, str) or len(language) == 0:
return gettext.translation('myems', './i18n/', languages=['en'])

if language.lower() not in ['zh_CN', 'en', 'de', 'fr', 'es', 'ru', 'ar', 'vi', 'th', 'tr', 'ms', 'id', 'zh_TW']:
if language not in ['zh_CN', 'en', 'de', 'fr', 'es', 'ru', 'ar', 'vi', 'th', 'tr', 'ms', 'id', 'zh_TW']:
return gettext.translation('myems', './i18n/', languages=['en'])
else:
language_list = [language]
Expand Down
Binary file modified myems-api/i18n/zh_TW/LC_MESSAGES/myems.mo
Binary file not shown.

0 comments on commit 59544c8

Please sign in to comment.