Skip to content

Commit bf24f19

Browse files
authored
chore: refine UI text consistency and translation accuracy for workflow (#2153)
1 parent 950f4a7 commit bf24f19

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

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

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -8,51 +8,51 @@ export default {
88
},
99
info: {
1010
previewVersion: 'Preview Version:',
11-
saveTime: 'Save Time:'
11+
saveTime: 'Last Saved:'
1212
},
1313
setting: {
14-
restoreVersion: 'Restore Version',
15-
restoreCurrentVersion: 'Restore This Version',
16-
addComponent: 'Add Component',
14+
restoreVersion: 'Restore Previous Version"',
15+
restoreCurrentVersion: 'Restore to This Version',
16+
addComponent: 'Add',
1717
public: 'Publish',
18-
releaseHistory: 'Publish History',
18+
releaseHistory: 'Release History',
1919
autoSave: 'Auto Save',
20-
latestRelease: 'Latest Publish',
21-
copyParam: 'Copy Parameter',
20+
latestRelease: 'Latest Release',
21+
copyParam: 'Copy Parameters',
2222
debug: 'Run',
2323
},
2424
tip: {
25-
publicSuccess: 'Successfully',
25+
publicSuccess: 'Published successfully',
2626
noData: 'No related results found',
2727
nameMessage: 'Name cannot be empty!',
28-
onlyRight: 'Only allow connections from the right anchor point',
29-
notRecyclable: 'Cannot create a loop connection',
30-
onlyLeft: 'Only allow connections to the left anchor point',
31-
applicationNodeError: 'This APP is unavailable',
32-
functionNodeError: 'This function is unavailable',
33-
repeatedNodeError: 'Node name already exists!',
28+
onlyRight: 'Connections can only be made from the right anchor',
29+
notRecyclable: 'Loop connections are not allowed',
30+
onlyLeft: 'Connections can only be made to the left anchor',
31+
applicationNodeError: 'This application is unavailable',
32+
functionNodeError: 'This function node is unavailable',
33+
repeatedNodeError: 'A node with this name already exists',
3434
cannotCopy: 'Cannot be copied',
35-
copyError: 'Node has been copied',
35+
copyError: 'Node already copied',
3636
paramErrorMessage: 'Parameter already exists: '
3737
},
3838
delete: {
3939
confirmTitle: 'Confirm to delete this node?',
40-
deleteMessage: 'Node cannot be deleted'
40+
deleteMessage: 'This node cannot be deleted'
4141
},
4242
control: {
4343
zoomOut: 'Zoom Out',
4444
zoomIn: 'Zoom In',
45-
fitView: 'Fit View',
46-
retract: 'Collapse All Nodes',
47-
extend: 'Expand All Nodes',
48-
beautify: 'One-click Beautification'
45+
fitView: 'Fit to Screen',
46+
retract: 'Collapse All',
47+
extend: 'Expand All',
48+
beautify: 'Auto-Arrange'
4949
},
5050
variable: {
5151
global: 'Global Variable',
52-
Referencing: 'Reference Variable',
53-
ReferencingRequired: 'reference variable required',
54-
ReferencingError: 'reference variable error',
55-
NoReferencing: 'Non-existent Reference Variable',
52+
Referencing: 'Referenced Variable',
53+
ReferencingRequired: 'Referenced variable is required',
54+
ReferencingError: 'Invalid referenced variable',
55+
NoReferencing: 'Referenced variable does not exist',
5656
fieldMessage: 'Please select a variable'
5757
},
5858
condition: {
@@ -63,15 +63,15 @@ export default {
6363
text: 'After the connected node is executed, execute the current node'
6464
},
6565
validate: {
66-
startNodeRequired: 'Start Node Required',
67-
startNodeOnly: 'There can only be one start node',
68-
baseNodeRequired: 'Base Info Node Required',
69-
baseNodeOnly: 'There can only be one base info node',
66+
startNodeRequired: 'Start node is required',
67+
startNodeOnly: 'Only one start node is allowed',
68+
baseNodeRequired: 'Base information node is required',
69+
baseNodeOnly: 'Only one base information node is allowed',
7070
notInWorkFlowNode: 'Node not in workflow',
71-
noNextNode: 'Non-existent next node',
71+
noNextNode: 'Next node does not exist',
7272
nodeUnavailable: 'Node unavailable',
7373
needConnect1: 'The branch of the node needs to be connected',
74-
cannotEndNode: 'Node cannot be used as an end node'
74+
cannotEndNode: 'This node cannot be used as an end node'
7575
},
7676
nodes: {
7777
startNode: {
@@ -99,7 +99,7 @@ export default {
9999
},
100100
aiChatNode: {
101101
label: 'AI Chat',
102-
text: 'Chat with AI large model',
102+
text: 'Chat with an AI model',
103103
answer: 'AI Answer Content',
104104
returnContent: {
105105
label: 'Return Content',
@@ -109,13 +109,13 @@ export default {
109109
defaultPrompt: 'Known Information'
110110
},
111111
searchDatasetNode: {
112-
label: 'Knowledge Search',
113-
text: 'Associate knowledge and find relevant segments',
112+
label: 'Knowledge Retrieval',
113+
text: 'Allows you to query text content related to user questions from the Knowledge',
114114
paragraph_list: 'List of retrieved segments',
115115
is_hit_handling_method_list: 'List of segments that meet direct response criteria',
116116
result: 'Search Result',
117117
directly_return: 'Content of segments that meet direct response criteria',
118-
selectDatasetText: 'Associated knowledge displayed here',
118+
selectDatasetText: 'Related knowledge displayed here',
119119
searchParam: 'Retrieval Parameters',
120120
searchQuestion: {
121121
label: 'Question',
@@ -133,7 +133,7 @@ export default {
133133
},
134134
conditionNode: {
135135
label: 'Conditional Branch',
136-
text: 'Execute different nodes based on different conditions',
136+
text: 'Trigger different nodes based on conditions',
137137
branch_name: 'Branch Name',
138138
conditions: {
139139
label: 'Conditions',
@@ -156,7 +156,7 @@ export default {
156156
},
157157
rerankerNode: {
158158
label: 'Multi-path Recall',
159-
text: 'Use Rerank to perform secondary recall on retrieval results from multiple knowledge',
159+
text: 'Use a re-ranking model to refine retrieval results from multiple knowledge sources',
160160
result_list: 'Re-ranked Results List',
161161
result: 'Re-ranking Result',
162162
rerankerContent: {
@@ -172,8 +172,8 @@ export default {
172172
}
173173
},
174174
formNode: {
175-
label: 'Form Collection',
176-
text: 'Used to collect user information during Q&A process, subsequent processes can be executed based on collected form data',
175+
label: 'Form Input',
176+
text: 'Collect user input during Q&A and use it in subsequent processes',
177177
form_content_format1: 'Hello, please fill out the form below:',
178178
form_content_format2: 'Click the [Submit] button after filling it out.',
179179
form_data: 'All Form Content',
@@ -182,7 +182,7 @@ export default {
182182
requiredMessage:
183183
'Please set the output content of this node, { form } is a placeholder for the form.',
184184
tooltip:
185-
'Set the content output by executing this node, { form } is a placeholder for the form.'
185+
'Define the output content of this node. { form } is a placeholder for the form'
186186
},
187187
formAllContent: 'All Form Content',
188188
formSetting: 'Form Configuration'
@@ -194,7 +194,7 @@ export default {
194194
},
195195
imageUnderstandNode: {
196196
label: 'Image Understanding',
197-
text: 'Identify objects, scenes, etc., in images to answer user questions',
197+
text: 'Analyze images to identify objects, scenes, and provide answers',
198198
answer: 'AI Answer Content',
199199
model: {
200200
label: 'Vision Model',
@@ -216,12 +216,12 @@ export default {
216216
prompt: {
217217
label: 'Positive Prompt',
218218
tooltip:
219-
'Positive prompt words, used to describe elements and visual features expected in the generated image'
219+
'Describe elements and visual features you want in the generated image'
220220
},
221221
negative_prompt: {
222222
label: 'Negative Prompt',
223223
tooltip:
224-
'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.',
224+
'Describe elements you want to exclude from the generated image',
225225
placeholder:
226226
'Please describe content you do not want to generate, such as color, bloody content'
227227
}
@@ -256,20 +256,20 @@ export default {
256256
}
257257
},
258258
compare: {
259-
is_null: 'Is Null',
260-
is_not_null: 'Is Not Null',
259+
is_null: 'Is null',
260+
is_not_null: 'Is not null',
261261
contain: 'Contains',
262-
not_contain: 'Does Not Contain',
263-
eq: 'Equals',
264-
ge: 'Greater Than or Equal To',
265-
gt: 'Greater Than',
266-
le: 'Less Than or Equal To',
267-
lt: 'Less Than',
268-
len_eq: 'Length Equals',
269-
len_ge: 'Length Greater Than or Equal To',
270-
len_gt: 'Length Greater Than',
271-
len_le: 'Length Less Than or Equal To',
272-
len_lt: 'Length Less Than'
262+
not_contain: 'Does not contain',
263+
eq: 'Equal to',
264+
ge: 'Greater than or equal to',
265+
gt: 'Greater than',
266+
le: 'Less than or equal to',
267+
lt: 'Less than',
268+
len_eq: 'Length equal to',
269+
len_ge: 'Length greater than or equal to',
270+
len_gt: 'Length greater than',
271+
len_le: 'Length less than or equal to',
272+
len_lt: 'Length less than'
273273
},
274274
FileUploadSetting: {}
275275
}

0 commit comments

Comments
 (0)