mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 01:21:54 +08:00
进一步的 kvmd 国际化(汉化)支持,添加配置入口
yaml 配置示例:
```
languages:
console: zh
web: zh
```
This commit is contained in:
@@ -52,7 +52,7 @@ from .errors import IsBusyError
|
||||
|
||||
from .validators import ValidatorError
|
||||
|
||||
from .lanuages import Lanuages
|
||||
from .languages import Languages
|
||||
|
||||
from . import aiotools
|
||||
|
||||
@@ -282,7 +282,7 @@ class HttpServer:
|
||||
self.__ws_bin_handlers: dict[int, Callable] = {}
|
||||
self.__ws_sessions: list[WsSession] = []
|
||||
self.__ws_sessions_lock = asyncio.Lock()
|
||||
self.gettext=Lanuages().gettext
|
||||
self.gettext=Languages().gettext
|
||||
|
||||
def run(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user