We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407c848 commit 4d43c6aCopy full SHA for 4d43c6a
backend/__init__.py
@@ -1,7 +1 @@
1
-from backend.common.i18n import i18n
2
-
3
__version__ = '1.11.0'
4
5
6
-# 初始化 i18n
7
-i18n.load_locales()
backend/common/i18n.py
@@ -16,6 +16,7 @@ class I18n:
16
def __init__(self) -> None:
17
self.locales: dict[str, dict[str, Any]] = {}
18
self.current_language: str = settings.I18N_DEFAULT_LANGUAGE
19
+ self.load_locales()
20
21
def load_locales(self) -> None:
22
"""加载语言文本"""
0 commit comments