mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
feat: 新版本
This commit is contained in:
parent
b275a646ac
commit
1b3d82ebe2
@ -102,7 +102,7 @@ def load_from_dict(data: dict, lang_code: str):
|
|||||||
|
|
||||||
|
|
||||||
class Language:
|
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:
|
if lang_code is None:
|
||||||
lang_code = config.get("default_language", get_default_lang())
|
lang_code = config.get("default_language", get_default_lang())
|
||||||
self.lang_code = lang_code
|
self.lang_code = lang_code
|
||||||
|
Loading…
Reference in New Issue
Block a user