Skip to content

Commit

Permalink
Merge pull request #286 from biocore/csymons_disable_japanese
Browse files Browse the repository at this point in the history
Disable Japanese Locale
  • Loading branch information
wasade authored Aug 29, 2023
2 parents 1ed2273 + c6df5c7 commit 7a3f906
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,12 @@ def get_authrocket_callback(token=None, redirect_uri=None):
"account_id": primary['account_id'],
"email": primary['email']
}
session[LANG_KEY] = primary["language"]
# NB: Disabling Japanese for the initial relaunch period until the
# Tokyo Tech team can review finalized translations
if primary["language"] == JA_JP_KEY:
session[LANG_KEY] = EN_US_KEY
else:
session[LANG_KEY] = primary["language"]
else:
session[ADMIN_MODE_KEY] = False
session[LOGIN_INFO_KEY] = {
Expand Down
2 changes: 1 addition & 1 deletion microsetta_interface/model_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
EN_US_KEY: Lang("en_US", "English"),
ES_MX_KEY: Lang("es_MX", "Español (México)"),
ES_ES_KEY: Lang("es_ES", "Español (España)"),
JA_JP_KEY: Lang("ja_JP", "日本語")
# JA_JP_KEY: Lang("ja_JP", "日本語")
}

# We need a default full locale when a user's browser only sends a partial
Expand Down

0 comments on commit 7a3f906

Please sign in to comment.