Skip to content

Commit 194cce2

Browse files
fix: optimize i18n
1 parent a8d8c18 commit 194cce2

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
</div>
2121
<div class="ml-12 lighter">
2222
<p>{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}</p>
23-
<p>{{ $t('views.document.generateQuestion.tip2')+ '<question></question>' + $t('views.document.generateQuestion.tip3') }}</p>
23+
<p>
24+
{{ $t('views.document.generateQuestion.tip2')+ '<question></question>' +
25+
$t('views.document.generateQuestion.tip3') }}
26+
</p>
2427
<p>{{ $t('views.document.generateQuestion.tip4') }}</p>
2528
</div>
2629
</div>
@@ -105,6 +108,13 @@ const rules = reactive({
105108
]
106109
})
107110
111+
watch(dialogVisible, (bool) => {
112+
if (!bool) {
113+
form.value = prompt.get(userId)
114+
FormRef.value?.clearValidate()
115+
}
116+
})
117+
108118
const open = (ids: string[], type: string) => {
109119
getModel()
110120
idList.value = ids

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
EmbeddingModel: {
4545
label: 'Embedding Model',
4646
placeholder: 'Please select a embedding model',
47-
requiredMessage: 'Please enter the embedding model'
47+
requiredMessage: 'Please select the embedding model'
4848
},
4949
datasetType: {
5050
label: 'Knowledge Type',

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default {
8484
},
8585
checkedConnect: {
8686
label:
87-
'Add segment titles as associated questions during import (Applicable for QA pairs where titles are questions)'
87+
'Add "Related Questions" section for question-based QA pairs during import.'
8888
}
8989
},
9090
buttons: {
@@ -126,7 +126,7 @@ export default {
126126
},
127127
delete: {
128128
confirmTitle1: 'Confirm batch deletion of',
129-
confirmTitle2: 'Documents?',
129+
confirmTitle2: 'documents?',
130130
confirmMessage:
131131
'Segments within the selected documents will also be deleted. Please proceed with caution.',
132132
successMessage: 'Batch deletion successful',
@@ -145,7 +145,7 @@ export default {
145145
placeholder: 'Default is body, you can input .classname/#idname/tagname'
146146
},
147147
hit_handling_method: {
148-
label: 'Hit Handling Method',
148+
label: 'Retrieve-Respond',
149149
tooltip: 'When user asks a question, handle matched segments according to the set method.'
150150
},
151151
similarity: {

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

Lines changed: 2 additions & 2 deletions
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!',
@@ -19,7 +19,7 @@ export default {
1919
placeholder: 'Search by name'
2020
},
2121
table: {
22-
paragraph_count: 'Number of Associated Paragraphs',
22+
paragraph_count: 'Associated Paragraphs',
2323
updateTime: 'Update Time'
2424
},
2525
delete: {

ui/src/views/document/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
</div>
206206
</template>
207207
</el-table-column>
208-
<el-table-column width="130">
208+
<el-table-column width="170">
209209
<template #header>
210210
<div>
211211
<span>{{ $t('views.document.form.hit_handling_method.label') }}</span>

0 commit comments

Comments
 (0)