Skip to content

Commit 44de5de

Browse files
authored
Update i18n.py
1 parent 978539a commit 44de5de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def load_language_list(language):
1212
class I18nAuto:
1313
def __init__(self, language=None):
1414
if language in ['auto', None]:
15-
language = locale.getlocale()[0]
15+
language = locale.getdefaultlocale()[0]#getlocale can't identify the system's language ((None, None))
1616
if not os.path.exists(f"./i18n/{language}.json"):
1717
language = "en_US"
1818
self.language = language

0 commit comments

Comments
 (0)