feat: 新版本

This commit is contained in:
远野千束 2024-04-05 09:15:57 +08:00
parent 110b0cfc21
commit 321f19953d

View File

@ -103,6 +103,7 @@ def load_from_dict(data: dict, lang_code: str):
class Language:
def __init__(self, lang_code: str = None, fallback_lang_code: str = None):
nonebot.logger.debug(_language_data)
if lang_code is None:
lang_code = config.get("default_language", get_default_lang())
self.lang_code = lang_code