JohnSmith9982 commited on
Commit
9535dc8
1 Parent(s): ce3c418

Update modules/webui_locale.py

Browse files
Files changed (1) hide show
  1. modules/webui_locale.py +1 -1
modules/webui_locale.py CHANGED
@@ -10,7 +10,7 @@ class I18nAuto:
10
  else:
11
  config = {}
12
  lang_config = config.get("language", "auto")
13
- language = os.environ.get("default_ui_lang", lang_config)
14
  if language == "auto":
15
  language = locale.getdefaultlocale()[0] # get the language code of the system (ex. zh_CN)
16
  self.language_map = {}
 
10
  else:
11
  config = {}
12
  lang_config = config.get("language", "auto")
13
+ language = os.environ.get("LANGUAGE", lang_config)
14
  if language == "auto":
15
  language = locale.getdefaultlocale()[0] # get the language code of the system (ex. zh_CN)
16
  self.language_map = {}