- 新增 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 注入/子智能体工具回填/容器内嵌脚本不迁移
15 lines
430 B
Python
15 lines
430 B
Python
"""Per-domain backend i18n message packs.
|
|
|
|
Each module in this package exposes a module-level `MESSAGES` dict:
|
|
|
|
MESSAGES = {
|
|
"<domain>.<semantic_key>": {
|
|
"zh-CN": "中文文案 {param}",
|
|
"en-US": "English copy {param}",
|
|
},
|
|
}
|
|
|
|
All packs are auto-discovered and merged by modules/i18n.py at import time.
|
|
Message pack modules must be pure data — do not import modules.i18n here.
|
|
"""
|