We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 978539a commit 44de5deCopy full SHA for 44de5de
i18n.py
@@ -12,7 +12,7 @@ def load_language_list(language):
12
class I18nAuto:
13
def __init__(self, language=None):
14
if language in ['auto', None]:
15
- language = locale.getlocale()[0]
+ language = locale.getdefaultlocale()[0]#getlocale can't identify the system's language ((None, None))
16
if not os.path.exists(f"./i18n/{language}.json"):
17
language = "en_US"
18
self.language = language
0 commit comments