Skip to content

Commit 878f8c0

Browse files
committed
chore: add tool creation labels in multiple languages
--bug=1060683 --user=刘瑞斌 【工具】-创建功能列表中,“空白创建”应该改成“创建工具” https://www.tapd.cn/62980211/s/1759252
1 parent 452fd53 commit 878f8c0

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

ui/src/locales/lang/en-US/views/tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export default {
3838
},
3939

4040
form: {
41+
create: 'Create Tool',
42+
createMcp: 'Create MCP',
4143
toolName: {
4244
label: 'Name',
4345
name: 'Tool Name',

ui/src/locales/lang/zh-CN/views/tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export default {
3232
saveMessage: '当前的更改尚未保存,确认退出吗?',
3333
},
3434
form: {
35+
create: '创建工具',
36+
createMcp: '创建MCP',
3537
toolName: {
3638
label: '名称',
3739
name: '工具名称',

ui/src/locales/lang/zh-Hant/views/tool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export default {
3535
confirmMessage: '停用後,引用該工具的應用在查詢時會報錯,請謹慎操作。',
3636
},
3737
form: {
38+
create: '建立工具',
39+
createMcp: '建立MCP',
3840
toolName: {
3941
label: '名稱',
4042
name: '工具名稱',

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
5050
<img src="@/assets/workflow/icon_tool.svg" style="width: 58%" alt="" />
5151
</el-avatar>
5252
<div class="pre-wrap ml-8">
53-
<div class="lighter">
54-
{{ $t('views.application.form.appTemplate.blankApp.title') }}
55-
</div>
53+
<div class="lighter">{{ $t('views.tool.form.create') }}</div>
5654
</div>
5755
</div>
5856
</el-dropdown-item>
@@ -62,7 +60,7 @@
6260
<img src="@/assets/workflow/icon_mcp.svg" style="width: 75%" alt="" />
6361
</el-avatar>
6462
<div class="pre-wrap ml-8">
65-
<div class="lighter">{{ $t('common.create') }} MCP</div>
63+
<div class="lighter">{{ $t('views.tool.form.createMcp') }}</div>
6664
</div>
6765
</div>
6866
</el-dropdown-item>

0 commit comments

Comments
 (0)