This commit is contained in:
Jabba 2020-10-29 03:04:23 +00:00 committed by GitHub
commit a963d2472e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Config(object):
try:
language, enc = locale.getdefaultlocale()
language = language.lower().replace("_", "-")
if language not in ["pt-br", "zh-tw"]:
if language not in ["zh-hant", "zh-hans", "pt-br"]:
language = language.split("-")[0]
except Exception:
language = "en"