Update the i18n language file init location (#934)

This commit is contained in:
Wu Clan
2025-11-25 18:06:34 +08:00
committed by GitHub
parent 407c848145
commit 4d43c6a3ea
2 changed files with 1 additions and 6 deletions

View File

@@ -1,7 +1 @@
from backend.common.i18n import i18n
__version__ = '1.11.0'
# 初始化 i18n
i18n.load_locales()

View File

@@ -16,6 +16,7 @@ class I18n:
def __init__(self) -> None:
self.locales: dict[str, dict[str, Any]] = {}
self.current_language: str = settings.I18N_DEFAULT_LANGUAGE
self.load_locales()
def load_locales(self) -> None:
"""加载语言文本"""