From 1b3d82ebe2fd46c3b9365275883ce94592a556b3 Mon Sep 17 00:00:00 2001 From: snowy Date: Fri, 5 Apr 2024 09:20:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/utils/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteyuki/utils/language.py b/liteyuki/utils/language.py index c658826..b890cb0 100644 --- a/liteyuki/utils/language.py +++ b/liteyuki/utils/language.py @@ -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