- 新增 modules/i18n.py:tr() + 进程级语言缓存 + modules/i18n_messages/ 域文案包自动聚合 - 新增 29 个域文案包,共 1153 条双语 key;90+ 源文件 1146 处用户可见消息 tr 化 - ui_locale 存入 personalization.json(用户级共享),前后端双向同步 - 前端匹配点双语兼容(history/shared/ChatArea/taskPolling/upload 等正则) - 修复语言判等陷阱:审批等待加稳定 code 字段;conversation.py 不存在判等改双语 helper - 边界:日志/prompt 注入/子智能体工具回填/容器内嵌脚本不迁移
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
"""Backend i18n message pack: container file proxy user-visible messages.
|
|
|
|
Pure data module — do not import anything here. Auto-discovered and merged
|
|
by modules/i18n.py at import time.
|
|
"""
|
|
|
|
MESSAGES = {
|
|
"container_proxy.container_not_ready": {
|
|
"zh-CN": "容器未就绪,无法执行文件操作",
|
|
"en-US": "Container not ready; cannot execute file operations",
|
|
},
|
|
"container_proxy.docker_runtime_not_found": {
|
|
"zh-CN": "未找到 Docker 运行时",
|
|
"en-US": "Docker runtime not found",
|
|
},
|
|
"container_proxy.exec_failed": {
|
|
"zh-CN": "容器执行失败: {error}",
|
|
"en-US": "Container execution failed: {error}",
|
|
},
|
|
"container_proxy.unknown_error": {
|
|
"zh-CN": "未知错误",
|
|
"en-US": "Unknown error",
|
|
},
|
|
"container_proxy.container_returned_error": {
|
|
"zh-CN": "容器返回错误: {message}",
|
|
"en-US": "Container returned an error: {message}",
|
|
},
|
|
"container_proxy.no_output": {
|
|
"zh-CN": "容器未返回任何结果",
|
|
"en-US": "Container returned no result",
|
|
},
|
|
"container_proxy.response_unparseable": {
|
|
"zh-CN": "容器响应无法解析: {output}",
|
|
"en-US": "Could not parse container response: {output}",
|
|
},
|
|
} |