Skip to content

Commit 84475b3

Browse files
fix: i18n bugs
1 parent cd3d645 commit 84475b3

File tree

26 files changed

+86
-83
lines changed

26 files changed

+86
-83
lines changed

ui/src/components/infinite-scroll/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
</div>
55
<div style="padding: 16px 10px">
66
<el-divider v-if="size > 0 && loading">
7-
<el-text type="info"> 加载中...</el-text>
7+
<el-text type="info"> {{ $t('components.loading') }}...</el-text>
88
</el-divider>
99
<el-divider v-if="noMore">
10-
<el-text type="info"> 到底啦!</el-text>
10+
<el-text type="info"> {{ $t('components.noMore') }}</el-text>
1111
</el-divider>
1212
</div>
1313
</template>

ui/src/layout/components/top-bar/avatar/APIKeyDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<el-table-column :label="$t('common.setting')" align="left" width="80">
5050
<template #default="{ row }">
5151
<span class="mr-4">
52-
<el-tooltip effect="dark" :content="$t('common.settings')" placement="top">
52+
<el-tooltip effect="dark" :content="$t('common.setting')" placement="top">
5353
<el-button type="primary" text @click.stop="settingApiKey(row)">
5454
<el-icon><Setting /></el-icon>
5555
</el-button>

