Skip to content

Commit 8d18258

Browse files
fix: refine translation
1 parent d2cd48a commit 8d18258

36 files changed

+117
-99
lines changed

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
>
5858
<div class="card-never border-r-4">
5959
<h5 class="p-8-12">
60-
{{ $t('chat.executionDetails.paramInput') }}
60+
{{ $t('common.param.inputParam') }}
6161
</h5>
6262
<div class="p-8-12 border-t-dashed lighter">
6363
<div class="mb-8">
@@ -218,7 +218,7 @@
218218
<h5 class="p-8-12">
219219
{{
220220
item.type == WorkflowType.Application
221-
? $t('chat.executionDetails.paramOutput')
221+
? $t('common.param.outputParam')
222222
: $t('chat.executionDetails.answer')
223223
}}
224224
</h5>
@@ -260,9 +260,7 @@
260260
<template v-if="item.type === WorkflowType.DocumentExtractNode">
261261
<div class="card-never border-r-4">
262262
<h5 class="p-8-12 flex align-center">
263-
<span class="mr-4">{{
264-
$t('chat.executionDetails.paramOutput')
265-
}}</span>
263+
<span class="mr-4">{{ $t('chat.executionDetails.paramOutput') }}</span>
266264

267265
<el-tooltip
268266
effect="dark"
@@ -297,7 +295,7 @@
297295
<template v-if="item.type === WorkflowType.SpeechToTextNode">
298296
<div class="card-never border-r-4">
299297
<h5 class="p-8-12">
300-
{{ $t('chat.executionDetails.paramInput') }}
298+
{{ $t('common.param.inputParam') }}
301299
</h5>
302300
<div class="p-8-12 border-t-dashed lighter">
303301
<div class="mb-8">
@@ -322,7 +320,7 @@
322320
</div>
323321
<div class="card-never border-r-4">
324322
<h5 class="p-8-12">
325-
{{ $t('chat.executionDetails.paramOutput') }}
323+
{{ $t('common.param.outputParam') }}
326324
</h5>
327325
<div class="p-8-12 border-t-dashed lighter">
328326
<el-card
@@ -348,7 +346,7 @@
348346
<template v-if="item.type === WorkflowType.TextToSpeechNode">
349347
<div class="card-never border-r-4">
350348
<h5 class="p-8-12">
351-
{{ $t('chat.executionDetails.paramInput') }}
349+
{{ $t('common.param.inputParam') }}
352350
</h5>
353351
<div class="p-8-12 border-t-dashed lighter">
354352
<div class="p-8-12 border-t-dashed lighter">
@@ -368,7 +366,7 @@
368366
</div>
369367
<div class="card-never border-r-4">
370368
<h5 class="p-8-12">
371-
{{ $t('chat.executionDetails.paramOutput') }}
369+
{{ $t('common.param.outputParam') }}
372370
</h5>
373371
<div class="p-8-12 border-t-dashed lighter">
374372
<p class="mb-8 color-secondary">
@@ -475,11 +473,9 @@
475473
<template v-if="item.type === WorkflowType.FormNode">
476474
<div class="card-never border-r-4">
477475
<h5 class="p-8-12">
478-
{{ $t('chat.executionDetails.paramOutput')
476+
{{ $t('common.param.outputParam')
479477
}}<span style="color: #f54a45">{{
480-
item.is_submit
481-
? ''
482-
: `(${$t('chat.executionDetails.noSubmit')})`
478+
item.is_submit ? '' : `(${$t('chat.executionDetails.noSubmit')})`
483479
}}</span>
484480
</h5>
485481

@@ -572,7 +568,7 @@
572568
<h5 class="p-8-12">
573569
{{
574570
item.type == WorkflowType.Application
575-
? $t('chat.executionDetails.paramOutput')
571+
? $t('common.param.outputParam')
576572
: $t('chat.executionDetails.answer')
577573
}}
578574
</h5>
@@ -602,7 +598,7 @@
602598
<h5 class="p-8-12">
603599
{{
604600
item.type == WorkflowType.Application
605-
? $t('chat.executionDetails.paramOutput')
601+
? $t('common.param.outputParam')
606602
: $t('chat.executionDetails.answer')
607603
}}
608604
</h5>

ui/src/locales/lang/en-US/ai-chat.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ export default {
6363
},
6464
executionDetails: {
6565
title: 'Execution Details',
66-
paramInput: 'Parameter Input',
67-
paramOutput: 'Parameter Output',
6866
paramOutputTooltip: 'Each document supports previewing up to 500 characters',
6967
audioFile: 'Audio File',
7068
searchContent: 'Search Query',

ui/src/locales/lang/en-US/common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ export default {
5050
enableSuccess: 'Successful',
5151
disableSuccess: 'Successful'
5252
},
53+
param: {
54+
outputParam: 'Output Parameters',
55+
inputParam: 'Input Parameters'
56+
},
57+
5358
inputPlaceholder: 'Please input',
5459
title: 'Title',
5560
content: 'Content'

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@ export default {
8080
currentTime: 'Current Time'
8181
},
8282
baseNode: {
83-
label: 'Base Info',
83+
label: 'Base Information',
84+
appName: {
85+
label: 'App Name',
86+
87+
},
88+
appDescription: {
89+
label: 'App Description',
90+
},
8491
fileUpload: {
8592
label: 'File Upload',
8693
tooltip: 'When enabled, the Q&A page will display a file upload button.'
@@ -100,7 +107,7 @@ export default {
100107
aiChatNode: {
101108
label: 'AI Chat',
102109
text: 'Chat with an AI model',
103-
answer: 'AI Answer Content',
110+
answer: 'AI Content',
104111
returnContent: {
105112
label: 'Return Content',
106113
tooltip: `If turned off, the content of this node will not be output to the user.
@@ -194,7 +201,7 @@ export default {
194201
imageUnderstandNode: {
195202
label: 'Image Understanding',
196203
text: 'Analyze images to identify objects, scenes, and provide answers',
197-
answer: 'AI Answer Content',
204+
answer: 'AI Content',
198205
model: {
199206
label: 'Vision Model',
200207
requiredMessage: 'Please select a vision model'
@@ -207,7 +214,7 @@ export default {
207214
imageGenerateNode: {
208215
label: 'Image Generation',
209216
text: 'Generate images based on provided text content',
210-
answer: 'AI Answer Content',
217+
answer: 'AI Content',
211218
model: {
212219
label: 'Image Generation Model',
213220
requiredMessage: 'Please select an image generation model'

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default {
2727

2828
applicationForm: {
2929
title: {
30-
info: 'APP Information',
3130
appTest: 'Debug Preview',
3231
copy: 'copy'
3332
},
@@ -153,7 +152,6 @@ export default {
153152
lark: 'Lark',
154153
larkTip: 'Create Lark intelligent APP',
155154
setting: 'Setting',
156-
info: 'APP Information',
157155
callback: 'Callback Address',
158156
callbackTip: 'Please fill in the callback address',
159157
wecomPlatform: 'WeCom Open Platform',

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default {
1111
migration: 'Move',
1212
cancelGenerateQuestion: 'Cancel Generating Questions',
1313
cancelVectorization: 'Cancel Vectorization',
14-
cancelGenerate: 'Cancel Generation'
14+
cancelGenerate: 'Cancel Generation',
15+
export: 'Export to',
1516
},
1617
tip: {
1718
saveMessage: 'Current changes have not been saved. Confirm exit?',
@@ -171,7 +172,7 @@ export default {
171172
tip3: 'tags, and the system will automatically relate the questions within these tags;',
172173
tip4: 'The generation effect depends on the selected model and prompt. Users can adjust to achieve the best effect.',
173174
prompt1:
174-
'Content: {data}\n \n Please summarize the above content and generate a summary based on the content 5 a question. \nAnswer requirements: \n - Please output only questions; \n - Please place each question in',
175+
'Content: {data}\n \n Please summarize the above and generate 5 questions based on the summary. \nAnswer requirements: \n - Please output only questions; \n - Please place each question in',
175176
prompt2: 'tag.'
176177
}
177178
}

ui/src/locales/lang/en-US/views/function-lib.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ export default {
4141
label: 'Permissions',
4242
requiredMessage: 'Please select'
4343
},
44-
inputParam: {
45-
label: 'Input Parameters',
46-
placeholder: 'Please enter parameter values',
47-
requiredMessage: 'Please enter parameter values'
48-
},
4944
paramName: {
5045
label: 'Parameter Name',
5146
placeholder: 'Please enter the parameter name',
@@ -63,10 +58,11 @@ export default {
6358
label: 'Required'
6459
},
6560
param: {
66-
outputParam: 'Output Parameters',
6761
paramInfo1: 'Displayed when using the function',
6862
paramInfo2: 'Not displayed when using the function',
69-
code: 'Content (Python)'
63+
code: 'Content (Python)',
64+
selectPlaceholder: 'Please select parameter',
65+
inputPlaceholder: 'Please enter parameter values',
7066
},
7167
debug: {
7268
run: 'Run',

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
title: 'Segment',
3+
paragraph_count: 'Segments',
34
editParagraph: 'Edit Segment',
45
addParagraph: 'Add Segment',
56
paragraphDetail: 'Segment Details',
@@ -18,11 +19,11 @@ export default {
1819
},
1920
form: {
2021
paragraphTitle: {
21-
label: 'Segment Title',
22+
label: 'Title',
2223
placeholder: 'Please enter the segment title'
2324
},
2425
content: {
25-
label: 'Segment Content',
26+
label: 'Content',
2627
placeholder: 'Please enter the segment content',
2728
requiredMessage1: 'Please enter the segment content',
2829
requiredMessage2: 'Content must not exceed 100,000 words'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default {
3636
authEndpointPlaceholder: 'Please enter auth endpoint',
3737
tokenEndpoint: 'Token Endpoint',
3838
tokenEndpointPlaceholder: 'Please enter token endpoint',
39-
userInfoEndpoint: 'User Info Endpoint',
40-
userInfoEndpointPlaceholder: 'Please enter user info endpoint',
39+
userInfoEndpoint: 'User Information Endpoint',
40+
userInfoEndpointPlaceholder: 'Please enter user information endpoint',
4141
clientId: 'Client ID',
4242
clientIdPlaceholder: 'Please enter client ID',
4343
clientSecret: 'Client Secret',
@@ -55,8 +55,8 @@ export default {
5555
authEndpointPlaceholder: 'Please enter auth endpoint',
5656
tokenEndpoint: 'Token Endpoint',
5757
tokenEndpointPlaceholder: 'Please enter token endpoint',
58-
userInfoEndpoint: 'User Info Endpoint',
59-
userInfoEndpointPlaceholder: 'Please enter user info endpoint',
58+
userInfoEndpoint: 'User Information Endpoint',
59+
userInfoEndpointPlaceholder: 'Please enter user information endpoint',
6060
scope: 'Scope',
6161
scopePlaceholder: 'Please enter scope',
6262
clientId: 'Client ID',

ui/src/locales/lang/zh-CN/ai-chat.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ export default {
6464
},
6565
executionDetails: {
6666
title: '执行详情',
67-
paramInput: '参数输入',
68-
paramOutput: '参数输出',
6967
paramOutputTooltip: '每个文档仅支持预览500字',
7068
audioFile: '语音文件',
7169
searchContent: '检索内容',

0 commit comments

Comments
 (0)