fix: optimize i18n

This commit is contained in:
wangdan-fit2cloud 2025-02-05 15:35:25 +08:00
parent a8d8c188eb
commit 194cce2914
5 changed files with 18 additions and 8 deletions

View File

@ -20,7 +20,10 @@
</div>
<div class="ml-12 lighter">
<p>{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}</p>
<p>{{ $t('views.document.generateQuestion.tip2')+ '<question></question>' + $t('views.document.generateQuestion.tip3') }}</p>
<p>
{{ $t('views.document.generateQuestion.tip2')+ '<question></question>' +
$t('views.document.generateQuestion.tip3') }}
</p>
<p>{{ $t('views.document.generateQuestion.tip4') }}</p>
</div>
</div>
@ -105,6 +108,13 @@ const rules = reactive({
]
})
watch(dialogVisible, (bool) => {
if (!bool) {
form.value = prompt.get(userId)
FormRef.value?.clearValidate()
}
})
const open = (ids: string[], type: string) => {
getModel()
idList.value = ids

View File

@ -44,7 +44,7 @@ export default {
EmbeddingModel: {
label: 'Embedding Model',
placeholder: 'Please select a embedding model',
requiredMessage: 'Please enter the embedding model'
requiredMessage: 'Please select the embedding model'
},
datasetType: {
label: 'Knowledge Type',

View File

@ -84,7 +84,7 @@ export default {
},
checkedConnect: {
label:
'Add segment titles as associated questions during import (Applicable for QA pairs where titles are questions)'
'Add "Related Questions" section for question-based QA pairs during import.'
}
},
buttons: {
@ -126,7 +126,7 @@ export default {
},
delete: {
confirmTitle1: 'Confirm batch deletion of',
confirmTitle2: 'Documents?',
confirmTitle2: 'documents?',
confirmMessage:
'Segments within the selected documents will also be deleted. Please proceed with caution.',
successMessage: 'Batch deletion successful',
@ -145,7 +145,7 @@ export default {
placeholder: 'Default is body, you can input .classname/#idname/tagname'
},
hit_handling_method: {
label: 'Hit Handling Method',
label: 'Retrieve-Respond',
tooltip: 'When user asks a question, handle matched segments according to the set method.'
},
similarity: {

View File

@ -3,7 +3,7 @@ export default {
createProblem: 'Create Question',
detailProblem: 'Question Details',
quickCreateProblem: 'Quick Create Question',
quickCreateName: 'Question',
quickCreateName: 'question',
tip: {
placeholder: 'Enter the question, support multiple entries, one per line.',
errorMessage: 'Question cannot be empty!',
@ -19,7 +19,7 @@ export default {
placeholder: 'Search by name'
},
table: {
paragraph_count: 'Number of Associated Paragraphs',
paragraph_count: 'Associated Paragraphs',
updateTime: 'Update Time'
},
delete: {

View File

@ -205,7 +205,7 @@
</div>
</template>
</el-table-column>
<el-table-column width="130">
<el-table-column width="170">
<template #header>
<div>
<span>{{ $t('views.document.form.hit_handling_method.label') }}</span>