ui/src/layout/components/top-bar/avatar/ResetPassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
type="password"
2828
class="input-item"
2929
v-model="resetPasswordForm.re_password"
30-
:placeholder="$t('views.user.userForm.form.re_password.label')"
30+
:placeholder="$t('views.user.userForm.form.re_password.placeholder')"
3131
show-password
3232
>
3333
</el-input>
@@ -138,7 +138,7 @@ const rules1 = ref<FormRules<ResetCurrentUserPasswordRequest>>({
138138
{
139139
validator: (rule, value, callback) => {
140140
if (resetPasswordForm.value.password != resetPasswordForm.value.re_password) {
141-
callback(new Error(t('views.user.userForm.form.password.validatorMessage')))
141+
callback(new Error(t('views.user.userForm.form.re_password.validatorMessage')))
142142
} else {
143143
callback()
144144
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
export default {
22
create: 'Create',
3-
createSuccess: 'Create Success',
3+
createSuccess: 'Create successful',
44
copy: 'Copy',
5-
copySuccess: 'Copy Success',
5+
copySuccess: 'Copy successful',
66
copyError: 'Copy Failed',
77
save: 'Save',
8-
saveSuccess: 'Save Success',
8+
saveSuccess: 'Save successful',
99
delete: 'Delete',
1010
deleteSuccess: 'Successfully deleted',
11-
setting: 'Setting',
12-
settingSuccess: 'Setting Successful',
11+
setting: 'Settings',
12+
settingSuccess: 'Setting successful',
1313
submit: 'Submit',
1414
submitSuccess: 'Submitted successfully',
1515
edit: 'Edit',
16-
editSuccess: 'Edit Successful',
16+
editSuccess: 'Edit successful',
1717
modify: 'Modify',
18-
modifySuccess: 'Modify Successful',
18+
modifySuccess: 'Modify successful',
1919
cancel: 'Cancel',
2020
confirm: 'Confirm',
2121
tip: 'Prompt',
@@ -47,8 +47,8 @@ export default {
4747
},
4848
status: {
4949
label: 'Status',
50-
enableSuccess: 'Enable Successful',
51-
disableSuccess: 'Disable Successful'
50+
enableSuccess: 'Enable successful',
51+
disableSuccess: 'Disable successful'
5252
},
5353
inputPlaceholder: 'Please input',
5454
title: 'Title',
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export default {
2-
quickCreatePlaceholder: 'Quickly create blank documents',
3-
quickCreateName: 'Document name',
4-
noData: 'No Data'
2+
quickCreatePlaceholder: 'Quickly create blank document',
3+
quickCreateName: 'document name',
4+
noData: 'No Data',
5+
loading: 'Loading',
6+
noMore: 'No more!',
57
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
wiki: 'User Manual',
44
forum: 'Forum For Help',
55
logout: 'Logout',
6-
version: 'Version',
6+
77
apiKey: 'API Key',
88
apiServiceAddress: 'API Service Address',
99
language: 'Language',
@@ -12,6 +12,7 @@ export default {
1212
title: 'About',
1313
expiredTime: 'Expiration Date',
1414
edition: 'Edition',
15+
version: 'Version',
1516
serialNo: 'Serial No.',
1617
remark: 'Remarks',
1718
update: 'Update',

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export default {
1010
demo: 'Demo',
1111
embedInWebsite: 'Embed in website',
1212
accessControl: 'Access Control',
13-
displaySetting: 'Display Setting',
13+
displaySetting: 'Display Settings',
1414
apiAccessCredentials: 'API Access Credentials',
1515
apiKey: 'API Key',
1616
refreshToken: {
1717
msgConfirm1: 'Do you want to regenerate the public access link?',
1818
msgConfirm2:
1919
'Regenerating the public access link will affect third-party embedded scripts changes and will require re-embedding the new script into third-party sites. Please proceed with caution!',
20-
refreshSuccess: 'Refresh Successful'
20+
refreshSuccess: 'Refresh successful'
2121
},
2222
APIKeyDialog: {
2323
saveSettings: 'Save Settings',
@@ -54,7 +54,6 @@ export default {
5454
'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
5555
},
5656
SettingAPIKeyDialog: {
57-
dialogTitle: 'Settings',
5857
allowCrossDomainLabel: 'Allow Cross-Domain Address',
5958
crossDomainPlaceholder:
6059
'Please enter allowed cross-domain addresses, if open without inputting addresses, there are no restrictions.\nCross-domain addresses one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
node: 'Node',
33
baseComponent: 'Base Component',
4-
nodeSetting: 'Node Setting',
4+
nodeSetting: 'Node Settings',
55
workflow: 'Workflow',
66
searchBar: {
77
placeholder: 'Search by name'
@@ -21,7 +21,7 @@ export default {
2121
copyParam: 'Copy Parameter'
2222
},
2323
tip: {
24-
publicSuccess: 'Published Successfully',
24+
publicSuccess: 'Published successfully',
2525
noData: 'No related results found',
2626
nameMessage: 'Name cannot be empty!',
2727
onlyRight: 'Only allow connections from the right anchor point',

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@ export default {
6363
}
6464
},
6565
ResultSuccess: {
66-
title: 'Knowledge Base Created Successfully',
66+
title: 'Knowledge Created Successfully',
6767
paragraph: 'Paragraphs',
6868
paragraph_count: 'Paragraphs',
6969
documentList: 'Document List',
7070
loading: 'Importing',
7171
buttons: {
72-
toDataset: 'Return to Knowledge Base List',
72+
toDataset: 'Return to Knowledge List',
7373
toDocument: 'Go to Document'
7474
}
7575
},
7676
syncWeb: {
77-
title: 'Sync Knowledge Base',
77+
title: 'Sync Knowledge',
7878
syncMethod: 'Sync Method',
7979
replace: 'Replace Sync',
80-
replaceText: 'Re-fetch Web site documents, replacing the documents in the local knowledge base',
80+
replaceText: 'Re-fetch Web site documents, replacing the documents in the local knowledge',
8181
complete: 'Full Sync',
8282
completeText:
83-
'Delete all documents in the local knowledge base and re-fetch web site documents',
83+
'Delete all documents in the local knowledge and re-fetch web site documents',
8484
tip: 'Note: All syncs will delete existing data and re-fetch new data. Please proceed with caution.'
8585
}
8686
}

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ export default {
4040
txt: {
4141
label: 'Text File',
4242
tip1: '1. It is recommended to standardize the paragraph markers in the file before uploading.',
43-
tip2: '2. Up to 50 files can be uploaded at once, with each file not exceeding 100MB'
43+
tip2: '2. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
4444
},
4545
table: {
4646
label: 'Table',
4747
tip1: '1. Click to download the corresponding template and complete the information:',
4848
tip2: '2. The first row must be column headers, and the column headers must be meaningful terms. Each record in the table will be treated as a segment.',
4949
tip3: '3. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.',
50-
tip4: '4. Up to 50 files can be uploaded at once, with each file not exceeding 100MB'
50+
tip4: '4. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
5151
},
5252
QA: {
5353
label: 'QA Pairs',
54-
tip1: '1. Click to download the corresponding template and complete the information.',
54+
tip1: '1. Click to download the corresponding template and complete the information:',
5555
tip2: '2. Each sheet in the uploaded spreadsheet file will be treated as a document, with the sheet name as the document name.',
56-
tip3: '3. Up to 50 files can be uploaded at once, with each file not exceeding 100MB'
56+
tip3: '3. Up to 50 files can be uploaded at once, with each file not exceeding 100MB.'
5757
}
5858
},
5959
setRules: {
@@ -108,7 +108,8 @@ export default {
108108
PENDING: 'Queued',
109109
GENERATE: 'Generating',
110110
SYNC: 'Syncing',
111-
REVOKE: 'Cancelling'
111+
REVOKE: 'Cancelling',
112+
finish: 'Finish'
112113
},
113114
enableStatus: {
114115
label: 'Status',

0 commit comments

Comments
 (0)