Skip to content

Commit 82f2d7e

Browse files
fix: i18n
1 parent 8ea896b commit 82f2d7e

File tree

17 files changed

+47
-53
lines changed

17 files changed

+47
-53
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
</template>
5858
<script setup lang="ts">
5959
import { computed, onBeforeMount } from 'vue'
60+
import { t } from '@/locales'
6061
const type_list = [
6162
{
6263
label: t('components.dynamicsForm.DatePicker.year'),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<el-dialog
3-
:title="$t('views.document.setting.generateQuestion.title')"
3+
:title="$t('views.document.generateQuestion.title')"
44
v-model="dialogVisible"
55
width="650"
66
:close-on-click-modal="false"

ui/src/locales/lang/en_US/views/application-workflow.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ export default {
105105
tooltip: `If turned off, the content of this node will not be output to the user.
106106
If you want the user to see the output of this node, please turn on the switch.`
107107
},
108-
defaultPrompt: `Known Information:
109-
{{knowledgeBaseSearch.data}}
110-
Question:
111-
{{start.question}}`
108+
defaultPrompt: 'Known Information'
112109
},
113110
searchDatasetNode: {
114111
label: 'Knowledge Base Search',
@@ -176,9 +173,8 @@ Please output an optimized question.`,
176173
formNode: {
177174
label: 'Form Collection',
178175
text: 'Used to collect user information during Q&A process, subsequent processes can be executed based on collected form data',
179-
form_content_format: `Hello, please fill out the form below:
180-
{{form}}
181-
Click the [Submit] button after filling it out.`,
176+
form_content_format1: 'Hello, please fill out the form below:',
177+
form_content_format2: 'Click the [Submit] button after filling it out.',
182178
form_data: 'All Form Content',
183179
formContent: {
184180
label: 'Form Output Content',

ui/src/locales/lang/zh_CN/views/application-workflow.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ export default {
106106
tooltip: `关闭后该节点的内容则不输出给用户。
107107
如果你想让用户看到该节点的输出内容,请打开开关。`
108108
},
109-
defaultPrompt: `已知信息:
110-
{{知识库检索.data}}
111-
问题:
112-
{{开始.question}}`
109+
defaultPrompt: '已知信息'
113110
},
114111
searchDatasetNode: {
115112
label: '知识库检索',
@@ -177,9 +174,8 @@ export default {
177174
formNode: {
178175
label: '表单收集',
179176
text: '在问答过程中用于收集用户信息,可以根据收集到表单数据执行后续流程',
180-
form_content_format: `你好,请先填写下面表单内容:
181-
{{form}}
182-
填写后请点击【提交】按钮进行提交。`,
177+
form_content_format1: '你好,请先填写下面表单内容:',
178+
form_content_format2: '填写后请点击【提交】按钮进行提交。',
183179
form_data: '表单全部内容',
184180
formContent: {
185181
label: '表单输出内容',

ui/src/locales/lang/zh_CN/views/template.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export default {
5353
permissionType: {
5454
label: '权限',
5555
privateDesc: '仅当前用户使用',
56-
publicDesc: '所有用户都可使用,不能编辑'
56+
publicDesc: '所有用户都可使用,不能编辑',
57+
requiredMessage: '权限不能为空'
5758
},
5859
model_type: {
5960
label: '模型类型',

ui/src/locales/lang/zh_TW/views/application-workflow.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ export default {
106106
tooltip: `關閉後該節點的內容則不輸出給用戶。
107107
如果你想讓用戶看到該節點的輸出內容,請打開開關。`
108108
},
109-
defaultPrompt: `已知信息:
110-
{{知識庫檢索.data}}
111-
問題:
112-
{{開始.question}}`
109+
defaultPrompt: '已知信息'
113110
},
114111
searchDatasetNode: {
115112
label: '知識庫檢索',
@@ -177,9 +174,8 @@ export default {
177174
formNode: {
178175
label: '表單收集',
179176
text: '在問答過程中用於收集用戶信息,可以根據收集到表單數據執行後續流程',
180-
form_content_format: `你好,請先填寫下面表單內容:
181-
{{form}}
182-
填寫後請點擊【提交】按鈕進行提交。`,
177+
form_content_format1: '你好,請先填寫下面表單內容:',
178+
form_content_format2: '填寫後請點擊【提交】按鈕進行提交。',
183179
form_data: '表單全部內容',
184180
formContent: {
185181
label: '表單輸出內容',

ui/src/views/document/component/Status.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const startedMap = {
7272
}
7373
const taskTypeMap = {
7474
[TaskType.EMBEDDING]: t('views.dataset.setting.vectorization'),
75-
[TaskType.GENERATE_PROBLEM]: t('views.document.setting.generateQuestion.title'),
75+
[TaskType.GENERATE_PROBLEM]: t('views.document.generateQuestion.title'),
7676
[TaskType.SYNC]: t('views.dataset.setting.sync')
7777
}
7878
const stateMap: any = {

ui/src/views/document/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{ $t('views.dataset.setting.vectorization') }}
2727
</el-button>
2828
<el-button @click="openGenerateDialog()" :disabled="multipleSelection.length === 0">
29-
{{ $t('views.document.setting.generateQuestion.title') }}
29+
{{ $t('views.document.generateQuestion.title') }}
3030
</el-button>
3131
<el-button @click="openBatchEditDocument" :disabled="multipleSelection.length === 0">
3232
{{ $t('common.setting') }}
@@ -314,7 +314,7 @@
314314
</el-dropdown-item>
315315
<el-dropdown-item v-else @click="openGenerateDialog(row)">
316316
<el-icon><Connection /></el-icon>
317-
{{ $t('views.document.setting.generateQuestion.title') }}
317+
{{ $t('views.document.generateQuestion.title') }}
318318
</el-dropdown-item>
319319
<el-dropdown-item @click="openDatasetDialog(row)">
320320
<AppIcon iconName="app-migrate"></AppIcon>
@@ -403,7 +403,7 @@
403403
</el-dropdown-item>
404404
<el-dropdown-item v-else @click="openGenerateDialog(row)">
405405
<el-icon><Connection /></el-icon>
406-
{{ $t('views.document.setting.generateQuestion.title') }}
406+
{{ $t('views.document.generateQuestion.title') }}
407407
</el-dropdown-item>
408408
<el-dropdown-item @click="openDatasetDialog(row)">
409409
<AppIcon iconName="app-migrate"></AppIcon>

ui/src/views/hit-test/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
<el-col :span="12">
166166
<div class="mb-16">
167167
<div class="title mb-8">
168-
{{ $t('views.application.applicationForm.dialogues.topReferences') }}
168+
{{ $t('views.application.applicationForm.dialog.topReferences') }}
169169
</div>
170170
<el-input-number
171171
v-model="cloneForm.top_number"

ui/src/views/paragraph/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<el-dropdown-item @click="openGenerateDialog(item)">
135135
<el-icon><Connection /></el-icon>
136136
{{
137-
$t('views.document.setting.generateQuestion.title')
137+
$t('views.document.generateQuestion.title')
138138
}}</el-dropdown-item
139139
>
140140
<el-dropdown-item @click="openSelectDocumentDialog(item)">
@@ -159,7 +159,7 @@
159159

160160
<div class="mul-operation border-t w-full" v-if="isBatch === true">
161161
<el-button :disabled="multipleSelection.length === 0" @click="openGenerateDialog()">
162-
{{ $t('views.document.setting.generateQuestion.title') }}
162+
{{ $t('views.document.generateQuestion.title') }}
163163
</el-button>
164164
<el-button :disabled="multipleSelection.length === 0" @click="openSelectDocumentDialog()">
165165
{{ $t('views.document.setting.migration') }}

0 commit comments

Comments
 (0)