feat(i18n): Enhance internationalization support for tool specifications and notifications

- Added TitleKey and DescriptionKey fields to ToolSpec for dynamic localization.
- Updated tool specifications to use i18nx for titles, descriptions, and appendices.
- Refactored notification messages to utilize i18nx for localization in conversation and ticket assignment events.
- Improved localization in the debug dialog component for skill definitions.
- Added new translation keys in English and Chinese for ticket and conversation assignment notifications.
- Ensured that fallback messages are properly localized based on user locale.
This commit is contained in:
mlogclub
2026-06-03 09:36:33 +08:00
parent 5b6c54de34
commit 3439d20537
23 changed files with 520 additions and 265 deletions
+16 -1
View File
@@ -53,7 +53,15 @@
"markAllReadFailed": "全部已读失败",
"fallbackTitle": "通知",
"loading": "正在加载通知",
"empty": "暂无通知"
"empty": "暂无通知",
"ticketAssignedTitle": "工单指派提醒",
"ticketAssignedLine": "工单 {ticketNo} 已指派给你",
"assignmentReason": "指派原因: {reason}",
"conversationTransferredTitle": "会话转接提醒",
"conversationAutoAssignedTitle": "会话自动分配提醒",
"conversationAssignedTitle": "会话分配提醒",
"conversationAssignedLine": "会话 #{conversationId} 已分配给你",
"transferReason": "转接原因: {reason}"
},
"json": {
"invalid": "JSON 格式不合法",
@@ -1644,6 +1652,13 @@
"agentRequired": "请选择 AI Agent",
"messageRequired": "请输入用户消息",
"emptyData": "暂无数据",
"skillRouteTrace": "Skill 路由追踪",
"toolSearchTrace": "工具搜索追踪",
"graphToolTrace": "Graph 工具追踪",
"traceData": "追踪数据",
"resumeToolSearchTrace": "恢复工具搜索追踪",
"resumeGraphToolTrace": "恢复 Graph 工具追踪",
"resumeTraceData": "恢复追踪数据",
"confirm": "确认",
"reject": "取消",
"debugFailed": "Skill 调试失败",