Fix zh-tw lang detection

This commit is contained in:
shortcutme 2018-10-15 13:19:33 +02:00
parent 204e3f8e3e
commit aca2b4423e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

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