Skip to content

Commit c27b56e

Browse files
committed
chore: refine UI text consistency and translation accuracy for workflow
1 parent 06feeec commit c27b56e

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

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

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,50 @@ 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
},
2323
tip: {
24-
publicSuccess: 'Successfully',
24+
publicSuccess: 'Published successfully',
2525
noData: 'No related results found',
2626
nameMessage: 'Name cannot be empty!',
27-
onlyRight: 'Only allow connections from the right anchor point',
28-
notRecyclable: 'Cannot create a loop connection',
29-
onlyLeft: 'Only allow connections to the left anchor point',
30-
applicationNodeError: 'This APP is unavailable',
31-
functionNodeError: 'This function is unavailable',
32-
repeatedNodeError: 'Node name already exists!',
27+
onlyRight: 'Connections can only be made from the right anchor',
28+
notRecyclable: 'Loop connections are not allowed',
29+
onlyLeft: 'Connections can only be made to the left anchor',
30+
applicationNodeError: 'This application is unavailable',
31+
functionNodeError: 'This function node is unavailable',
32+
repeatedNodeError: 'A node with this name already exists',
3333
cannotCopy: 'Cannot be copied',
34-
copyError: 'Node has been copied',
34+
copyError: 'Node already copied',
3535
paramErrorMessage: 'Parameter already exists: '
3636
},
3737
delete: {
3838
confirmTitle: 'Confirm to delete this node?',
39-
deleteMessage: 'Node cannot be deleted'
39+
deleteMessage: 'This node cannot be deleted'
4040
},
4141
control: {
4242
zoomOut: 'Zoom Out',
4343
zoomIn: 'Zoom In',
44-
fitView: 'Fit View',
45-
retract: 'Collapse All Nodes',
46-
extend: 'Expand All Nodes',
47-
beautify: 'One-click Beautification'
44+
fitView: 'Fit to Screen',
45+
retract: 'Collapse All',
46+
extend: 'Expand All',
47+
beautify: 'Auto-Arrange'
4848
},
4949
variable: {
5050
global: 'Global Variable',
51-
Referencing: 'Reference Variable',
52-
ReferencingRequired: 'reference variable required',
53-
ReferencingError: 'reference variable error',
54-
NoReferencing: 'Non-existent Reference Variable',
51+
Referencing: 'Referenced Variable',
52+
ReferencingRequired: 'Referenced variable is required',
53+
ReferencingError: 'Invalid referenced variable',
54+
NoReferencing: 'Referenced variable does not exist',
5555
fieldMessage: 'Please select a variable'
5656
},
5757
condition: {
@@ -62,15 +62,15 @@ export default {
6262
text: 'After the connected node is executed, execute the current node'
6363
},
6464
validate: {
65-
startNodeRequired: 'Start Node Required',
66-
startNodeOnly: 'There can only be one start node',
67-
baseNodeRequired: 'Base Info Node Required',
68-
baseNodeOnly: 'There can only be one base info node',
65+
startNodeRequired: 'Start node is required',
66+
startNodeOnly: 'Only one start node is allowed',
67+
baseNodeRequired: 'Base information node is required',
68+
baseNodeOnly: 'Only one base information node is allowed',
6969
notInWorkFlowNode: 'Node not in workflow',
70-
noNextNode: 'Non-existent next node',
70+
noNextNode: 'Next node does not exist',
7171
nodeUnavailable: 'Node unavailable',
7272
needConnect1: 'The branch of the node needs to be connected',
73-
cannotEndNode: 'Node cannot be used as an end node'
73+
cannotEndNode: 'This node cannot be used as an end node'
7474
},
7575
nodes: {
7676
startNode: {
@@ -98,7 +98,7 @@ export default {
9898
},
9999
aiChatNode: {
100100
label: 'AI Chat',
101-
text: 'Chat with AI large model',
101+
text: 'Chat with an AI model',
102102
answer: 'AI Answer Content',
103103
returnContent: {
104104
label: 'Return Content',
@@ -108,8 +108,8 @@ export default {
108108
defaultPrompt: 'Known Information'
109109
},
110110
searchDatasetNode: {
111-
label: 'Knowledge Search',
112-
text: 'Associate knowledge and find relevant segments',
111+
label: 'Knowledge Retrieval',
112+
text: 'Allows you to query text content related to user questions from the Knowledge',
113113
paragraph_list: 'List of retrieved segments',
114114
is_hit_handling_method_list: 'List of segments that meet direct response criteria',
115115
result: 'Search Result',
@@ -132,7 +132,7 @@ export default {
132132
},
133133
conditionNode: {
134134
label: 'Conditional Branch',
135-
text: 'Execute different nodes based on different conditions',
135+
text: 'Trigger different nodes based on conditions',
136136
branch_name: 'Branch Name',
137137
conditions: {
138138
label: 'Conditions',
@@ -155,7 +155,7 @@ export default {
155155
},
156156
rerankerNode: {
157157
label: 'Multi-path Recall',
158-
text: 'Use Rerank to perform secondary recall on retrieval results from multiple knowledge',
158+
text: 'Use a re-ranking model to refine retrieval results from multiple knowledge sources',
159159
result_list: 'Re-ranked Results List',
160160
result: 'Re-ranking Result',
161161
rerankerContent: {
@@ -171,8 +171,8 @@ export default {
171171
}
172172
},
173173
formNode: {
174-
label: 'Form Collection',
175-
text: 'Used to collect user information during Q&A process, subsequent processes can be executed based on collected form data',
174+
label: 'Form Input',
175+
text: 'Collect user input during Q&A and use it in subsequent processes',
176176
form_content_format1: 'Hello, please fill out the form below:',
177177
form_content_format2: 'Click the [Submit] button after filling it out.',
178178
form_data: 'All Form Content',
@@ -181,7 +181,7 @@ export default {
181181
requiredMessage:
182182
'Please set the output content of this node, { form } is a placeholder for the form.',
183183
tooltip:
184-
'Set the content output by executing this node, { form } is a placeholder for the form.'
184+
'Define the output content of this node. { form } is a placeholder for the form'
185185
},
186186
formAllContent: 'All Form Content',
187187
formSetting: 'Form Configuration'
@@ -193,7 +193,7 @@ export default {
193193
},
194194
imageUnderstandNode: {
195195
label: 'Image Understanding',
196-
text: 'Identify objects, scenes, etc., in images to answer user questions',
196+
text: 'Analyze images to identify objects, scenes, and provide answers',
197197
answer: 'AI Answer Content',
198198
model: {
199199
label: 'Vision Model',
@@ -215,12 +215,12 @@ export default {
215215
prompt: {
216216
label: 'Positive Prompt',
217217
tooltip:
218-
'Positive prompt words, used to describe elements and visual features expected in the generated image'
218+
'Describe elements and visual features you want in the generated image'
219219
},
220220
negative_prompt: {
221221
label: 'Negative Prompt',
222222
tooltip:
223-
'Negative prompt words, used to describe content that should not appear in the image, which can limit the image.',
223+
'Describe elements you want to exclude from the generated image',
224224
placeholder:
225225
'Please describe content you do not want to generate, such as color, bloody content'
226226
}
@@ -255,20 +255,20 @@ export default {
255255
}
256256
},
257257
compare: {
258-
is_null: 'Is Null',
259-
is_not_null: 'Is Not Null',
258+
is_null: 'Is null',
259+
is_not_null: 'Is not null',
260260
contain: 'Contains',
261-
not_contain: 'Does Not Contain',
262-
eq: 'Equals',
263-
ge: 'Greater Than or Equal To',
264-
gt: 'Greater Than',
265-
le: 'Less Than or Equal To',
266-
lt: 'Less Than',
267-
len_eq: 'Length Equals',
268-
len_ge: 'Length Greater Than or Equal To',
269-
len_gt: 'Length Greater Than',
270-
len_le: 'Length Less Than or Equal To',
271-
len_lt: 'Length Less Than'
261+
not_contain: 'Does not contain',
262+
eq: 'Equal to',
263+
ge: 'Greater than or equal to',
264+
gt: 'Greater than',
265+
le: 'Less than or equal to',
266+
lt: 'Less than',
267+
len_eq: 'Length equal to',
268+
len_ge: 'Length greater than or equal to',
269+
len_gt: 'Length greater than',
270+
len_le: 'Length less than or equal to',
271+
len_lt: 'Length less than'
272272
},
273273
FileUploadSetting: {}
274274
}

0 commit comments

Comments
 (0)