feat: 新版本

This commit is contained in:
snowy 2024-04-05 09:20:49 +08:00
parent b275a646ac
commit 1b3d82ebe2

View File

@ -102,7 +102,7 @@ def load_from_dict(data: dict, lang_code: str):
class Language:
def __init__(self, lang_code: str = None, fallback_lang_code: str = None):
def __init__(self, lang_code: str = None, fallback_lang_code: str = "en"):
if lang_code is None:
lang_code = config.get("default_language", get_default_lang())
self.lang_code = lang_code