Update Config.py

This commit is contained in:
Jabba 2020-09-18 13:11:45 +00:00 committed by GitHub
parent 40dddf1ea4
commit 1b1539e6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,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"