Skip to content

Commit 4f29d17

Browse files
feat: internationalize workflow editor controls, publishing, and debugging
1 parent 2556077 commit 4f29d17

118 files changed

Lines changed: 1214 additions & 605 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ui/AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Pinia 3、Element Plus、Tailwind CSS 4 和 Sass;工作流画布基于 LogicFl
4040
| `src/router/` | Admin / Chat 独立 Router |
4141
| `src/stores/admin/`、`src/stores/chat/` | 各入口独立 Pinia 实例和 Store |
4242
| `src/permission/` | 权限策略、业务权限方法及 Admin `$perm` 插件 |
43+
| `src/locales/` | 三语语言包、命名空间与各入口国际化初始化 |
4344
| `src/styles/` | 全局样式、主题变量与第三方样式集成 |
4445
| `src/constants/`、`src/utils/` | 跨功能常量与工具 |
4546
| `src/assets/`、`public/` | 源码导入资源/需要保留原文件名和 URL 的静态文件 |

‎ui/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ ESLint 检查的依据。需要检查代码时,可运行 `npx eslint <待检
6767
静态资源使用相对路径(`base: './'`);部署时仍需为 History 路由配置对应入口回退,
6868
并由部署服务转发 API 和文件请求。Vite 的开发代理不会随静态构建产物部署。
6969

70+
## 界面语言
71+
72+
Admin 与 Chat 使用各自的 Vue I18n 实例,支持简体中文、繁体中文和英文。
73+
语言状态、已接入范围及语言包分类见 [国际化规则](src/locales/LOCALE_README.md),不在业务代码保存翻译后的协议值。
74+
7075
## 开发规则
7176

7277
目录职责、开发约束和专题文档索引统一见 [AGENTS.md](AGENTS.md)。

‎ui/src/components/COMPONENT_README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ Vite 仅扫描 `src/components/global`,当前没有 `globsExclude` 配置;
3333

3434
Element Plus 已在 Admin、Chat 入口注册。使用前先检查原生 API,避免重复实现已有能力。
3535

36-
手动组件从具体入口导入;动态表单通过自己的公开入口导入:
36+
手动组件从具体入口导入;动态表单通过 `@/components/mk-dynamics-form` 的公开入口导入。
3737

3838
## 通用规则
3939

40+
组件内部文案的分类、语言状态和响应式翻译统一见
41+
[国际化规则](../locales/LOCALE_README.md)。本页维护组件接口与交互边界。
42+
4043
- 按钮组件统一使用 `Button` 前缀:操作按钮按 `Button + 动作 + 对象` 命名,例如
4144
`ButtonAddModel`、`ButtonImportUsers`;功能入口按 `Button + 功能名称` 命名,例如
4245
`ButtonToolStore`、`ButtonDefaultModelSetting`,不添加表示打开弹窗的 `Open`。

‎ui/src/locales/LOCALE_README.md‎

Lines changed: 62 additions & 16 deletions
Large diffs are not rendered by default.

‎ui/src/locales/en-US/common/execution.json‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"title": "Execution history",
44
"view": "View execution history",
55
"resourceType": "Resource type",
6-
"executionTime": "Execution time"
6+
"executionTime": "Execution time",
7+
"initiator": "Initiator",
8+
"triggerSource": "Trigger source"
79
},
810
"details": {
911
"title": "Execution details",
@@ -22,5 +24,9 @@
2224
"title": "Execution result",
2325
"success": "Execution succeeded",
2426
"failure": "Execution failed"
27+
},
28+
"cancel": {
29+
"label": "Cancel execution",
30+
"title": "Cancel the current execution task?"
2531
}
2632
}

‎ui/src/locales/en-US/common/index.json‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
"requiredMessage": "Enter a name",
2323
"copySuffix": "Copy"
2424
},
25+
"title": {
26+
"label": "Title",
27+
"placeholder": "Enter a title",
28+
"requiredMessage": "Enter a title"
29+
},
2530
"description": {
2631
"label": "Description",
2732
"placeholder": "Enter a description"
@@ -132,7 +137,8 @@
132137
"saveAndEnable": "Save and enable",
133138
"comfirm": "Ok",
134139
"submit": "Submit",
135-
"testConnection": "Test connection"
140+
"testConnection": "Test connection",
141+
"debug": "Debug"
136142
},
137143
"dialogs": {
138144
"notice": "Notice",
@@ -191,7 +197,9 @@
191197
"selectRequired": "This field is required",
192198
"selectFieldRequired": "Select {label}",
193199
"jsonFormat": "Enter valid JSON",
194-
"lengthRange": "Length must be {min}-{max} characters"
200+
"lengthRange": "Length must be {min}-{max} characters",
201+
"jsonArrayRequired": "Enter a JSON array",
202+
"jsonObjectRequired": "Enter a JSON object"
195203
},
196204
"empty": {
197205
"default": "No data",

‎ui/src/locales/en-US/knowledge/index.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"workflow": {
3131
"label": "Workflow knowledge",
3232
"createTitle": "Create workflow knowledge",
33-
"description": "Use a custom workflow to build knowledge."
33+
"description": "Use a custom workflow to build knowledge.",
34+
"documentImportUnavailableMessage": "This Knowledge workflow has not been published. Publish it before importing documents."
3435
},
3536
"fields": {
3637
"name": {

‎ui/src/locales/en-US/knowledge/paragraph.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"paragraph": {
33
"detailTitle": "Segment details",
4-
"heading": {
5-
"label": "Title",
6-
"placeholder": "Enter a title"
7-
},
84
"content": {
95
"label": "Content",
106
"placeholder": "Enter segment content",

‎ui/src/locales/en-US/tool.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,17 @@
130130
}
131131
},
132132
"debug": {
133-
"title": "Debug",
134133
"run": "Run",
135134
"resultTitle": "Run result",
136135
"runSuccess": "Run succeeded",
137136
"runFailed": "Run failed",
138137
"output": "Output",
139-
"failureMessage": "The tool failed to run."
138+
"failureMessage": "The tool failed to run.",
139+
"debugResultTitle": "Debug result",
140+
"answering": "Answering",
141+
"requestFailedMessage": "Debug request failed ({status})",
142+
"noResponseMessage": "No debug response received",
143+
"failedMessage": "Debug failed"
140144
},
141145
"delete": {
142146
"title": "Delete tool: {name}?",

‎ui/src/locales/en-US/workflow/data-processing-node.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "Update the values of global variables",
55
"value": {
66
"label": "Value",
7-
"placeholder": "Enter content",
87
"custom": "Custom"
98
}
109
},

0 commit comments

Comments
 (0)