- 新增 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 注入/子智能体工具回填/容器内嵌脚本不迁移
67 lines
1.9 KiB
Python
67 lines
1.9 KiB
Python
"""Backend i18n message pack: server/admin.py API user-visible messages.
|
|
|
|
Domain prefix: admin.
|
|
"""
|
|
|
|
MESSAGES = {
|
|
"admin.secondary_required_error": {
|
|
"zh-CN": "需要二级密码",
|
|
"en-US": "Secondary password required",
|
|
},
|
|
"admin.enter_secondary_password": {
|
|
"zh-CN": "请输入二级密码",
|
|
"en-US": "Please enter the secondary password",
|
|
},
|
|
"admin.secondary_password_wrong": {
|
|
"zh-CN": "二级密码错误",
|
|
"en-US": "Incorrect secondary password",
|
|
},
|
|
"admin.invite_code_not_found": {
|
|
"zh-CN": "邀请码不存在",
|
|
"en-US": "Invite code not found",
|
|
},
|
|
"admin.missing_username": {
|
|
"zh-CN": "缺少用户名",
|
|
"en-US": "Missing username",
|
|
},
|
|
"admin.new_password_required": {
|
|
"zh-CN": "新密码不能为空",
|
|
"en-US": "New password is required",
|
|
},
|
|
"admin.password_reset": {
|
|
"zh-CN": "密码已重置",
|
|
"en-US": "Password has been reset",
|
|
},
|
|
"admin.missing_id": {
|
|
"zh-CN": "缺少 id",
|
|
"en-US": "Missing id",
|
|
},
|
|
"admin.tool_not_found": {
|
|
"zh-CN": "未找到该工具",
|
|
"en-US": "Tool not found",
|
|
},
|
|
"admin.missing_id_or_name": {
|
|
"zh-CN": "缺少 id 或 name",
|
|
"en-US": "Missing id or name",
|
|
},
|
|
"admin.tool_dir_missing": {
|
|
"zh-CN": "工具不存在",
|
|
"en-US": "Tool does not exist",
|
|
},
|
|
"admin.file_not_found": {
|
|
"zh-CN": "文件不存在",
|
|
"en-US": "File not found",
|
|
},
|
|
"admin.server_not_found": {
|
|
"zh-CN": "未找到该服务",
|
|
"en-US": "Server not found",
|
|
},
|
|
"admin.username_required": {
|
|
"zh-CN": "用户名不能为空",
|
|
"en-US": "Username is required",
|
|
},
|
|
"admin.user_not_found": {
|
|
"zh-CN": "用户不存在",
|
|
"en-US": "User not found",
|
|
},
|
|
} |