Skip to content

Commit 27f0250

Browse files
fix: Fix translation gaps
1 parent ce8f907 commit 27f0250

File tree

8 files changed

+130
-109
lines changed

8 files changed

+130
-109
lines changed

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,12 +669,12 @@
669669
<template v-if="item.type === WorkflowType.McpNode">
670670
<div class="card-never border-r-6">
671671
<h5 class="p-8-12">
672-
{{ $t('views.applicationWorkflow.nodes.mcpNode.tool') }}
672+
{{ $t('views.tool.title') }}
673673
</h5>
674674
<div class="p-8-12 border-t-dashed lighter">
675675
<div class="mb-8">
676676
<span class="color-secondary">
677-
{{ $t('views.applicationWorkflow.nodes.mcpNode.tool') }}:
677+
{{ $t('views.tool.title') }}:
678678
</span>
679679
{{ item.mcp_tool }}
680680
</div>

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 60 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export default {
55
nodeSetting: 'Node Settings',
66
workflow: 'Workflow',
77
searchBar: {
8-
placeholder: 'Search by name'
8+
placeholder: 'Search by name',
99
},
1010
info: {
1111
previewVersion: 'Preview Version:',
12-
saveTime: 'Last Saved:'
12+
saveTime: 'Last Saved:',
1313
},
1414
setting: {
1515
restoreVersion: 'Restore Previous Version"',
@@ -39,15 +39,15 @@ export default {
3939
},
4040
delete: {
4141
confirmTitle: 'Confirm to delete this node?',
42-
deleteMessage: 'This node cannot be deleted'
42+
deleteMessage: 'This node cannot be deleted',
4343
},
4444
control: {
4545
zoomOut: 'Zoom Out',
4646
zoomIn: 'Zoom In',
4747
fitView: 'Fit to Screen',
4848
retract: 'Collapse All',
4949
extend: 'Expand All',
50-
beautify: 'Auto-Arrange'
50+
beautify: 'Auto-Arrange',
5151
},
5252
variable: {
5353
label: 'Variable',
@@ -56,14 +56,14 @@ export default {
5656
ReferencingRequired: 'Referenced variable is required',
5757
ReferencingError: 'Invalid referenced variable',
5858
NoReferencing: 'Referenced variable does not exist',
59-
placeholder: 'Please select a variable'
59+
placeholder: 'Please select a variable',
6060
},
6161
condition: {
6262
title: 'Execution Condition',
6363
front: 'Precondition',
6464
AND: 'All',
6565
OR: 'Any',
66-
text: 'After the connected node is executed, execute the current node'
66+
text: 'After the connected node is executed, execute the current node',
6767
},
6868
validate: {
6969
startNodeRequired: 'Start node is required',
@@ -74,30 +74,30 @@ export default {
7474
noNextNode: 'Next node does not exist',
7575
nodeUnavailable: 'Node unavailable',
7676
needConnect1: 'The branch of the node needs to be connected',
77-
cannotEndNode: 'This node cannot be used as an end node'
77+
cannotEndNode: 'This node cannot be used as an end node',
7878
},
7979
nodes: {
8080
classify: {
8181
aiCapability: 'AI capability',
8282
businessLogic: 'Business logic',
83-
other: 'Other'
83+
other: 'Other',
8484
},
8585
startNode: {
8686
label: 'Start',
8787
question: 'User Question',
88-
currentTime: 'Current Time'
88+
currentTime: 'Current Time',
8989
},
9090
baseNode: {
9191
label: 'Base Information',
9292
appName: {
93-
label: 'App Name'
93+
label: 'App Name',
9494
},
9595
appDescription: {
96-
label: 'App Description'
96+
label: 'App Description',
9797
},
9898
fileUpload: {
9999
label: 'File Upload',
100-
tooltip: 'When enabled, the Q&A page will display a file upload button.'
100+
tooltip: 'When enabled, the Q&A page will display a file upload button.',
101101
},
102102
FileUploadSetting: {
103103
title: 'File Upload Settings',
@@ -107,9 +107,9 @@ export default {
107107
label: 'File types allowed for upload',
108108
documentText: 'Requires "Document Content Extraction" node to parse document content',
109109
imageText: 'Requires "Image Understanding" node to parse image content',
110-
audioText: 'Requires "Speech-to-Text" node to parse audio content'
111-
}
112-
}
110+
audioText: 'Requires "Speech-to-Text" node to parse audio content',
111+
},
112+
},
113113
},
114114
aiChatNode: {
115115
label: 'AI Chat',
@@ -118,10 +118,10 @@ export default {
118118
returnContent: {
119119
label: 'Return Content',
120120
tooltip: `If turned off, the content of this node will not be output to the user.
121-
If you want the user to see the output of this node, please turn on the switch.`
121+
If you want the user to see the output of this node, please turn on the switch.`,
122122
},
123123
defaultPrompt: 'Known Information',
124-
think: 'Thinking Process'
124+
think: 'Thinking Process',
125125
},
126126
searchKnowledgeNode: {
127127
label: 'Knowledge Retrieval',
@@ -134,16 +134,16 @@ export default {
134134
searchQuestion: {
135135
label: 'Question',
136136
placeholder: 'Please select a search question',
137-
requiredMessage: 'Please select a search question'
138-
}
137+
requiredMessage: 'Please select a search question',
138+
},
139139
},
140140
questionNode: {
141141
label: 'Question Optimization',
142142
text: 'Optimize and improve the current question based on historical chat records to better match knowledge segments',
143143
result: 'Optimized Question Result',
144144
defaultPrompt1: `Optimize and improve the user's question based on context:`,
145145
defaultPrompt2: `Please output an optimized question.`,
146-
systemDefault: 'You are a question optimization expert'
146+
systemDefault: 'You are a question optimization expert',
147147
},
148148
conditionNode: {
149149
label: 'Conditional Branch',
@@ -152,20 +152,20 @@ export default {
152152
conditions: {
153153
label: 'Conditions',
154154
info: 'Meets the following',
155-
requiredMessage: 'Please select conditions'
155+
requiredMessage: 'Please select conditions',
156156
},
157157
valueMessage: 'Please enter a value',
158158
addCondition: 'Add Condition',
159-
addBranch: 'Add Branch'
159+
addBranch: 'Add Branch',
160160
},
161161
replyNode: {
162162
label: 'Specified Reply',
163163
text: 'Specify reply content, referenced variables will be converted to strings for output',
164164
content: 'Content',
165165
replyContent: {
166166
label: 'Reply Content',
167-
reference: 'Reference Variable'
168-
}
167+
reference: 'Reference Variable',
168+
},
169169
},
170170
rerankerNode: {
171171
label: 'Multi-path Recall',
@@ -174,15 +174,15 @@ export default {
174174
result: 'Re-ranking Result',
175175
rerankerContent: {
176176
label: 'Re-ranking Content',
177-
requiredMessage: 'Please select re-ranking content'
177+
requiredMessage: 'Please select re-ranking content',
178178
},
179179
higher: 'Higher',
180180
ScoreTooltip: 'The higher the Score, the stronger the relevance.',
181181
max_paragraph_char_number: 'Maximum Character',
182182
reranker_model: {
183183
label: 'Rerank',
184-
placeholder: 'Please select a rerank'
185-
}
184+
placeholder: 'Please select a rerank',
185+
},
186186
},
187187
formNode: {
188188
label: 'Form Input',
@@ -194,81 +194,92 @@ export default {
194194
label: 'Form Output Content',
195195
requiredMessage:
196196
'Please set the output content of this node, { form } is a placeholder for the form.',
197-
tooltip: 'Define the output content of this node. { form } is a placeholder for the form'
197+
tooltip: 'Define the output content of this node. { form } is a placeholder for the form',
198198
},
199199
formAllContent: 'All Form Content',
200-
formSetting: 'Form Configuration'
200+
formSetting: 'Form Configuration',
201201
},
202202
documentExtractNode: {
203203
label: 'Document Content Extraction',
204204
text: 'Extract content from documents',
205-
content: 'Document Content'
205+
content: 'Document Content',
206206
},
207207
imageUnderstandNode: {
208208
label: 'Image Understanding',
209209
text: 'Analyze images to identify objects, scenes, and provide answers',
210210
answer: 'AI Content',
211211
model: {
212212
label: 'Vision Model',
213-
requiredMessage: 'Please select a vision model'
213+
requiredMessage: 'Please select a vision model',
214214
},
215215
image: {
216216
label: 'Select Image',
217-
requiredMessage: 'Please select an image'
218-
}
217+
requiredMessage: 'Please select an image',
218+
},
219219
},
220220
variableAssignNode: {
221221
label: 'Variable Assign',
222222
text: 'Update the value of the global variable',
223-
assign: 'Set Value'
223+
assign: 'Set Value',
224+
},
225+
mcpNode: {
226+
label: 'MCP Node',
227+
text: 'Call external MCP services to process data',
228+
getToolsSuccess: 'Tools fetched successfully',
229+
getTool: 'Fetch Tools',
230+
toolParam: 'Tool Parameters',
231+
mcpServerTip: 'Please enter MCP server configuration in JSON format',
232+
mcpToolTip: 'Please select a tool',
233+
configLabel: 'MCP Server Config (Only SSE/Streamable HTTP calls are supported)',
234+
reference: 'Reference MCP',
224235
},
225236
imageGenerateNode: {
226237
label: 'Image Generation',
227238
text: 'Generate images based on provided text content',
228239
answer: 'AI Content',
229240
model: {
230241
label: 'Image Generation Model',
231-
requiredMessage: 'Please select an image generation model'
242+
requiredMessage: 'Please select an image generation model',
232243
},
233244
prompt: {
234245
label: 'Positive Prompt',
235-
tooltip: 'Describe elements and visual features you want in the generated image'
246+
tooltip: 'Describe elements and visual features you want in the generated image',
236247
},
237248
negative_prompt: {
238249
label: 'Negative Prompt',
239250
tooltip: 'Describe elements you want to exclude from the generated image',
240251
placeholder:
241-
'Please describe content you do not want to generate, such as color, bloody content'
242-
}
252+
'Please describe content you do not want to generate, such as color, bloody content',
253+
},
243254
},
244255
speechToTextNode: {
245256
label: 'Speech2Text',
246257
text: 'Convert audio to text through speech recognition model',
247258
stt_model: {
248-
label: 'Speech Recognition Model'
259+
label: 'Speech Recognition Model',
249260
},
250261
audio: {
251262
label: 'Select Audio File',
252-
placeholder: 'Please select an audio file'
253-
}
263+
placeholder: 'Please select an audio file',
264+
},
254265
},
255266
textToSpeechNode: {
256267
label: 'TTS',
257268
text: 'Convert text to audio through speech synthesis model',
258269
tts_model: {
259-
label: 'Speech Synthesis Model'
270+
label: 'Speech Synthesis Model',
260271
},
261272
content: {
262-
label: 'Select Text Content'
263-
}
273+
label: 'Select Text Content',
274+
},
264275
},
265276
toolNode: {
266277
label: 'Custom Tool',
267-
text: 'Execute custom scripts to achieve data processing'
278+
text: 'Execute custom scripts to achieve data processing',
268279
},
269280
applicationNode: {
270-
label: 'APP Node'
271-
}
281+
label: 'APP Node',
282+
},
272283
},
273284
compare: {
274285
is_null: 'Is null',
@@ -284,7 +295,7 @@ export default {
284295
len_ge: 'Length greater than or equal to',
285296
len_gt: 'Length greater than',
286297
len_le: 'Length less than or equal to',
287-
len_lt: 'Length less than'
298+
len_lt: 'Length less than',
288299
},
289-
FileUploadSetting: {}
300+
FileUploadSetting: {},
290301
}

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export default {
233233
text: '通过SSE/Streamable HTTP方式执行MCP服务中的工具',
234234
getToolsSuccess: '获取工具成功',
235235
getTool: '获取工具',
236-
tool: '工具',
237236
toolParam: '工具参数',
238237
mcpServerTip: '请输入JSON格式的MCP服务器配置',
239238
mcpToolTip: '请选择工具',

0 commit comments

Comments
 (0)