diff --git a/ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue b/ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue index 9e12bd5cb..768716794 100644 --- a/ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/JsonInputConstructor.vue @@ -72,13 +72,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -137,7 +137,7 @@ const default_ref_variables_value_rule = { validator: (rule: any, value: any, callback: any) => { if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue b/ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue index 204fcc45e..f8c687f03 100644 --- a/ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/MultiRowConstructor.vue @@ -144,13 +144,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -183,7 +183,7 @@ const default_ref_variables_value_rule = { console.log(value.length) if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue b/ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue index c4dafb033..8249d563b 100644 --- a/ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue @@ -153,13 +153,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -192,7 +192,7 @@ const default_ref_variables_value_rule = { console.log(value.length) if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue b/ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue index 5d68e6f12..c4991ee23 100644 --- a/ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue @@ -144,13 +144,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -182,7 +182,7 @@ const default_ref_variables_value_rule = { console.log(value.length) if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue b/ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue index 0da545193..afe7917d5 100644 --- a/ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue @@ -144,13 +144,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -183,7 +183,7 @@ const default_ref_variables_value_rule = { console.log(value.length) if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue b/ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue index 14239c406..572fbb9a4 100644 --- a/ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue +++ b/ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue @@ -143,13 +143,13 @@ const getModel = inject('getModel') as any const assignment_method_option_list = computed(() => { const option_list = [ { - label: t('dynamicsForm.AssignmentMethod.custom.label', '自定义'), + label: t('common.custom'), value: 'custom', }, ] if (getModel) { option_list.push({ - label: t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量'), + label: t('views.applicationWorkflow.variable.Referencing'), value: 'ref_variables', }) } @@ -182,7 +182,7 @@ const default_ref_variables_value_rule = { console.log(value.length) if (!(Array.isArray(value) && value.length > 1)) { callback( - t('dynamicsForm.AssignmentMethod.ref_variables.label', '引用变量') + t('common.required'), + t('views.applicationWorkflow.variable.Referencing') + t('common.required'), ) } diff --git a/ui/src/locales/lang/en-US/views/application-workflow.ts b/ui/src/locales/lang/en-US/views/application-workflow.ts index f54eec74b..7b9b4673a 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -50,13 +50,14 @@ export default { beautify: 'Auto-Arrange', }, variable: { - label: 'Variable', global: 'Global Variable', Referencing: 'Referenced Variable', ReferencingRequired: 'Referenced variable is required', ReferencingError: 'Invalid referenced variable', NoReferencing: 'Referenced variable does not exist', placeholder: 'Please select a variable', + inputPlaceholder: 'Please enter variable', + loop: 'Loop Variable', }, condition: { title: 'Execution Condition', @@ -199,11 +200,7 @@ You are a master of problem optimization, adept at accurately inferring user int replyNode: { label: 'Specified Reply', text: 'Specify reply content, referenced variables will be converted to strings for output', - content: 'Content', - replyContent: { - label: 'Reply Content', - reference: 'Reference Variable', - }, + replyContent: 'Reply Content', }, rerankerNode: { label: 'Multi-path Recall', @@ -267,11 +264,11 @@ You are a master of problem optimization, adept at accurately inferring user int placeholder: 'Return the first non-null value of each group', placeholder1: 'Return the set of variables for each group', group: { - placeholder: 'Please select a variable', noneError: 'Name cannot be empty', dupError: 'Name cannot be duplicated', }, - add: 'Add Group', + addGroup: 'Add Group', + editGroup: 'Edit Group', }, mcpNode: { label: 'MCP Node', @@ -421,7 +418,6 @@ You are a master of problem optimization, adept at accurately inferring user int label: 'Loop Start', loopIndex: 'Index', loopItem: 'Loop Element', - loopVariable: 'Loop Variable', }, loopBodyNode: { label: 'Loop Body', @@ -445,7 +441,6 @@ You are a master of problem optimization, adept at accurately inferring user int inputVariables: 'Input Variable', addVariables: 'Add Variables', editVariables: 'Edit Variables', - variablePlaceholder: 'Please enter variable', variableListPlaceholder: 'Please add split variables', expression: { label: 'Expression', diff --git a/ui/src/locales/lang/zh-CN/dynamics-form.ts b/ui/src/locales/lang/zh-CN/dynamics-form.ts index 0dc6c73bb..82847478c 100644 --- a/ui/src/locales/lang/zh-CN/dynamics-form.ts +++ b/ui/src/locales/lang/zh-CN/dynamics-form.ts @@ -123,7 +123,6 @@ export default { label: '自定义', }, ref_variables: { - label: '引用变量 ', popover: '变量的值必须符合', json_format: 'JSON 格式', popover_label: '标签', diff --git a/ui/src/locales/lang/zh-CN/views/application-workflow.ts b/ui/src/locales/lang/zh-CN/views/application-workflow.ts index 2f355711d..42577e8b3 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -57,6 +57,7 @@ export default { ReferencingError: '引用变量错误', NoReferencing: '不存在的引用变量', placeholder: '请选择变量', + inputPlaceholder: '请输入变量', loop: '循环变量', }, condition: { @@ -206,11 +207,7 @@ export default { replyNode: { label: '指定回复', text: '指定回复内容,引用变量会转换为字符串进行输出', - content: '内容', - replyContent: { - label: '回复内容', - reference: '引用变量', - }, + replyContent: '回复内容', }, rerankerNode: { label: '多路召回', @@ -268,11 +265,11 @@ export default { placeholder: '返回每组的第一个非空值', placeholder1: '返回每组变量的集合', group: { - placeholder: '请选择变量', noneError: '名称不能为空', dupError: '名称不能重复', }, - add: '添加分组', + addGroup: '添加分组', + editGroup: '编辑分组', }, variableAssignNode: { label: '变量赋值', @@ -433,7 +430,6 @@ export default { label: '循环开始', loopIndex: '下标', loopItem: '循环元素', - loopVariable: '循环变量', }, loopBodyNode: { label: '循环体', @@ -456,7 +452,6 @@ export default { inputVariables: '输入变量', addVariables: '添加变量', editVariables: '编辑变量', - variablePlaceholder: '请输入变量', variableListPlaceholder: '请添加拆分变量', expression: { label: '表达式', diff --git a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts index a0e4beff9..e6e759908 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -50,13 +50,14 @@ export default { beautify: '一鍵美化', }, variable: { - label: '變量', global: '全局變量', Referencing: '引用變量', ReferencingRequired: '引用變量必填', ReferencingError: '引用變量錯誤', NoReferencing: '不存在的引用變量', placeholder: '請選擇變量', + inputPlaceholder: '請輸入變量', + loop: '循環變量', }, condition: { title: '執行條件', @@ -200,11 +201,7 @@ export default { replyNode: { label: '指定回覆', text: '指定回覆內容,引用變量會轉換為字符串進行輸出', - content: '內容', - replyContent: { - label: '回覆內容', - reference: '引用變量', - }, + replyContent: '回覆內容', }, rerankerNode: { label: '多路召回', @@ -267,11 +264,11 @@ export default { placeholder: '返回每組的第一個非空值', placeholder1: '返回每組變量的集合', group: { - placeholder: '請選擇變量', noneError: '名稱不能為空', dupError: '名稱不能重複', }, - add: '新增分組', + addGroup: '添加分組', + editGroup: '編輯分組', }, mcpNode: { label: 'MCP 調用', @@ -414,7 +411,6 @@ export default { label: '循環開始', loopIndex: '下標', loopItem: '循環元素', - loopVariable: '循環變量', }, loopBodyNode: { label: '循環體', text: '循環體' }, loopContinueNode: { @@ -431,7 +427,6 @@ export default { inputVariables: '輸入變量', addVariables: '添加變量', editVariables: '編輯變量', - variablePlaceholder: '請輸入變量', variableListPlaceholder: '請添加折開變數', expression: { label: '表達式', diff --git a/ui/src/workflow/common/data.ts b/ui/src/workflow/common/data.ts index d65e43ed1..dc6baf24a 100644 --- a/ui/src/workflow/common/data.ts +++ b/ui/src/workflow/common/data.ts @@ -233,7 +233,7 @@ export const replyNode = { config: { fields: [ { - label: t('views.applicationWorkflow.nodes.replyNode.content'), + label: t('common.content'), value: 'answer', }, ], diff --git a/ui/src/workflow/nodes/loop-start-node/component/LoopFieldTable.vue b/ui/src/workflow/nodes/loop-start-node/component/LoopFieldTable.vue index cfda303df..09bcb2530 100644 --- a/ui/src/workflow/nodes/loop-start-node/component/LoopFieldTable.vue +++ b/ui/src/workflow/nodes/loop-start-node/component/LoopFieldTable.vue @@ -1,7 +1,7 @@