mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-12-01 09:44:44 +08:00
feat: 新版本
This commit is contained in:
parent
110b0cfc21
commit
321f19953d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user