Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
6531735
1
Parent(s):
d7d79a0
调整环境变量名称
Browse files- 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("
|
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 = {}
|