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>
<div class="ml-12 lighter"> <div class="ml-12 lighter">
<p>{{ $t('views.document.generateQuestion.tip1', { data: '{data}' }) }}</p> <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> <p>{{ $t('views.document.generateQuestion.tip4') }}</p>
</div> </div>
</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) => { const open = (ids: string[], type: string) => {
getModel() getModel()
idList.value = ids idList.value = ids

View File

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

View File

@ -84,7 +84,7 @@ export default {
}, },
checkedConnect: { checkedConnect: {
label: 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: { buttons: {
@ -126,7 +126,7 @@ export default {
}, },
delete: { delete: {
confirmTitle1: 'Confirm batch deletion of', confirmTitle1: 'Confirm batch deletion of',
confirmTitle2: 'Documents?', confirmTitle2: 'documents?',
confirmMessage: confirmMessage:
'Segments within the selected documents will also be deleted. Please proceed with caution.', 'Segments within the selected documents will also be deleted. Please proceed with caution.',
successMessage: 'Batch deletion successful', successMessage: 'Batch deletion successful',
@ -145,7 +145,7 @@ export default {
placeholder: 'Default is body, you can input .classname/#idname/tagname' placeholder: 'Default is body, you can input .classname/#idname/tagname'
}, },
hit_handling_method: { hit_handling_method: {
label: 'Hit Handling Method', label: 'Retrieve-Respond',
tooltip: 'When user asks a question, handle matched segments according to the set method.' tooltip: 'When user asks a question, handle matched segments according to the set method.'
}, },
similarity: { similarity: {

View File

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

View File

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