mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: i18n
This commit is contained in:
parent
d8995e996d
commit
765c24dd3f
|
|
@ -1,5 +1,5 @@
|
|||
export enum SearchMode {
|
||||
embedding = '向量检索',
|
||||
keywords = '全文检索',
|
||||
blend = '混合检索'
|
||||
embedding = 'views.application.applicationForm.dialog.vectorSearch',
|
||||
keywords = 'views.application.applicationForm.dialog.fullTextSearch',
|
||||
blend = 'views.application.applicationForm.dialog.hybridSearch'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,4 @@
|
|||
export enum hitHandlingMethod {
|
||||
optimization = '模型优化',
|
||||
directly_return = '直接回答'
|
||||
}
|
||||
|
||||
export enum hitStatus {
|
||||
waiting = '等待中',
|
||||
processing = '处理中',
|
||||
completed = '已完成',
|
||||
failed = '失败'
|
||||
}
|
||||
|
||||
export enum isActivated {
|
||||
true = '启用',
|
||||
false = '禁用'
|
||||
optimization = 'views.document.hitHandlingMethod.optimization',
|
||||
directly_return = 'views.document.hitHandlingMethod.directly_return'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -154,5 +154,9 @@ export default {
|
|||
error: '向量化未成功的分段',
|
||||
all: '全部分段'
|
||||
}
|
||||
},
|
||||
hitHandlingMethod: {
|
||||
optimization: '模型优化',
|
||||
directly_return: '直接回答'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
</template>
|
||||
<el-radio-group v-model="form.hit_handling_method" class="radio-block mt-4">
|
||||
<template v-for="(value, key) of hitHandlingMethod" :key="key">
|
||||
<el-radio :value="key">{{ value }} </el-radio>
|
||||
<el-radio :value="key">{{ $t(value) }} </el-radio>
|
||||
</template>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
|
|
|||
|
|
@ -86,11 +86,7 @@
|
|||
:label="$t('views.document.table.paragraph')"
|
||||
align="right"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="status"
|
||||
:label="$t('views.document.fileStatus.label')"
|
||||
width="130"
|
||||
>
|
||||
<el-table-column prop="status" :label="$t('views.document.fileStatus.label')" width="130">
|
||||
<template #header>
|
||||
<div>
|
||||
<span>{{ $t('views.document.fileStatus.label') }}</span>
|
||||
|
|
@ -241,7 +237,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<template #default="{ row }">
|
||||
{{ hitHandlingMethod[row.hit_handling_method as keyof typeof hitHandlingMethod] }}
|
||||
{{ $t(hitHandlingMethod[row.hit_handling_method as keyof typeof hitHandlingMethod]) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="create_time" :label="$t('common.createTime')" width="175">
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
}}</el-col>
|
||||
<el-col :span="12" class="lighter">
|
||||
{{
|
||||
SearchMode[form_data.dataset_setting.search_mode as keyof typeof SearchMode]
|
||||
$t(SearchMode[form_data.dataset_setting.search_mode as keyof typeof SearchMode])
|
||||
}}</el-col
|
||||
>
|
||||
<el-col :span="12" class="color-secondary lighter">
|
||||
|
|
|
|||
Loading…
Reference in New Issue