-
+
@@ -252,12 +263,12 @@ function removeNodeById(list: TreeNode[], targetId: string): boolean {
class="mk-hide-asterisk"
:required="formValue.required"
prop="default_value"
- :rules="formValue.required ? [{ required: true, message: '请输入默认值' }] : []"
+ :rules="formValue.required ? [{ required: true, message: t('common.form.inputField', { fieldName: t('dynamicForm.fields.defaultValue') }) }] : []"
>
- 默认值
-
+ {{ t('dynamicForm.fields.defaultValue') }}
+
-
+
-
-
+
+
-
-
+
+
- 取消
- 添加
+ {{ t('common.actions.cancel') }}
+ {{ t('common.actions.add') }}
@@ -294,22 +309,22 @@ function removeNodeById(list: TreeNode[], targetId: string): boolean {
:close-on-click-modal="true"
:close-on-press-escape="true"
v-model="editDialog.visible"
- title="编辑"
+ :title="t('common.actions.edit')"
@closed="handleEditClosed"
>
-
-
+
+
-
-
+
+
- 取消
- 保存
+ {{ t('common.actions.cancel') }}
+ {{ t('common.actions.save') }}
diff --git a/ui/src/components/mk-dynamics-form/constructor/items/UploadInputConstructor.vue b/ui/src/components/mk-dynamics-form/constructor/items/UploadInputConstructor.vue
index 4ad1d0199d5..462e682a0d6 100644
--- a/ui/src/components/mk-dynamics-form/constructor/items/UploadInputConstructor.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/items/UploadInputConstructor.vue
@@ -1,7 +1,10 @@
-
+
-
+
-
+
diff --git a/ui/src/components/mk-dynamics-form/constructor/visibility/ConditionRow.vue b/ui/src/components/mk-dynamics-form/constructor/visibility/ConditionRow.vue
index 12599de14da..96c794979d9 100644
--- a/ui/src/components/mk-dynamics-form/constructor/visibility/ConditionRow.vue
+++ b/ui/src/components/mk-dynamics-form/constructor/visibility/ConditionRow.vue
@@ -1,9 +1,12 @@
+
-
+
diff --git a/ui/src/components/mk-dynamics-form/items/TextInput.vue b/ui/src/components/mk-dynamics-form/items/TextInput.vue
index 701deefef5b..900eac2fb4d 100644
--- a/ui/src/components/mk-dynamics-form/items/TextInput.vue
+++ b/ui/src/components/mk-dynamics-form/items/TextInput.vue
@@ -1,5 +1,9 @@
-
+
-
+
diff --git a/ui/src/components/mk-dynamics-form/items/TextareaInput.vue b/ui/src/components/mk-dynamics-form/items/TextareaInput.vue
index aa1a8b76c0b..20fa4c4ffbc 100644
--- a/ui/src/components/mk-dynamics-form/items/TextareaInput.vue
+++ b/ui/src/components/mk-dynamics-form/items/TextareaInput.vue
@@ -1,5 +1,9 @@
-
+
-
+
diff --git a/ui/src/components/mk-dynamics-form/items/complex/ArrayObjectCard.vue b/ui/src/components/mk-dynamics-form/items/complex/ArrayObjectCard.vue
index 963be2661df..2c369249fd1 100644
--- a/ui/src/components/mk-dynamics-form/items/complex/ArrayObjectCard.vue
+++ b/ui/src/components/mk-dynamics-form/items/complex/ArrayObjectCard.vue
@@ -1,8 +1,11 @@
-
+
- 取消
+ {{ t('common.actions.cancel') }}
- {{ editing ? '保存' : '添加' }}
+ {{ editing ? t('common.actions.save') : t('common.actions.add') }}
diff --git a/ui/src/views/model/components/ModelProvider.vue b/ui/src/views/model/components/ModelProvider.vue
index 8f2481b281f..f4db538cd2b 100644
--- a/ui/src/views/model/components/ModelProvider.vue
+++ b/ui/src/views/model/components/ModelProvider.vue
@@ -1,12 +1,15 @@
-
+
-
添加模型
+ {{ t('model.actions.addModel') }}
-
-
+
+
@@ -277,8 +280,8 @@ defineExpose({ open })
-
-
+
+
@@ -308,13 +311,13 @@ defineExpose({ open })
- 模型名称
+ {{ t('model.form.name.label') }}
-
+
@@ -322,49 +325,57 @@ defineExpose({ open })
-
+
- 模型类型
+ {{ t('model.form.type.label') }}
- 大语言模型:在智能体中与AI对话的推理模型。
- 向量模型:在知识库中对文档内容进行向量化的模型。
- 语音识别:在智能体中开启语音识别后用于语音转文字的模型。
- 语音合成:在智能体中开启语音播放后用于文字转语音的模型。
- 重排模型:在高级智能体中使用多路召回时,对候选分段进行重新排序的模型。
- 视觉模型:在高级智能体中用于图片理解的视觉模型。
- 图片生成:在高级智能体中用于图片生成的视觉模型。
- 文生视频:在高级智能体中用于文生视频的模型。
- 图生视频:在高级智能体中用于图生视频的模型。
+ {{ t('model.types.llm.description') }}
+ {{ t('model.types.embedding.description') }}
+ {{ t('model.types.speechToText.description') }}
+ {{ t('model.types.textToSpeech.description') }}
+ {{ t('model.types.reranker.description') }}
+ {{ t('model.types.vision.description') }}
+ {{ t('model.types.imageGeneration.description') }}
+ {{ t('model.types.textToVideo.description') }}
+ {{ t('model.types.imageToVideo.description') }}
-
+
-
- 基础模型
- 列表中未列出的模型,直接输入模型名称,回车即可添加
+ {{ t('model.form.baseModel.label') }}
+ {{ t('model.form.baseModel.description') }}
- 获取模型
+ {{ t('model.actions.fetchModels') }}
@@ -386,7 +397,7 @@ defineExpose({ open })
default-first-option
filterable
:loading="baseModelLoading"
- placeholder="请先点击「获取模型」加载列表,或直接输入模型名称后回车"
+ :placeholder="t('model.form.baseModel.placeholder')"
@change="handleBaseModelChange"
>
@@ -412,15 +423,15 @@ defineExpose({ open })
trigger-class="mb-3 w-fit"
>
- 高级设置
+ {{ t('common.titles.advancedSettings') }}
diff --git a/ui/src/views/model/create-model/SelectProviderDrawer.vue b/ui/src/views/model/create-model/SelectProviderDrawer.vue
index 5fa4d8b82a8..a76a036dfda 100644
--- a/ui/src/views/model/create-model/SelectProviderDrawer.vue
+++ b/ui/src/views/model/create-model/SelectProviderDrawer.vue
@@ -1,4 +1,5 @@