From 371fdeb948bb0b340f54fadc2fa5a50e6d237a44 Mon Sep 17 00:00:00 2001 From: yujiangping Date: Tue, 10 Feb 2026 15:28:56 +0800 Subject: [PATCH] feat(web): add workspace sharing management i18n and update share modal - Add new i18n keys for share management UI (shareSpace, shareSpaceTitle, shareSpaceNote) in both English and Chinese translations - Update ShareModal title to use new 'shareSpace' i18n key for better UX clarity - Update ShareModal description and note text to use new i18n keys (shareSpaceTitle, shareSpaceNote) - Fix parser_config field name from 'third_party_platform' to '_third_party_platform' in CreateModal for proper form binding - Improve share modal messaging to better communicate workspace sharing status and access control --- web/src/i18n/en.ts | 3 +++ web/src/i18n/zh.ts | 3 +++ web/src/views/KnowledgeBase/components/CreateModal.tsx | 2 +- web/src/views/KnowledgeBase/components/ShareModal.tsx | 8 ++++---- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 8d99872d..9892b728 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -766,6 +766,9 @@ export const en = { toWorkspace: 'Authorization to workspace', shareTitle:'Please select the workspace you want to share', shareNote:'Note: Sharing is not possible when workspace app is closed', + shareSpace:'Manage Sharing', + shareSpaceTitle:'Shared with the following workspaces', + shareSpaceNote: 'Note: sharing is turned off, others will no longer have access.', authorizedPerson:'Authorized person', chunkList:'Chunk List', delimiter:'Text paragraph delimiter', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index a8f7875c..c72da969 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -305,6 +305,9 @@ export const zh = { toWorkspace: '授权到工作空间', shareTitle: '请选择要分享的工作空间', shareNote: '注意:工作空间应用关闭时无法分享', + shareSpace:'管理共享', + shareSpaceTitle:'已共享至以下工作空间', + shareSpaceNote: '注意:关闭共享后对方将无法访问', authorizedPerson: '授权人', chunkList: '分块列表', delimiter: '文本段落分隔符', diff --git a/web/src/views/KnowledgeBase/components/CreateModal.tsx b/web/src/views/KnowledgeBase/components/CreateModal.tsx index f44907bc..71fe1b94 100644 --- a/web/src/views/KnowledgeBase/components/CreateModal.tsx +++ b/web/src/views/KnowledgeBase/components/CreateModal.tsx @@ -579,7 +579,7 @@ const CreateModal = forwardRef(({ {currentType === 'Third-party' && ( <> (({ handleShare: <> {contextHolder} (({ handleShare: confirmLoading={loading} >
-

{t('knowledgeBase.shareTitle')}

- {t('knowledgeBase.shareNote')} +

{t('knowledgeBase.shareSpaceTitle')}

+ {t('knowledgeBase.shareSpaceNote')}
{spaceList.length === 0 && (