Skip to content

Commit 45fe93d

Browse files
fix: i18n
1 parent 37ebe3e commit 45fe93d

File tree

11 files changed

+25
-20
lines changed

11 files changed

+25
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
quickCreatePlaceholder: 'Quickly create blank document',
3-
quickCreateName: 'document name',
3+
quickCreateName: 'File Name',
44
noData: 'No Data',
55
loading: 'Loading',
66
noMore: 'No more!',

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export default {
4949
variable: {
5050
global: 'Global Variable',
5151
Referencing: 'Reference Variable',
52-
ReferencingRequired: 'Reference Variable Required',
53-
ReferencingError: 'Reference Variable Error',
52+
ReferencingRequired: 'reference variable required',
53+
ReferencingError: 'reference variable error',
5454
NoReferencing: 'Non-existent Reference Variable',
5555
fieldMessage: 'Please select a variable'
5656
},
@@ -167,7 +167,7 @@ export default {
167167
max_paragraph_char_number: 'Maximum number of words to quote',
168168
reranker_model: {
169169
label: 'Rerank',
170-
placeholder: 'Please select a Rerank'
170+
placeholder: 'Please select a rerank'
171171
}
172172
},
173173
formNode: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
uploadMessage: 'Drag and drop files here to upload or',
2929
formats: 'Supported formats:',
3030
requiredMessage: 'Please upload a file',
31-
errorMessage1: 'Please upload a file',
31+
errorMessage1: 'The file size exceeds 100mb',
3232
errorMessage2: 'Unsupported file format',
3333
errorMessage3: 'File cannot be empty',
3434
errorMessage4: 'Up to 50 files can be uploaded at once',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
createProblem: 'Create Question',
44
detailProblem: 'Question Details',
55
quickCreateProblem: 'Quick Create Question',
6-
quickCreateName: 'question',
6+
quickCreateName: 'Question',
77
tip: {
88
placeholder: 'Enter the question, support multiple entries, one per line.',
99
errorMessage: 'Question cannot be empty!',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
uploadMessage: '拖拽文件至此上传或',
2929
formats: '支持格式:',
3030
requiredMessage: '请上传文件',
31-
errorMessage1: '请上传文件',
31+
errorMessage1: '文件大小超过 100MB',
3232
errorMessage2: '文件格式不支持',
3333
errorMessage3: '文件不能为空',
3434
errorMessage4: '每次最多上传50个文件',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929
uploadMessage: '拖拽文件至此上傳或',
3030
formats: '支持格式:',
3131
requiredMessage: '請上傳文件',
32-
errorMessage1: '請上傳文件',
32+
errorMessage1: '文件大小超過 100MB',
3333
errorMessage2: '文件格式不支持',
3434
errorMessage3: '文件不能为空',
3535
errorMessage4: '每次最多上傳50個文件',

ui/src/views/application-workflow/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ async function publicHandle() {
268268
const node = res.node
269269
const err_message = res.errMessage
270270
if (typeof err_message == 'string') {
271-
MsgError(res.node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message)
271+
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message)
272272
} else {
273273
const keys = Object.keys(err_message)
274-
MsgError(node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message[keys[0]]?.[0]?.message)
274+
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message[keys[0]]?.[0]?.message)
275275
}
276276
})
277277
}
@@ -300,10 +300,10 @@ const clickShowDebug = () => {
300300
const node = res.node
301301
const err_message = res.errMessage
302302
if (typeof err_message == 'string') {
303-
MsgError(res.node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message)
303+
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message)
304304
} else {
305305
const keys = Object.keys(err_message)
306-
MsgError(node.properties?.stepName + `${t('views.applicationWorkflow.node')} ` + err_message[keys[0]]?.[0]?.message)
306+
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message[keys[0]]?.[0]?.message)
307307
}
308308
})
309309
}

ui/src/views/authentication/component/LDAP.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/>
2929
</el-form-item>
3030
<el-form-item
31-
:label="$t('views.system.authentication.ldap.password')"
31+
:label="$t('views.system.authentication.password')"
3232
prop="config_data.password"
3333
>
3434
<el-input

ui/src/views/log/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<template #header>
6767
<div>
6868
<span>{{ $t('views.log.table.feedback.label') }}</span>
69-
<el-popover :width="190" trigger="click" :visible="popoverVisible">
69+
<el-popover :width="200" trigger="click" :visible="popoverVisible">
7070
<template #reference>
7171
<el-button
7272
style="margin-top: -2px"
@@ -89,7 +89,7 @@
8989
:step="1"
9090
:value-on-clear="0"
9191
controls-position="right"
92-
style="width: 100px"
92+
style="width: 80px"
9393
size="small"
9494
step-strictly
9595
/>
@@ -104,7 +104,7 @@
104104
:step="1"
105105
:value-on-clear="0"
106106
controls-position="right"
107-
style="width: 100px"
107+
style="width: 80px"
108108
size="small"
109109
step-strictly
110110
/>

ui/src/views/login/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ function redirectAuth(authType: string) {
156156
if (!res.data) {
157157
return
158158
}
159-
MsgConfirm(t('login.jump_tip'), '', {
160-
confirmButtonText: t('login.jump'),
159+
MsgConfirm(t('views.login.jump_tip'), '', {
160+
confirmButtonText: t('views.login.jump'),
161161
cancelButtonText: t('common.cancel'),
162162
confirmButtonClass: ''
163163
})

0 commit comments

Comments
 (0)