From 07777bbe4a128d3392577b07ddae28918999506c Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 18 May 2026 15:21:24 +0800 Subject: [PATCH] feat(i18n): add "Shared by me" label to localization files Enhanced localization files for English, Korean, Russian, and Chinese by adding the "Shared by me" label to improve clarity in shared resource sections. This update ensures a more intuitive user experience when navigating shared content across different languages. Refs: #1303 --- frontend/src/i18n/locales/en-US.ts | 2 + frontend/src/i18n/locales/ko-KR.ts | 2 + frontend/src/i18n/locales/ru-RU.ts | 2 + frontend/src/i18n/locales/zh-CN.ts | 2 + frontend/src/views/agent/AgentList.vue | 129 +++++++++++++---- .../src/views/knowledge/KnowledgeBase.vue | 20 +-- .../src/views/knowledge/KnowledgeBaseList.vue | 124 ++++++++++++++--- .../views/organization/OrganizationList.vue | 131 ++++++++++++++++-- 8 files changed, 349 insertions(+), 63 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index aa868cba..a92aa33c 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -430,6 +430,7 @@ export default { mine: 'Created by me', tenantReadonly: 'Workspace · View only', tenantOthers: 'Workspace · Other members', + sharedByMe: 'Shared by me', sharedEditable: 'Shared with me · Can edit', sharedReadonly: 'Shared with me · View only', }, @@ -1628,6 +1629,7 @@ export default { mine: 'Created by me', tenantReadonly: 'Workspace · View only', tenantOthers: 'Workspace · Other members', + sharedByMe: 'Shared by me', sharedEditable: 'Shared with me · Can edit', sharedReadonly: 'Shared with me · View only', }, diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index c08fa216..8caca9c0 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -1322,6 +1322,7 @@ export default { mine: "내가 만듦", tenantReadonly: "워크스페이스 · 읽기 전용", tenantOthers: "워크스페이스 · 다른 멤버", + sharedByMe: "내가 공유한", sharedEditable: "공유받음 · 편집 가능", sharedReadonly: "공유받음 · 읽기 전용", }, @@ -2292,6 +2293,7 @@ export default { mine: "내가 만듦", tenantReadonly: "워크스페이스 · 읽기 전용", tenantOthers: "워크스페이스 · 다른 멤버", + sharedByMe: "내가 공유한", sharedEditable: "공유받음 · 편집 가능", sharedReadonly: "공유받음 · 읽기 전용", }, diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 6edc013e..79694ee1 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -522,6 +522,7 @@ export default { mine: 'Созданные мной', tenantReadonly: 'Рабочая область · Только просмотр', tenantOthers: 'Рабочая область · Другие участники', + sharedByMe: 'Расшарено мной', sharedEditable: 'Доступно мне · Можно редактировать', sharedReadonly: 'Доступно мне · Только просмотр' }, @@ -1867,6 +1868,7 @@ export default { mine: 'Созданные мной', tenantReadonly: 'Рабочая область · Только просмотр', tenantOthers: 'Рабочая область · Другие участники', + sharedByMe: 'Расшарено мной', sharedEditable: 'Доступно мне · Можно редактировать', sharedReadonly: 'Доступно мне · Только просмотр' }, diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 94d9545b..7ec37837 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1316,6 +1316,7 @@ export default { mine: "我创建的", tenantReadonly: "本空间 · 仅查看", tenantOthers: "本空间 · 其他成员", + sharedByMe: "我共享的", sharedEditable: "共享给我 · 可编辑", sharedReadonly: "共享给我 · 仅查看", }, @@ -2268,6 +2269,7 @@ export default { mine: "我创建的", tenantReadonly: "本空间 · 仅查看", tenantOthers: "本空间 · 其他成员", + sharedByMe: "我共享的", sharedEditable: "共享给我 · 可编辑", sharedReadonly: "共享给我 · 仅查看", }, diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vue index 3a7adc35..e4ae83bc 100644 --- a/frontend/src/views/agent/AgentList.vue +++ b/frontend/src/views/agent/AgentList.vue @@ -2,7 +2,7 @@
+ :count-recents="agentRecentsCount" />
@@ -68,8 +68,7 @@ :key="agent.isMine ? agent.id : `shared-${agent.share_id}`"> -
{{ $t('agent.sections.builtin') }} + {{ filteredAgentSectionCounts.builtin }}
-
{{ $t('agent.sections.mine') }} + {{ filteredAgentSectionCounts.mine }}
-
{{ $t(tenantSectionLabelKey) }} + {{ filteredAgentSectionCounts.tenantOthers }}
-
- + + {{ $t('agent.sections.sharedEditable') }} + {{ filteredAgentSectionCounts.sharedEditable }}
-
- + + {{ $t('agent.sections.sharedReadonly') }} + {{ filteredAgentSectionCounts.sharedReadonly }}
@@ -317,6 +319,7 @@ @keydown.space.prevent="toggleAgentSection('builtin')"> {{ $t('agent.sections.builtin') }} + {{ mineAgentSectionCounts.builtin }}
@@ -332,6 +335,7 @@ @keydown.space.prevent="toggleAgentSection('mine')"> {{ $t('agent.sections.mine') }} + {{ mineAgentSectionCounts.mine }}
@@ -347,6 +351,7 @@ @keydown.space.prevent="toggleAgentSection('tenantOthers')"> {{ $t(tenantSectionLabelKey) }} + {{ mineAgentSectionCounts.tenantOthers }}
@@ -495,6 +500,17 @@