Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
from backend.common.i18n import i18n

__version__ = '1.11.0'


# 初始化 i18n
i18n.load_locales()
1 change: 1 addition & 0 deletions backend/common/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""加载语言文本"""
Expand Down