Skip to content

Commit 4dc2036

Browse files
feat: i18n
1 parent 7779dbe commit 4dc2036

File tree

28 files changed

+91
-57
lines changed

28 files changed

+91
-57
lines changed

ui/src/components/app-table/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function submitHandle() {
103103
loading.value = false
104104
}, 200)
105105
} else {
106-
MsgError(`${props.quickCreateName}${t('dynamicsForm.tip.requiredMessage')}`)
106+
MsgError(`${props.quickCreateName} ${t('dynamicsForm.tip.requiredMessage')}`)
107107
}
108108
}
109109

ui/src/components/dynamics-form/FormItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ const errMsg = computed(() => {
105105
return props_info.value.err_msg
106106
? props_info.value.err_msg
107107
: isString(props.formfield.label)
108-
? props.formfield.label + t('dynamicsForm.tip.requiredMessage')
109-
: props.formfield.label.label + t('dynamicsForm.tip.requiredMessage')
108+
? props.formfield.label + ' ' + t('dynamicsForm.tip.requiredMessage')
109+
: props.formfield.label.label + ' ' + t('dynamicsForm.tip.requiredMessage')
110110
})
111111
/**
112112
* 反序列化

ui/src/components/dynamics-form/constructor/items/SliderConstructor.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@
4040
</el-col>
4141
</el-form-item>
4242
<el-col :span="11" style="padding-left: 0">
43-
<el-form-item :label="$t('dynamicsForm.Slider.step.label')" required prop="step" :rules="step_rules">
43+
<el-form-item
44+
:label="$t('dynamicsForm.Slider.step.label')"
45+
required
46+
prop="step"
47+
:rules="step_rules"
48+
>
4449
<el-input-number
4550
style="width: 100%"
4651
v-model="formValue.step"
@@ -101,7 +106,7 @@ const getData = () => {
101106
props_info: {
102107
rules: [
103108
{
104-
message: formValue.value.label + t('dynamicsForm.tip.requiredMessage'),
109+
message: formValue.value.label + ' ' + t('dynamicsForm.tip.requiredMessage'),
105110
trigger: 'blur',
106111
required: formValue.value.required
107112
}

ui/src/components/generate-related-dialog/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<AppIcon iconName="app-warning-colorful" style="font-size: 16px"></AppIcon>
2020
</div>
2121
<div class="ml-12 lighter">
22-
<p>{{ $t('views.document.setting.generateQuestion.tip1', { data: '{data}' }) }}</p>
23-
<p>{{ $t('views.document.setting.generateQuestion.tip2') }}</p>
24-
<p>{{ $t('views.document.setting.generateQuestion.tip3') }}</p>
22+
<p>{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}</p>
23+
<p>{{ $t('views.document.generateQuestion.tip2') }}</p>
24+
<p>{{ $t('views.document.generateQuestion.tip3') }}</p>
2525
</div>
2626
</div>
2727
<el-form-item
@@ -124,14 +124,14 @@ const submitHandle = async (formEl: FormInstance) => {
124124
if (apiType.value === 'paragraph') {
125125
const data = { ...form.value, paragraph_id_list: idList.value }
126126
paragraphApi.batchGenerateRelated(id, documentId, data, loading).then(() => {
127-
MsgSuccess(t('views.document.setting.generateQuestion.successMessage'))
127+
MsgSuccess(t('views.document.generateQuestion.successMessage'))
128128
emit('refresh')
129129
dialogVisible.value = false
130130
})
131131
} else if (apiType.value === 'document') {
132132
const data = { ...form.value, document_id_list: idList.value }
133133
documentApi.batchGenerateRelated(id, data, loading).then(() => {
134-
MsgSuccess(t('views.document.setting.generateQuestion.successMessage'))
134+
MsgSuccess(t('views.document.generateQuestion.successMessage'))
135135
emit('refresh')
136136
dialogVisible.value = false
137137
})

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<el-dialog
33
v-model="resetPasswordDialog"
4-
:title="$t('layout.avatar.resetPassword')"
4+
:title="$t('views.login.resetPassword')"
55
:close-on-click-modal="false"
66
:close-on-press-escape="false"
77
>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
title: 'Execution Details',
6868
paramInput: 'Parameter Input',
6969
paramOutput: 'Parameter Output',
70-
paramOutputTooltip: 'Each document supports preview of up to 500 characters',
70+
paramOutputTooltip: 'Each document supports preview of up to 500 words',
7171
audioFile: 'Audio File',
7272
searchContent: 'Search Content',
7373
searchResult: 'Search Results',
@@ -91,7 +91,7 @@ export default {
9191
consumeTime: 'Time Consumed'
9292
},
9393
paragraphSource: {
94-
title: 'Knowledge Base Reference',
94+
title: 'Knowledge Reference',
9595
question: 'User Question',
9696
optimizationQuestion: 'Optimized Question'
9797
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
createDate: 'Create date',
2828
createTime: 'Create time',
2929
operation: 'Operation',
30-
character: 'characters',
30+
character: 'words',
3131
export: 'Export',
3232
exportSuccess: 'Export successful',
3333
unavailable: '(Unavailable)',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Please output an optimized question.`,
164164
},
165165
higher: 'Higher',
166166
ScoreTooltip: 'The higher the Score, the stronger the relevance.',
167-
max_paragraph_char_number: 'Maximum number of characters to quote',
167+
max_paragraph_char_number: 'Maximum number of words to quote',
168168
reranker_model: {
169169
label: 'Rerank',
170170
placeholder: 'Please select a Rerank'

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,12 @@ export default {
127127
hybridSearchTooltip:
128128
'Hybrid search is a retrieval method based on both vector and text similarity, suitable for medium data volumes in the knowledge.',
129129
similarityThreshold: 'Similarity Threshold',
130+
similarityTooltip: 'The higher the similarity, the stronger the correlation。',
130131
topReferences: 'Top N References',
131-
maxCharacters: 'Maximum Characters per Reference',
132+
maxCharacters: 'Maximum words per Reference',
132133
noReferencesAction: 'When there are no knowledge references',
133-
continueQuestioning: 'Continue Questioning AI Model',
134-
provideAnswer: 'Provide a Specific Answer',
134+
continueQuestioning: 'Continue to ask questions to the Al model',
135+
provideAnswer: 'Provide a specific answer',
135136
designated_answer:
136137
'Hello, I am XXX Assistant. My knowledge only contains information related to XXX products. Please rephrase your question.',
137138
defaultPrompt1:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ export default {
33
createDataset: 'Create Knowledge',
44
general: 'General',
55
web: 'Web Site',
6-
relatedApplications: 'Related App',
6+
relatedApplications: 'Linked App',
7+
document_count: 'docs',
8+
relatedApp_count: 'linked apps',
79
searchBar: {
810
placeholder: 'Search by name'
911
},

0 commit comments

Comments
 (0)