From c9266e66311c575dacd81272e885b291dd3603bd Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 17 Oct 2025 12:51:42 +0800 Subject: [PATCH] chore: some i18n --- .../lang/en-US/views/application-workflow.ts | 22 ++++++++++++++++ .../lang/zh-CN/views/application-workflow.ts | 1 + .../zh-Hant/views/application-workflow.ts | 26 +++++++++++++++++-- .../nodes/search-document-node/index.vue | 2 +- .../nodes/search-knowledge-node/index.vue | 2 +- 5 files changed, 49 insertions(+), 4 deletions(-) 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 46613c0ce..bd9bbf6ca 100644 --- a/ui/src/locales/lang/en-US/views/application-workflow.ts +++ b/ui/src/locales/lang/en-US/views/application-workflow.ts @@ -139,6 +139,28 @@ export default { requiredMessage: 'Please select a search question', }, }, + searchDocumentNode: { + label: 'Document Search', + text: 'Search for documents that meet the conditions based on the document label within the specified search scope', + selectKnowledge: 'Search Scope', + searchSetting: 'Search Settings', + custom: 'Manual', + auto: 'Automatic', + document_list: 'Document List', + knowledge_list: 'Knowledge Base List', + result: 'Search Results', + searchParam: 'Search Parameters', + select_variable: 'Select Variable', + showKnowledge: { + label: 'Results are displayed in the knowledge source', + requiredMessage: 'Please set parameters', + }, + searchQuestion: { + label: 'Search Question', + placeholder: 'Please select a search question', + requiredMessage: 'Please select a search question', + }, + }, questionNode: { label: 'Question Optimization', text: 'Optimize and improve the current question based on historical chat records to better match knowledge segments', 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 9e0a1ff8d..2b32889d3 100644 --- a/ui/src/locales/lang/zh-CN/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-CN/views/application-workflow.ts @@ -158,6 +158,7 @@ export default { knowledge_list: '知识库列表', result: '检索结果', searchParam: '检索参数', + select_variable: '选择变量', showKnowledge: { label: '结果显示在知识来源中', requiredMessage: '请设置参数', 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 36f53d388..70866540a 100644 --- a/ui/src/locales/lang/zh-Hant/views/application-workflow.ts +++ b/ui/src/locales/lang/zh-Hant/views/application-workflow.ts @@ -140,6 +140,28 @@ export default { requiredMessage: '請選擇檢索問題', }, }, + searchDocumentNode: { + label: '文檔檢索', + text: '從設定的檢索範圍中,根據文檔標籤檢索出符合條件的文檔', + selectKnowledge: '檢索範圍', + searchSetting: '檢索設定', + custom: '手動', + auto: '自動', + document_list: '文件清單', + knowledge_list: '知識庫列表', + result: '檢索結果', + searchParam: '檢索參數', + select_variable: '選擇變數', + showKnowledge: { + label: '結果顯示在知識來源', + requiredMessage: '請設定參數', + }, + searchQuestion: { + label: '檢索問題', + placeholder: '請選擇檢索問題', + requiredMessage: '請選擇檢索問題', + }, + }, questionNode: { label: '問題優化', text: '根據歷史聊天記錄優化完善當前問題,更利於匹配知識庫分段', @@ -376,13 +398,13 @@ export default { loopItem: '循環元素', loopVariable: '循環變量', }, - loopBodyNode: { label: '循環體', text: '循環體' }, + loopBodyNode: {label: '循環體', text: '循環體'}, loopContinueNode: { label: 'Continue', text: '用於終止當前循環,執行下次循環', isContinue: 'Continue', }, - loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break' }, + loopBreakNode: {label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break'}, variableSplittingNode: { label: '變量拆分', text: '用於拆分變量', diff --git a/ui/src/workflow/nodes/search-document-node/index.vue b/ui/src/workflow/nodes/search-document-node/index.vue index e4f2aa116..126e5993c 100644 --- a/ui/src/workflow/nodes/search-document-node/index.vue +++ b/ui/src/workflow/nodes/search-document-node/index.vue @@ -77,7 +77,7 @@