From 50eb48c34460cebfc42669cab8ab8bdf9b7d9cc9 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 24 Jul 2026 11:40:56 +0800 Subject: [PATCH] fix(org): disambiguate shared-space terms and tighten invite search Search tenants for invite by workspace name only (a user may belong to multiple workspaces, so username/email matching was ambiguous). Align organization i18n to distinguish shared spaces from workspaces, fix the duplicate zh-CN members key, and wrap invite-code generation response in data so the frontend and Go SDK can read it. --- frontend/src/i18n/locales/en-US.ts | 204 ++++++++-------- frontend/src/i18n/locales/ko-KR.ts | 224 +++++++++--------- frontend/src/i18n/locales/ru-RU.ts | 204 ++++++++-------- frontend/src/i18n/locales/zh-CN.ts | 199 ++++++++-------- .../OrganizationSettingsModal.vue | 20 +- internal/handler/organization.go | 65 ++--- 6 files changed, 444 insertions(+), 472 deletions(-) diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 83026c19..867c7835 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -5069,18 +5069,18 @@ export default { organization: { title: 'Shared Spaces', subtitle: 'Create or join shared spaces so multiple workspaces can collaborate and share knowledge bases and agents', - createOrg: 'Create Space', + createOrg: 'Create Shared Space', createOrgShort: 'New', - joinOrg: 'Join Space', + joinOrg: 'Join Shared Space', joinOrgShort: 'Join', - name: 'Space Name', - namePlaceholder: 'Enter space name', - nameRequired: 'Please enter space name', - avatar: 'Space Avatar', + name: 'Shared Space Name', + namePlaceholder: 'Enter shared space name', + nameRequired: 'Please enter shared space name', + avatar: 'Shared Space Avatar', avatarClear: 'Clear', - avatarPickerHint: 'Choose an emoji as space avatar', - description: 'Description', - descriptionPlaceholder: 'Enter space description (optional)', + avatarPickerHint: 'Choose an emoji as shared space avatar', + description: 'Shared Space Description', + descriptionPlaceholder: 'Enter shared space description (optional)', noDescription: 'No description', members: 'members', memberCount: 'Member count', @@ -5088,7 +5088,7 @@ export default { inviteCode: 'Invite Code', inviteCodePlaceholder: 'Enter invite code', inviteCodeRequired: 'Please enter invite code', - inviteCodeTip: 'Share this invite code with others to let them join your space', + inviteCodeTip: 'Share this invite code with others to let them join the shared space', refreshInviteCode: 'Refresh Invite Code', inviteCodeRefreshed: 'Invite code refreshed', inviteCodeRefreshFailed: 'Failed to refresh invite code', @@ -5100,36 +5100,36 @@ export default { cannotManage: 'Your workspace role is insufficient to manage this shared space', }, join: { - title: 'Join Space', - joining: 'Joining space...', - success: 'Successfully joined space!', - failed: 'Failed to join space', + title: 'Join Shared Space', + joining: 'Joining shared space...', + success: 'Successfully joined shared space!', + failed: 'Failed to join shared space', noCode: 'Invite code not found', - goToOrganizations: 'Go to Spaces', - confirmTitle: 'Confirm Join Space', + goToOrganizations: 'Go to Shared Spaces', + confirmTitle: 'Confirm Join Shared Space', confirm: 'Confirm Join', preview: 'Preview & Join', memberCount: '{count} members', shareCount: '{count} shared knowledge bases', agentShareCount: '{count} agents', - alreadyMember: 'You are already a member of this space', + alreadyMember: 'You are already a member of this shared space', invalidCode: 'Invalid invite code', byInviteCode: 'Enter invite code', - searchSpaces: 'Search spaces', - searchSpacesDesc: 'Browse or search spaces that are open for discovery; join without an invite code', - searchSpacesPlaceholder: 'Search by space name, description or space ID', - spaceId: 'Space ID', - noSearchResult: 'No matching spaces', - noSearchableSpaces: 'No discoverable spaces yet, or try a search', + searchSpaces: 'Search shared spaces', + searchSpacesDesc: 'Browse or search shared spaces that are open for discovery; join without an invite code', + searchSpacesPlaceholder: 'Search by shared space name, description or ID', + spaceId: 'Shared Space ID', + noSearchResult: 'No matching shared spaces', + noSearchableSpaces: 'No discoverable shared spaces yet, or try a search', membersWithLimit: '{current}/{limit} members', memberLimitReached: 'Full', backToSearch: 'Back to search', }, invite: { loading: 'Loading...', - previewTitle: 'Join Space', - previewInfo: 'Space Overview', - inputDesc: 'Enter the invite code (or paste from an invite link) to view the space and join', + previewTitle: 'Join Shared Space', + previewInfo: 'Shared Space Overview', + inputDesc: 'Enter the invite code (or paste from an invite link) to view the shared space and join', previewAction: 'View', primaryJoin: 'Join', invalidTitle: 'Invalid Invitation', @@ -5138,10 +5138,10 @@ export default { members: 'Members', knowledgeBases: 'Knowledge Bases', agents: 'Agents', - alreadyMember: 'You are already a member of this space', + alreadyMember: 'You are already a member of this shared space', confirmJoin: 'Confirm Join', submitRequest: 'Request to Join', - requireApprovalTip: 'This space requires admin approval to join', + requireApprovalTip: 'This shared space requires admin approval to join', approvalLabel: 'Join method', needApproval: 'Requires approval', noApproval: 'No approval required', @@ -5150,31 +5150,31 @@ export default { selectRole: 'Select role', messagePlaceholder: 'Optional: message (e.g. intro or reason to join)', applicationNote: 'Application note (optional)', - joinSuccess: 'Successfully joined space!', + joinSuccess: 'Successfully joined shared space!', joinFailed: 'Failed to join, please try again', requestSubmitted: 'Request submitted, please wait for admin approval', requestFailed: 'Failed to submit request, please try again', - viewOrganization: 'View Space', + viewOrganization: 'View Shared Space', }, - leave: 'Leave Space', - leaveConfirm: 'Are you sure you want to leave this space?', - leaveConfirmTitle: 'Leave Space', - leaveConfirmMessage: 'Are you sure you want to leave "{name}"? You will lose access to shared knowledge bases.', - leaveSuccess: 'Left space successfully', - leaveFailed: 'Failed to leave space', - deleteConfirm: 'Are you sure you want to delete this space? This action cannot be undone.', - deleteConfirmTitle: 'Delete Space', - deleteConfirmMessage: 'Are you sure you want to delete "{name}"? All members will be removed. This action cannot be undone.', - deleteSuccess: 'Space deleted', - deleteFailed: 'Failed to delete space', - createSuccess: 'Space created successfully', - createFailed: 'Failed to create space', - joinSuccess: 'Joined space successfully', - joinFailed: 'Failed to join space', + leave: 'Leave Shared Space', + leaveConfirm: 'Are you sure you want to leave this shared space?', + leaveConfirmTitle: 'Leave Shared Space', + leaveConfirmMessage: 'Are you sure you want to leave shared space "{name}"? You will no longer have access to knowledge bases shared in this shared space.', + leaveSuccess: 'Left shared space successfully', + leaveFailed: 'Failed to leave shared space', + deleteConfirm: 'Are you sure you want to delete this shared space? This action cannot be undone.', + deleteConfirmTitle: 'Delete Shared Space', + deleteConfirmMessage: 'Are you sure you want to delete shared space "{name}"? All members will be removed. This action cannot be undone.', + deleteSuccess: 'Shared space deleted', + deleteFailed: 'Failed to delete shared space', + createSuccess: 'Shared space created successfully', + createFailed: 'Failed to create shared space', + joinSuccess: 'Joined shared space successfully', + joinFailed: 'Failed to join shared space', manageMembers: 'Manage Members', noMembers: 'No members', members: { - listTitle: 'Space members', + listTitle: 'Shared space members', searchPlaceholder: 'Search members…', loading: 'Loading members…', emptySearch: 'No members matching "{q}"', @@ -5219,17 +5219,17 @@ export default { memberRemoved: 'Member removed', memberRemoveFailed: 'Failed to remove member', empty: 'You have not joined any shared space yet', - emptyDesc: 'Create a space or join an existing one with an invite code', + emptyDesc: 'Create a shared space or join an existing one with an invite code', all: 'All', createdByMe: 'Created by me', joinedByMe: 'Joined', createdTag: 'Created', joinedTag: 'Joined', joinedLabel: 'Joined', - emptyCreated: 'You have not created any space yet', - emptyCreatedDesc: 'Click "Create Space" to create one', - emptyJoined: 'You have not joined any space yet', - emptyJoinedDesc: 'Join an existing space with an invite code', + emptyCreated: 'You have not created any shared space yet', + emptyCreatedDesc: 'Click "Create Shared Space" to create a new one', + emptyJoined: 'You have not joined any shared space yet', + emptyJoinedDesc: 'Join an existing shared space with an invite code', role: { admin: 'Admin', editor: 'Editor', @@ -5240,29 +5240,29 @@ export default { removeMemberTitle: 'Remove Member', removeMemberConfirm: 'Are you sure you want to remove "{name}"?', removeMember: 'Remove Member', - shareKBTip: 'Go to knowledge base list, select a knowledge base and click share to share it to this space', + shareKBTip: 'Go to knowledge base list, select a knowledge base and click share to share it to this shared space', }, settings: { - editTitle: 'Space Settings', - detailTitle: 'Space Details', - myRoleDesc: 'Your role in this space determines your permissions', - membersDesc: 'View and manage space members and their roles. Each member represents a workspace — all users in the same workspace share access to this space.', + editTitle: 'Shared Space Settings', + detailTitle: 'Shared Space Details', + myRoleDesc: 'Your role in this shared space determines your permissions', + membersDesc: 'View and manage shared space members and their roles. Each member represents a workspace — all users in the same workspace share access to this shared space.', permissionsIconHint: 'View role permissions', - sharedDesc: 'View all knowledge bases shared to this space', + sharedDesc: 'View all knowledge bases shared to this shared space', noSharedKB: 'No shared knowledge bases yet', - noSharedKBTip: 'Knowledge base owners can share their knowledge bases to this space in KB settings', + noSharedKBTip: 'Knowledge base owners can share their knowledge bases to this shared space in KB settings', sharedAgents: 'Shared Agents', noSharedAgents: 'No shared agents yet', - sharedAgentsDesc: 'Agents shared to this space; members can use them in chat', - sharedAgentsKbHint: 'Knowledge bases linked to an agent are only available (read-only) when members use that agent in a conversation (via {\'@\'}). They do not appear in the Knowledge Base list. To let members see or edit a knowledge base in the list, share that knowledge base to this space separately.', + sharedAgentsDesc: 'Agents shared to this shared space; members can use them in chat', + sharedAgentsKbHint: 'Knowledge bases linked to an agent are only available (read-only) when members use that agent in a conversation (via {\'@\'}). They do not appear in the Knowledge Base list. To let members see or edit a knowledge base in the list, share that knowledge base to this shared space separately.', sharedAgentsKbHintShort: 'Agent-linked knowledge is read-only in chat; share the KB to this space if members should see or edit it in the list.', - noSharedAgentsTip: 'Admins can share agents to this space from agent settings', - sharePermissionLabel: 'Space permission', + noSharedAgentsTip: 'Admins can share agents to this shared space from agent settings', + sharePermissionLabel: 'Shared space permission', myPermissionLabel: 'Effective', - permissionCalcFormula: 'Space permission is set when sharing; effective permission is the lower of that and your space role', - permissionCalcTip: 'Effective permission is the lower of space permission and your role here; viewers get at most read-only on this KB.', + permissionCalcFormula: 'Shared space permission is set when sharing; effective permission is the lower of that and your shared space role', + permissionCalcTip: 'Effective permission is the lower of shared space permission and your role here; viewers get at most read-only on this KB.', inviteMembers: 'Invite Members', - inviteMembersDesc: 'Invite others to join the space via code or link', + inviteMembersDesc: 'Invite others to join the shared space via code or link', inviteLink: 'Invite Link', inviteLinkValidity: 'Invite link validity', inviteLinkValidityDesc: 'Validity period for newly generated invite links', @@ -5273,21 +5273,21 @@ export default { remainingValidity: 'Expires in {n} days', remainingValidityNever: 'Never expire', remainingValidityExpired: 'Expired', - removeShareFromOrg: 'Remove from space', - removeShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this knowledge base.', - removeAgentShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this agent.', - removeShareSuccess: 'Removed from space', + removeShareFromOrg: 'Remove from shared space', + removeShareConfirm: 'Remove "{name}" from this shared space? Members will no longer have access to this knowledge base.', + removeAgentShareConfirm: 'Remove "{name}" from this shared space? Members will no longer have access to this agent.', + removeShareSuccess: 'Removed from shared space', removeShareFailed: 'Failed to remove, please try again', requireApproval: 'Require Approval', requireApprovalDesc: 'When enabled, new members need admin approval to join', searchable: 'Open for search', - searchableDesc: 'When enabled, this space appears in the "Join Space" search list; others can search and request to join without an invite code', + searchableDesc: 'When enabled, this shared space appears in the "Join Shared Space" search list; others can search and request to join without an invite code', memberLimit: 'Member limit', memberLimitDesc: 'No new members can be added when the limit is reached; 0 means unlimited', memberLimitPlaceholder: '0 = unlimited', memberLimitHint: 'Current members: {count}', joinRequests: 'Join Requests', - joinRequestsDesc: 'Review pending requests to join the space', + joinRequestsDesc: 'Review pending requests to join the shared space', noPendingRequests: 'No pending requests', pendingJoinRequestsBadge: 'Pending join requests to review', pendingReview: 'Pending', @@ -5306,37 +5306,37 @@ export default { editor: { navBasic: 'Basic Info', navPermissions: 'Permissions', - navJoin: 'Join Space', + navJoin: 'Join Shared Space', basicTitle: 'Basic Information', - basicDesc: 'Set the space name and description for easy identification', + basicDesc: 'Set the shared space name and description for easy identification', nameTip: 'Use your team or project name for easy identification', - descriptionTip: 'Describe the purpose and goals of the space', + descriptionTip: 'Describe the purpose and goals of the shared space to help members understand it', permissionsTitle: 'Member Permissions', - permissionsDesc: 'Understand the permission scope of different roles for knowledge bases and agents in the space', + permissionsDesc: 'Understand the permission scope of different roles for knowledge bases and agents in the shared space', permissionFeature: 'Permission Feature', fullAccess: 'Full Access', editAccess: 'Edit Access', viewAccess: 'View Only', - adminPerm1: 'Manage space settings, members, and knowledge base & agent sharing', + adminPerm1: 'Manage shared space settings, members, and knowledge base & agent sharing', adminPerm2: 'Share and manage knowledge bases and agents', adminPerm3: 'Edit shared knowledge base content', adminPerm4: 'View and search knowledge bases', useSharedAgentsPerm: 'Use shared agents', - shareKBPerm: 'Share knowledge bases to space', + shareKBPerm: 'Share knowledge bases to shared space', editorPerm1: 'Edit shared knowledge base content', editorPerm2: 'View and search knowledge bases', - editorPerm3: 'Manage space settings and members', + editorPerm3: 'Manage shared space settings and members', viewerPerm1: 'View and search knowledge bases', viewerPerm2: 'Edit knowledge base content', - viewerPerm3: 'Manage space settings', - ownerNote: 'As the space creator, you will automatically become an admin with full permissions.', - joinTitle: 'Join Space', - joinDesc: 'Join an existing space with an invite code to access shared knowledge bases and agents', - joinIllustration: 'Enter the invite code provided by the space admin to join', - inviteCodeTip: 'The invite code is generated by space admins, please ask them for it', + viewerPerm3: 'Manage shared space settings', + ownerNote: 'As the shared space creator, you will automatically become an admin with full permissions.', + joinTitle: 'Join Shared Space', + joinDesc: 'Join an existing shared space with an invite code to access shared knowledge bases and agents', + joinIllustration: 'Enter the invite code provided by the shared space admin to join', + inviteCodeTip: 'The invite code is generated by shared space admins, please ask them for it', howToGetCode: 'How to get an invite code?', - step1: 'Contact the admin of the space you want to join', - step2: 'Ask them to share the space invite code', + step1: 'Contact the admin of the shared space you want to join', + step2: 'Ask them to share the shared space invite code', step3: 'Paste the invite code in the input field above', }, upgrade: { @@ -5356,12 +5356,12 @@ export default { addMember: { button: 'Add Member', dialogTitle: 'Add Member', - tip: 'Added users will immediately become space members and can access shared knowledge bases.', + tip: 'Added users will immediately become shared space members and can access knowledge bases shared in this shared space.', tipTenant: 'Membership is at the workspace level: once a workspace joins, all of its users share access to this space. Results below are deduplicated by workspace.', searchUser: 'Select User', searchTenant: 'Select Workspace', searchPlaceholder: 'Search by username or email...', - searchTenantPlaceholder: 'Search by workspace name, username or email...', + searchTenantPlaceholder: 'Search by workspace name...', searchHint: 'Type at least 2 characters to search', searchTenantHint: 'Type at least 2 characters; results are deduplicated by workspace and exclude workspaces already in this space', selectRole: 'Assign Role', @@ -5375,9 +5375,9 @@ export default { }, }, share: { - title: 'Share Knowledge Base', - selectOrg: 'Select Space', - selectOrgPlaceholder: 'Select a space to share with', + title: 'Share to Shared Space', + selectOrg: 'Select Shared Space', + selectOrgPlaceholder: 'Select a shared space to share with', permission: 'Permission', permissionTip: 'Editable permission allows members to modify knowledge base content, Read-only permission only allows search and Q&A', shareSuccess: 'Knowledge base shared', @@ -5385,25 +5385,25 @@ export default { unshareSuccess: 'Share cancelled', unshareFailed: 'Failed to cancel share', sharedTo: 'Shared to', - noShares: 'Not shared to any space yet', - searchPlaceholder: 'Search spaces…', + noShares: 'Not shared to any shared space yet', + searchPlaceholder: 'Search shared spaces…', loading: 'Loading…', - emptySearch: 'No spaces matching "{q}"', - addShareDialogTitle: 'Share to space', + emptySearch: 'No shared spaces matching "{q}"', + addShareDialogTitle: 'Share to shared space', unshareAction: 'Remove share', columns: { - space: 'Space', + space: 'Shared Space', permission: 'Permission', sharedAt: 'Shared', operations: 'Actions', }, sharedKnowledgeBase: 'Shared Knowledge Base', - shareToSpace: 'Share to space', - shareModelToSpace: 'Share "{name}" to space', - shareAgentToSpace: 'Share "{name}" to space', - modelShareDesc: 'Share this model to a space so members can use it', - agentShareDesc: 'Share this agent to a space so members can use it', - spaceAgentShareCountTip: 'Number of agents shared to this space', + shareToSpace: 'Share to shared space', + shareModelToSpace: 'Share "{name}" to shared space', + shareAgentToSpace: 'Share "{name}" to shared space', + modelShareDesc: 'Share this model to a shared space so members can use it', + agentShareDesc: 'Share this agent to a shared space so members can use it', + spaceAgentShareCountTip: 'Number of agents shared to this shared space', sharedFrom: 'From', sharedBadge: 'Shared', permissionReadonly: 'Read-only', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index ca554657..46999479 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -3,7 +3,7 @@ export default { knowledgeBase: "지식베이스", agents: "에이전트", integrations: "게시 및 통합", - organizations: "공유 스페이스", + organizations: "공유 공간", chat: "대화", newChat: "새 대화", createChat: "대화 생성", @@ -352,10 +352,10 @@ export default { tenantTooltip: "워크스페이스의 다른 멤버가 생성", tenantTooltipWithCreator: "{creator}님이 생성", space: "스페이스", - spaceTooltip: "공유 스페이스 「{space}」에서 가져옴", - spaceTooltipWithTenant: "공유 스페이스 「{space}」 · 출처 {tenant}", + spaceTooltip: "공유 공간 「{space}」에서 가져옴", + spaceTooltipWithTenant: "공유 공간 「{space}」 · 출처 {tenant}", shared: "외부 공유", - sharedTooltip: "공유 스페이스를 통해 외부 워크스페이스에서 접근", + sharedTooltip: "공유 공간를 통해 외부 워크스페이스에서 접근", }, knowledgeBase: { title: "지식베이스", @@ -369,7 +369,7 @@ export default { permissionAdmin: "공유 설정 편집 및 관리", permissionEditor: "편집 가능한 문서 및 태그", permissionViewer: "보기 및 검색만 가능", - fromOrg: "공유 스페이스에서", + fromOrg: "공유 공간에서", sharedAt: "공유일시", lastUpdated: "마지막 업데이트", }, @@ -2103,7 +2103,7 @@ export default { }, shareScope: { title: "공유 범위 설명", - desc: "스페이스 구성원은 읽기 전용 모드로 에이전트를 사용하며 현재 구성된 기능과 리소스를 따릅니다. 에이전트에 대한 수정 사항은 공유 스페이스에 동기화됩니다. 스페이스 구성원이 지식베이스 콘텐츠를 편집할 수 있도록 허용하려면 지식베이스를 스페이스에 공유하세요.", + desc: "스페이스 구성원은 읽기 전용 모드로 에이전트를 사용하며 현재 구성된 기능과 리소스를 따릅니다. 에이전트에 대한 수정 사항은 공유 공간에 동기화됩니다. 스페이스 구성원이 지식베이스 콘텐츠를 편집할 수 있도록 허용하려면 지식베이스를 스페이스에 공유하세요.", knowledgeBase: "지식베이스", chatModel: "대화 모델", rerankModel: "모델을 재배열하다", @@ -3600,14 +3600,14 @@ export default { uninitializedBanner: "일부 지식베이스가 아직 초기화되지 않았습니다. 지식 문서를 추가하려면 먼저 설정에서 모델 정보를 구성해야 합니다", emptyShared: - "현재 공동 작업 지식베이스가 없습니다. 공유 스페이스에 참여하여 다른 사람들이 공유하는 지식베이스를 얻을 수 있습니다.", + "현재 공동 작업 지식베이스가 없습니다. 공유 공간에 참여하여 다른 사람들이 공유하는 지식베이스를 얻을 수 있습니다.", empty: { title: "지식베이스 없음", description: '왼쪽 빠른 작업에서 "지식베이스 생성" 버튼을 클릭하여 첫 번째 지식베이스를 생성하세요', sharedTitle: "아직 공유 지식베이스가 없습니다.", sharedDescription: - "공유 스페이스에 참여하거나 다른 사람에게 지식베이스를 공유해 달라고 요청할 수 있습니다.", + "공유 공간에 참여하거나 다른 사람에게 지식베이스를 공유해 달라고 요청할 수 있습니다.", favoritesTitle: "즐겨찾기 없음", favoritesDescription: "카드의 별표 아이콘을 눌러 즐겨찾기에 추가하세요", recentsTitle: "최근 항목 없음", @@ -5069,21 +5069,21 @@ export default { withWebSearch: "웹 검색", }, organization: { - title: "공유 스페이스", + title: "공유 공간", subtitle: - "공유 스페이스를 만들거나 참여하여 여러 스페이스가 함께 협업하고 지식베이스와 에이전트를 공유하세요.", - createOrg: "스페이스 생성", + "공유 공간를 만들거나 참여하여 여러 스페이스가 함께 협업하고 지식베이스와 에이전트를 공유하세요.", + createOrg: "공유 공간 생성", createOrgShort: "새로 만들기", - joinOrg: "스페이스에 참여하기", + joinOrg: "공유 공간에 참여하기", joinOrgShort: "참여", - name: "스페이스 이름", - namePlaceholder: "스페이스 이름을 입력해주세요", - nameRequired: "스페이스 이름을 입력해주세요", - avatar: "스페이스 아바타", + name: "공유 공간 이름", + namePlaceholder: "공유 공간 이름을 입력해주세요", + nameRequired: "공유 공간 이름을 입력해주세요", + avatar: "공유 공간 아바타", avatarClear: "지우기", - avatarPickerHint: "스페이스 아바타로 이모티콘을 선택하세요", - description: "스페이스 설명", - descriptionPlaceholder: "스페이스 설명을 입력하세요(선택사항).", + avatarPickerHint: "공유 공간 아바타로 이모티콘을 선택하세요", + description: "공유 공간 설명", + descriptionPlaceholder: "공유 공간 설명을 입력하세요(선택사항).", noDescription: "아직 설명이 없습니다", members: "회원", memberCount: "회원 수", @@ -5092,7 +5092,7 @@ export default { inviteCodePlaceholder: "초대코드를 입력해주세요", inviteCodeRequired: "초대코드를 입력해주세요", inviteCodeTip: - "이 초대 코드를 다른 사람들과 공유하면 초대 코드를 통해 스페이스에 참여할 수 있습니다.", + "이 초대 코드를 다른 사람들과 공유하면 초대 코드를 통해 공유 공간에 참여할 수 있습니다.", refreshInviteCode: "초대 코드 새로 고침", inviteCodeRefreshed: "초대 코드가 새로 고쳐졌습니다.", inviteCodeRefreshFailed: "초대 코드를 새로 고치지 못했습니다.", @@ -5104,39 +5104,39 @@ export default { cannotManage: "현재 워크스페이스 역할이 부족하여 공유 공간을 관리할 수 없습니다", }, join: { - title: "스페이스에 참여하기", - joining: "스페이스에 참여하는 중..", - success: "성공적으로 스페이스에 합류했습니다!", - failed: "스페이스에 참여하지 못했습니다.", + title: "공유 공간에 참여하기", + joining: "공유 공간에 참여하는 중..", + success: "성공적으로 공유 공간에 합류했습니다!", + failed: "공유 공간에 참여하지 못했습니다.", noCode: "초대 코드를 찾을 수 없습니다", - goToOrganizations: "스페이스 목록으로 이동", - confirmTitle: "스페이스에 참여하려면 확인하세요.", + goToOrganizations: "공유 공간 목록으로 이동", + confirmTitle: "공유 공간에 참여하려면 확인하세요.", confirm: "가입 확인", preview: "미리보기 및 참여", memberCount: "{count} 회원", shareCount: "{count} 공유 지식베이스", agentShareCount: "{count} 에이전트", - alreadyMember: "귀하는 이미 이 스페이스의 회원입니다.", + alreadyMember: "귀하는 이미 이 공유 공간의 회원입니다.", invalidCode: "잘못된 초대 코드", byInviteCode: "초대코드를 입력하세요", - searchSpaces: "검색 스페이스", + searchSpaces: "공유 공간 검색", searchSpacesDesc: - "검색이 가능한 스페이스를 찾아보거나 검색해 보세요. 초대코드 없이도 참여할 수 있습니다.", - searchSpacesPlaceholder: "스페이스 이름, 설명 또는 스페이스 ID로 검색", - spaceId: "스페이스ID", - noSearchResult: "일치하는 스페이스를 찾을 수 없습니다.", + "검색이 가능한 공유 공간을 찾아보거나 검색해 보세요. 초대코드 없이도 참여할 수 있습니다.", + searchSpacesPlaceholder: "공유 공간 이름, 설명 또는 ID로 검색", + spaceId: "공유 공간 ID", + noSearchResult: "일치하는 공유 공간을 찾을 수 없습니다.", noSearchableSpaces: - "현재 검색 가능한 공개 스페이스가 없거나, 키워드를 입력하여 검색하실 수 있습니다.", + "현재 검색 가능한 공개 공유 공간이 없거나, 키워드를 입력하여 검색하실 수 있습니다.", membersWithLimit: "{current}/{limit} 회원", memberLimitReached: "회원이 꽉 찼습니다.", backToSearch: "검색으로 돌아가기", }, invite: { loading: "로드 중..", - previewTitle: "스페이스에 참여하기", - previewInfo: "스페이스개요", + previewTitle: "공유 공간에 참여하기", + previewInfo: "공유 공간 개요", inputDesc: - "초대코드를 입력하거나 초대링크에 초대코드를 붙여넣고 스페이스정보를 확인 후 참여하세요", + "초대코드를 입력하거나 초대링크에 초대코드를 붙여넣고 공유 공간 정보를 확인 후 참여하세요", previewAction: "확인하다", primaryJoin: "참여", invalidTitle: "잘못된 초대", @@ -5145,10 +5145,10 @@ export default { members: "회원", knowledgeBases: "지식베이스", agents: "에이전트", - alreadyMember: "귀하는 이미 이 스페이스의 회원입니다.", + alreadyMember: "귀하는 이미 이 공유 공간의 회원입니다.", confirmJoin: "가입 확인", submitRequest: "가입 신청", - requireApprovalTip: "이 스페이스에 참여하려면 관리자의 검토가 필요합니다.", + requireApprovalTip: "이 공유 공간에 참여하려면 관리자의 검토가 필요합니다.", approvalLabel: "가입방법", needApproval: "검토 필요", noApproval: "검토가 필요하지 않습니다.", @@ -5157,33 +5157,33 @@ export default { selectRole: "역할 선택", messagePlaceholder: "선택사항 : 지원서 설명(자기소개, 입사이유 등)", applicationNote: "신청방법(선택)", - joinSuccess: "성공적으로 스페이스에 합류했습니다!", + joinSuccess: "성공적으로 공유 공간에 합류했습니다!", joinFailed: "참여하지 못했습니다. 나중에 다시 시도해 주세요.", requestSubmitted: "신청서가 제출되었습니다. 관리자의 검토를 기다려주세요.", requestFailed: "신청서 제출에 실패했습니다. 나중에 다시 시도해 주세요.", - viewOrganization: "스페이스 보기", + viewOrganization: "공유 공간 보기", }, - leave: "스페이스 나가기", - leaveConfirm: "정말로 이 스페이스를 나가시겠습니까?", - leaveConfirmTitle: "스페이스 나가기", + leave: "공유 공간 나가기", + leaveConfirm: "정말로 이 공유 공간을 나가시겠습니까?", + leaveConfirmTitle: "공유 공간 나가기", leaveConfirmMessage: - '정말로 "{name}" 스페이스에서 나가시겠습니까? 로그아웃한 후에는 이 스페이스에서 공유하는 지식베이스에 액세스할 수 없습니다.', - leaveSuccess: "스페이스를 나갔습니다.", - leaveFailed: "스페이스를 종료하지 못했습니다.", - deleteConfirm: "정말로 이 스페이스를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.", - deleteConfirmTitle: "스페이스 삭제", + '정말로 "{name}" 공유 공간에서 나가시겠습니까? 나간 후에는 이 공유 공간에서 공유하는 지식베이스에 액세스할 수 없습니다.', + leaveSuccess: "공유 공간을 나갔습니다.", + leaveFailed: "공유 공간을 나가지 못했습니다.", + deleteConfirm: "정말로 이 공유 공간을 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.", + deleteConfirmTitle: "공유 공간 삭제", deleteConfirmMessage: - '"{name}" 스페이스를 삭제하시겠습니까? 삭제 후에는 모든 구성원이 제거되며 이 작업은 되돌릴 수 없습니다.', - deleteSuccess: "스페이스가 삭제되었습니다.", - deleteFailed: "스페이스를 삭제하지 못했습니다.", - createSuccess: "스페이스가 생성되었습니다.", - createFailed: "스페이스를 만들지 못했습니다.", - joinSuccess: "스페이스에 성공적으로 참여했습니다.", - joinFailed: "스페이스에 참여하지 못했습니다.", + '"{name}" 공유 공간을 삭제하시겠습니까? 삭제 후에는 모든 구성원이 제거되며 이 작업은 되돌릴 수 없습니다.', + deleteSuccess: "공유 공간이 삭제되었습니다.", + deleteFailed: "공유 공간을 삭제하지 못했습니다.", + createSuccess: "공유 공간이 생성되었습니다.", + createFailed: "공유 공간을 만들지 못했습니다.", + joinSuccess: "공유 공간에 성공적으로 참여했습니다.", + joinFailed: "공유 공간에 참여하지 못했습니다.", manageMembers: "회원관리", noMembers: "아직 회원이 없습니다.", members: { - listTitle: "스페이스 구성원", + listTitle: "공유 공간 구성원", searchPlaceholder: "구성원 검색…", loading: "구성원 로딩 중…", emptySearch: "「{q}」와(과) 일치하는 구성원이 없습니다", @@ -5227,18 +5227,18 @@ export default { roleUpdateFailed: "역할을 업데이트하지 못했습니다.", memberRemoved: "회원이 삭제되었습니다.", memberRemoveFailed: "구성원을 제거하지 못했습니다.", - empty: "아직 공유 스페이스에 참여하지 않았습니다.", - emptyDesc: "초대 코드를 사용하여 스페이스를 만들거나 기존 스페이스에 참여하세요.", + empty: "아직 공유 공간에 참여하지 않았습니다.", + emptyDesc: "초대 코드를 사용하여 공유 공간을 만들거나 기존 공유 공간에 참여하세요.", all: "모두", createdByMe: "내가 생성한", joinedByMe: "내가 참여한", createdTag: "생성", joinedTag: "참여", joinedLabel: "이미 가입했습니다", - emptyCreated: "아직 공유 스페이스를 만들지 않았습니다.", - emptyCreatedDesc: '새 스페이스를 만들려면 "스페이스 만들기"를 클릭하세요.', - emptyJoined: "아직 공유 스페이스에 참여하지 않았습니다.", - emptyJoinedDesc: "초대 코드를 통해 기존 스페이스에 참여하기", + emptyCreated: "아직 공유 공간를 만들지 않았습니다.", + emptyCreatedDesc: '새 공유 공간을 만들려면 "공유 공간 만들기"를 클릭하세요.', + emptyJoined: "아직 공유 공간에 참여하지 않았습니다.", + emptyJoinedDesc: "초대 코드를 통해 기존 공유 공간에 참여하기", role: { admin: "관리자", editor: "편집자", @@ -5250,34 +5250,34 @@ export default { removeMemberConfirm: '"{name}" 구성원을 삭제하시겠습니까?', removeMember: "회원 삭제", shareKBTip: - "지식베이스 목록에서 지식베이스를 선택하고 공유 버튼을 클릭하여 이 스페이스에 공유하세요.", + "지식베이스 목록에서 지식베이스를 선택하고 공유 버튼을 클릭하여 이 공유 공간에 공유하세요.", }, settings: { - editTitle: "스페이스 설정", - detailTitle: "스페이스 세부정보", - myRoleDesc: "이 스페이스에서의 귀하의 역할은 귀하의 권한 범위를 결정합니다.", + editTitle: "공유 공간 설정", + detailTitle: "공유 공간 세부정보", + myRoleDesc: "이 공유 공간에서의 귀하의 역할은 귀하의 권한 범위를 결정합니다.", membersDesc: "스페이스 구성원과 역할을 조회·관리합니다. 각 구성원은 하나의 워크스페이스를 의미하며, 같은 워크스페이스의 모든 사용자가 이 스페이스 접근 권한을 공유합니다.", permissionsIconHint: "역할별 권한 보기", - sharedDesc: "이 스페이스에 공유된 모든 지식베이스 보기", + sharedDesc: "이 공유 공간에 공유된 모든 지식베이스 보기", noSharedKB: "아직 공유 지식베이스가 없습니다.", noSharedKBTip: - "지식베이스 소유자는 지식베이스 설정에서 이 스페이스에 지식베이스를 공유할 수 있습니다.", + "지식베이스 소유자는 지식베이스 설정에서 이 공유 공간에 지식베이스를 공유할 수 있습니다.", sharedAgents: "공유 에이전트", noSharedAgents: "아직 공유 에이전트가 없습니다.", - sharedAgentsDesc: "이 스페이스에 공유되었으며 대화에서 구성원이 사용할 수 있는 에이전트", + sharedAgentsDesc: "이 공유 공간에 공유되었으며 대화에서 구성원이 사용할 수 있는 에이전트", sharedAgentsKbHint: - "에이전트에 바인딩된 지식베이스는 구성원이 에이전트를 사용하여 대화하는 경우(읽기 전용) {'@'}에만 사용할 수 있으며 \"지식베이스 목록\"에는 표시되지 않습니다. 회원들이 목록에 있는 지식베이스를 보거나 편집할 수 있도록 하려면 이 스페이스에 별도로 지식베이스를 공유해 주세요.", + "에이전트에 바인딩된 지식베이스는 구성원이 에이전트를 사용하여 대화하는 경우(읽기 전용) {'@'}에만 사용할 수 있으며 \"지식베이스 목록\"에는 표시되지 않습니다. 회원들이 목록에 있는 지식베이스를 보거나 편집할 수 있도록 하려면 이 공유 공간에 별도로 지식베이스를 공유해 주세요.", sharedAgentsKbHintShort: "에이전트 바인딩 지식은 대화 내에서만 읽을 수 있습니다. 목록에서 보거나 수정하고 싶으시면 지식베이스를 별도로 공유해주세요.", - noSharedAgentsTip: "관리자는 에이전트 설정에서 이 스페이스에 에이전트를 공유할 수 있습니다.", - sharePermissionLabel: "스페이스 허가", + noSharedAgentsTip: "관리자는 에이전트 설정에서 이 공유 공간에 에이전트를 공유할 수 있습니다.", + sharePermissionLabel: "공유 공간 권한", myPermissionLabel: "적용 권한", permissionCalcFormula: - "스페이스 권한은 공유 시 설정되며, 적용 권한은 스페이스 권한과 내 역할 중 낮은 값입니다", + "공유 공간 권한은 공유 시 설정되며, 적용 권한은 공유 공간 권한과 내 공유 공간 역할 중 낮은 값입니다", permissionCalcTip: - "적용 권한은 스페이스 권한과 내 역할 중 낮은 값이며, 읽기 전용 구성원은 이 지식베이스에 읽기만 가능합니다.", + "적용 권한은 공유 공간 권한과 내 공유 공간 역할 중 낮은 값이며, 읽기 전용 구성원은 이 지식베이스에 읽기만 가능합니다.", inviteMembers: "회원 초대", - inviteMembersDesc: "초대 코드 또는 링크를 통해 다른 사람을 스페이스에 초대하세요.", + inviteMembersDesc: "초대 코드 또는 링크를 통해 다른 사람을 공유 공간에 초대하세요.", inviteLink: "초대링크", inviteLinkValidity: "초대링크 유효기간", inviteLinkValidityDesc: @@ -5289,24 +5289,24 @@ export default { remainingValidity: "{n}일 남음", remainingValidityNever: "만료되지 않음", remainingValidityExpired: "만료됨", - removeShareFromOrg: "스페이스에서 제거", + removeShareFromOrg: "공유 공간에서 제거", removeShareConfirm: - '이 스페이스에서 "{name}"을(를) 제거하시겠습니까? 제거 후에는 스페이스 구성원이 더 이상 지식베이스에 액세스할 수 없습니다.', + '이 공유 공간에서 "{name}"을(를) 제거하시겠습니까? 제거 후에는 공유 공간 구성원이 더 이상 지식베이스에 액세스할 수 없습니다.', removeAgentShareConfirm: - '이 스페이스에서 "{name}"을(를) 제거하시겠습니까? 제거 후에는 스페이스 구성원이 더 이상 에이전트에 액세스할 수 없습니다.', - removeShareSuccess: "우주에서 제거됨", + '이 공유 공간에서 "{name}"을(를) 제거하시겠습니까? 제거 후에는 공유 공간 구성원이 더 이상 에이전트에 액세스할 수 없습니다.', + removeShareSuccess: "공유 공간에서 제거됨", removeShareFailed: "제거하지 못했습니다. 다시 시도해 주세요.", requireApproval: "검토 필요", requireApprovalDesc: "활성화되면 새 회원은 관리자의 검토를 받아야 합니다.", searchable: "공개 및 검색 가능", searchableDesc: - '오픈 후, "Join Space" 검색 목록에 해당 스페이스가 나타납니다. 다른 사람도 초대코드 없이 검색하여 가입신청을 할 수 있습니다.', + '오픈 후, "공유 공간 참여" 검색 목록에 해당 공유 공간이 나타납니다. 다른 사람도 초대코드 없이 검색하여 가입신청을 할 수 있습니다.', memberLimit: "최대 회원 수", memberLimitDesc: "한도를 초과한 후에는 새 회원을 추가할 수 없습니다. 제한 없이 0으로 설정", memberLimitPlaceholder: "0은 제한이 없음을 의미합니다.", memberLimitHint: "현재 회원 수: {count}", joinRequests: "가입 신청", - joinRequestsDesc: "스페이스에 참여하려면 신청서를 검토하세요.", + joinRequestsDesc: "공유 공간 참여 신청을 검토하세요.", noPendingRequests: "검토 대기중인 신청서가 없습니다.", pendingJoinRequestsBadge: "가입 신청 대기 중", pendingReview: "승인 대기 중", @@ -5325,39 +5325,39 @@ export default { editor: { navBasic: "기본정보", navPermissions: "권한 설명", - navJoin: "스페이스에 참여하기", + navJoin: "공유 공간에 참여하기", basicTitle: "기본정보", - basicDesc: "회원 식별이 용이하도록 스페이스의 이름과 설명을 설정합니다.", + basicDesc: "회원 식별이 용이하도록 공유 공간의 이름과 설명을 설정합니다.", nameTip: "구성원 식별이 용이하도록 팀 또는 프로젝트 이름 사용을 권장합니다.", - descriptionTip: "회원들이 스페이스를 이해할 수 있도록 스페이스의 목적과 목표를 설명합니다.", + descriptionTip: "회원들이 공유 공간을 이해할 수 있도록 공유 공간의 목적과 목표를 설명합니다.", permissionsTitle: "회원 권한", permissionsDesc: - "지식베이스와 에이전트를 통해 스페이스 내 다양한 ​​역할의 권한 범위를 이해합니다.", + "지식베이스와 에이전트를 통해 공유 공간 내 다양한 ​​역할의 권한 범위를 이해합니다.", permissionFeature: "권한 기능", fullAccess: "전체 권한", editAccess: "편집 권한", viewAccess: "읽기 전용 권한", - adminPerm1: "스페이스 설정, 구성원, 에이전트과의 지식베이스 공유를 관리하세요.", + adminPerm1: "공유 공간 설정, 구성원, 에이전트과의 지식베이스 공유를 관리하세요.", adminPerm2: "지식베이스와 에이전트 공유 및 관리", adminPerm3: "공유 지식베이스 콘텐츠 편집", adminPerm4: "지식베이스 보기 및 검색", useSharedAgentsPerm: "공유 에이전트 사용", - shareKBPerm: "지식베이스를 스페이스에 공유", + shareKBPerm: "지식베이스를 공유 공간에 공유", editorPerm1: "공유 지식베이스 콘텐츠 편집", editorPerm2: "지식베이스 보기 및 검색", - editorPerm3: "스페이스 설정 및 구성원 관리", + editorPerm3: "공유 공간 설정 및 구성원 관리", viewerPerm1: "지식베이스 보기 및 검색", viewerPerm2: "지식베이스 콘텐츠 편집", - viewerPerm3: "스페이스 설정 관리", + viewerPerm3: "공유 공간 설정 관리", ownerNote: - "스페이스 작성자로서 귀하는 자동으로 스페이스의 관리자가 되며 모든 권한을 갖게 됩니다.", - joinTitle: "스페이스에 참여하기", - joinDesc: "초대 코드를 통해 기존 스페이스에 참여하고 지식베이스 및 에이전트에 액세스하세요.", - joinIllustration: "스페이스 관리자가 제공한 초대 코드를 입력하여 참여하세요.", - inviteCodeTip: "초대코드는 스페이스 관리자가 생성한 것이므로 관리자에게 문의하세요.", + "공유 공간 작성자로서 귀하는 자동으로 공유 공간의 관리자가 되며 모든 권한을 갖게 됩니다.", + joinTitle: "공유 공간에 참여하기", + joinDesc: "초대 코드를 통해 기존 공유 공간에 참여하고 지식베이스 및 에이전트에 액세스하세요.", + joinIllustration: "공유 공간 관리자가 제공한 초대 코드를 입력하여 참여하세요.", + inviteCodeTip: "초대코드는 공유 공간 관리자가 생성한 것이므로 관리자에게 문의하세요.", howToGetCode: "초대코드는 어떻게 받나요?", - step1: "참여하려는 스페이스의 관리자에게 문의하세요.", - step2: "스페이스 초대 코드를 공유하도록 요청하세요.", + step1: "참여하려는 공유 공간의 관리자에게 문의하세요.", + step2: "공유 공간 초대 코드를 공유하도록 요청하세요.", step3: "위의 입력창에 초대코드를 붙여넣으세요", }, upgrade: { @@ -5377,12 +5377,12 @@ export default { addMember: { button: "회원 추가", dialogTitle: "회원 추가", - tip: "추가된 사용자는 즉시 스페이스 구성원이 되며, 스페이스에 공유된 지식베이스에 접근할 수 있습니다.", + tip: "추가된 사용자는 즉시 공유 공간 구성원이 되며, 공유 공간에 공유된 지식베이스에 접근할 수 있습니다.", tipTenant: "구성원의 최소 단위는 워크스페이스입니다: 한 워크스페이스가 가입하면 해당 워크스페이스의 모든 사용자가 이 스페이스 접근 권한을 공유합니다. 아래 결과는 워크스페이스 기준으로 중복 제거됩니다.", searchUser: "사용자 선택", searchTenant: "워크스페이스 선택", searchPlaceholder: "검색하려면 사용자 이름이나 이메일을 입력하세요..", - searchTenantPlaceholder: "워크스페이스 이름, 사용자 이름 또는 이메일로 검색...", + searchTenantPlaceholder: "워크스페이스 이름으로 검색...", searchHint: "검색을 시작하려면 2자 이상 입력하세요.", searchTenantHint: "2자 이상 입력하세요. 결과는 워크스페이스 기준으로 중복 제거되며 이미 가입한 워크스페이스는 제외됩니다.", selectRole: "역할 할당", @@ -5396,16 +5396,16 @@ export default { }, }, share: { - title: "스페이스에 공유", - shareToSpace: "스페이스에 공유", - shareModelToSpace: '"{name}"을 스페이스에 공유', - shareAgentToSpace: '"{name}"을 스페이스에 공유', - modelShareDesc: "스페이스 구성원이 모델을 사용할 수 있도록 모델을 스페이스에 공유합니다.", + title: "공유 공간에 공유", + shareToSpace: "공유 공간에 공유", + shareModelToSpace: '"{name}"을 공유 공간에 공유', + shareAgentToSpace: '"{name}"을 공유 공간에 공유', + modelShareDesc: "공유 공간 구성원이 모델을 사용할 수 있도록 모델을 공유 공간에 공유합니다.", agentShareDesc: - "스페이스 구성원이 에이전트를 사용할 수 있도록 에이전트를 스페이스에 공유합니다.", - spaceAgentShareCountTip: "스페이스에 있는 공유 에이전트 수", - selectOrg: "스페이스 선택", - selectOrgPlaceholder: "공유할 스페이스를 선택해주세요", + "공유 공간 구성원이 에이전트를 사용할 수 있도록 에이전트를 공유 공간에 공유합니다.", + spaceAgentShareCountTip: "공유 공간에 있는 공유 에이전트 수", + selectOrg: "공유 공간 선택", + selectOrgPlaceholder: "공유할 공유 공간을 선택해주세요", permission: "권한", permissionTip: "편집 가능한 권한을 통해 구성원은 지식베이스 콘텐츠를 수정할 수 있으며, 읽기 전용 권한은 검색 및 Q&A만 허용합니다.", @@ -5414,14 +5414,14 @@ export default { unshareSuccess: "공유되지 않음", unshareFailed: "공유를 취소하지 못했습니다.", sharedTo: "공유된 스페이스", - noShares: "아직 어떤 스페이스에도 공유되지 않았습니다.", - searchPlaceholder: "스페이스 검색…", + noShares: "아직 어떤 공유 공간에도 공유되지 않았습니다.", + searchPlaceholder: "공유 공간 검색…", loading: "로딩 중…", - emptySearch: "「{q}」와(과) 일치하는 스페이스가 없습니다", - addShareDialogTitle: "스페이스에 공유", + emptySearch: "「{q}」와(과) 일치하는 공유 공간이 없습니다", + addShareDialogTitle: "공유 공간에 공유", unshareAction: "공유 해제", columns: { - space: "스페이스", + space: "공유 공간", permission: "권한", sharedAt: "공유 시간", operations: "작업", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index adebc4d2..54440014 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -5712,18 +5712,18 @@ export default { organization: { title: 'Shared Spaces', subtitle: 'Create or join shared spaces so multiple workspaces can collaborate and share knowledge bases and agents', - createOrg: 'Create Space', + createOrg: 'Создать общее пространство', createOrgShort: 'New', - joinOrg: 'Join Space', + joinOrg: 'Присоединиться к общему пространству', joinOrgShort: 'Join', - name: 'Space Name', - namePlaceholder: 'Enter space name', - nameRequired: 'Please enter space name', - avatar: 'Space Avatar', + name: 'Название общего пространства', + namePlaceholder: 'Введите название общего пространства', + nameRequired: 'Введите название общего пространства', + avatar: 'Аватар общего пространства', avatarClear: 'Clear', - avatarPickerHint: 'Choose an emoji as space avatar', - description: 'Description', - descriptionPlaceholder: 'Enter space description (optional)', + avatarPickerHint: 'Выберите эмодзи в качестве аватара общего пространства', + description: 'Описание общего пространства', + descriptionPlaceholder: 'Введите описание общего пространства (необязательно)', noDescription: 'No description', members: 'members', memberCount: 'Member count', @@ -5731,7 +5731,7 @@ export default { inviteCode: 'Invite Code', inviteCodePlaceholder: 'Enter invite code', inviteCodeRequired: 'Please enter invite code', - inviteCodeTip: 'Share this invite code with others to let them join your space', + inviteCodeTip: 'Поделитесь этим кодом приглашения с другими, чтобы они могли присоединиться к общему пространству', refreshInviteCode: 'Refresh Invite Code', inviteCodeRefreshed: 'Invite code refreshed', inviteCodeRefreshFailed: 'Failed to refresh invite code', @@ -5743,36 +5743,36 @@ export default { cannotManage: 'Недостаточно прав в текущем пространстве для управления общим пространством', }, join: { - title: 'Join Space', - joining: 'Joining space...', - success: 'Successfully joined space!', - failed: 'Failed to join space', + title: 'Присоединиться к общему пространству', + joining: 'Присоединение к общему пространству...', + success: 'Вы успешно присоединились к общему пространству!', + failed: 'Не удалось присоединиться к общему пространству', noCode: 'Invite code not found', - goToOrganizations: 'Go to Spaces', - confirmTitle: 'Confirm Join Space', + goToOrganizations: 'Перейти к списку общих пространств', + confirmTitle: 'Подтвердите присоединение к общему пространству', confirm: 'Confirm Join', preview: 'Preview & Join', memberCount: '{count} members', shareCount: '{count} shared knowledge bases', agentShareCount: '{count} agents', - alreadyMember: 'You are already a member of this space', + alreadyMember: 'Вы уже являетесь участником этого общего пространства', invalidCode: 'Invalid invite code', byInviteCode: 'Enter invite code', - searchSpaces: 'Search spaces', - searchSpacesDesc: 'Browse or search spaces that are open for discovery; join without an invite code', - searchSpacesPlaceholder: 'Search by space name, description or space ID', - spaceId: 'Space ID', - noSearchResult: 'No matching spaces', - noSearchableSpaces: 'No discoverable spaces yet, or try a search', + searchSpaces: 'Поиск общих пространств', + searchSpacesDesc: 'Просматривайте или ищите открытые для поиска общие пространства и присоединяйтесь к ним без кода приглашения', + searchSpacesPlaceholder: 'Поиск по названию, описанию или ID общего пространства', + spaceId: 'ID общего пространства', + noSearchResult: 'Подходящие общие пространства не найдены', + noSearchableSpaces: 'Пока нет открытых для поиска общих пространств, или введите ключевые слова для поиска', membersWithLimit: '{current}/{limit} members', memberLimitReached: 'Full', backToSearch: 'Back to search' }, invite: { loading: 'Loading...', - previewTitle: 'Join Space', - previewInfo: 'Space Overview', - inputDesc: 'Enter the invite code (or paste from an invite link) to view the space and join', + previewTitle: 'Присоединиться к общему пространству', + previewInfo: 'Обзор общего пространства', + inputDesc: 'Введите код приглашения (или вставьте его из ссылки-приглашения), чтобы просмотреть информацию об общем пространстве и присоединиться', previewAction: 'View', primaryJoin: 'Join', invalidTitle: 'Invalid Invitation', @@ -5781,10 +5781,10 @@ export default { members: 'Members', knowledgeBases: 'Knowledge Bases', agents: 'Agents', - alreadyMember: 'You are already a member of this space', + alreadyMember: 'Вы уже являетесь участником этого общего пространства', confirmJoin: 'Confirm Join', submitRequest: 'Request to Join', - requireApprovalTip: 'This space requires admin approval to join', + requireApprovalTip: 'Для присоединения к этому общему пространству требуется одобрение администратора', approvalLabel: 'Join method', needApproval: 'Requires approval', noApproval: 'No approval required', @@ -5793,31 +5793,31 @@ export default { selectRole: 'Select role', messagePlaceholder: 'Optional: message (e.g. intro or reason to join)', applicationNote: 'Application note (optional)', - joinSuccess: 'Successfully joined space!', + joinSuccess: 'Вы успешно присоединились к общему пространству!', joinFailed: 'Failed to join, please try again', requestSubmitted: 'Request submitted, please wait for admin approval', requestFailed: 'Failed to submit request, please try again', - viewOrganization: 'View Space' + viewOrganization: 'Просмотреть общее пространство' }, - leave: 'Leave Space', - leaveConfirm: 'Are you sure you want to leave this space?', - leaveConfirmTitle: 'Leave Space', - leaveConfirmMessage: 'Are you sure you want to leave "{name}"? You will lose access to shared knowledge bases.', - leaveSuccess: 'Left space successfully', - leaveFailed: 'Failed to leave space', - deleteConfirm: 'Are you sure you want to delete this space? This action cannot be undone.', - deleteConfirmTitle: 'Delete Space', - deleteConfirmMessage: 'Are you sure you want to delete "{name}"? All members will be removed. This action cannot be undone.', - deleteSuccess: 'Space deleted', - deleteFailed: 'Failed to delete space', - createSuccess: 'Space created successfully', - createFailed: 'Failed to create space', - joinSuccess: 'Joined space successfully', - joinFailed: 'Failed to join space', + leave: 'Покинуть общее пространство', + leaveConfirm: 'Вы уверены, что хотите покинуть это общее пространство?', + leaveConfirmTitle: 'Покинуть общее пространство', + leaveConfirmMessage: 'Вы уверены, что хотите покинуть общее пространство «{name}»? После выхода вы потеряете доступ к базам знаний, которыми поделились в этом общем пространстве.', + leaveSuccess: 'Вы покинули общее пространство', + leaveFailed: 'Не удалось покинуть общее пространство', + deleteConfirm: 'Вы уверены, что хотите удалить это общее пространство? Это действие необратимо.', + deleteConfirmTitle: 'Удалить общее пространство', + deleteConfirmMessage: 'Вы уверены, что хотите удалить общее пространство «{name}»? Все участники будут удалены. Это действие необратимо.', + deleteSuccess: 'Общее пространство удалено', + deleteFailed: 'Не удалось удалить общее пространство', + createSuccess: 'Общее пространство успешно создано', + createFailed: 'Не удалось создать общее пространство', + joinSuccess: 'Вы успешно присоединились к общему пространству', + joinFailed: 'Не удалось присоединиться к общему пространству', manageMembers: 'Manage Members', noMembers: 'No members', members: { - listTitle: 'Space members', + listTitle: 'Участники общего пространства', searchPlaceholder: 'Search members…', loading: 'Loading members…', emptySearch: 'No members matching "{q}"', @@ -5861,18 +5861,18 @@ export default { roleUpdateFailed: 'Failed to update role', memberRemoved: 'Member removed', memberRemoveFailed: 'Failed to remove member', - empty: 'You have not joined any shared space yet', - emptyDesc: 'Create a space or join an existing one with an invite code', + empty: 'Вы ещё не присоединились ни к одному общему пространству', + emptyDesc: 'Создайте общее пространство или присоединитесь к существующему по коду приглашения', all: 'All', createdByMe: 'Created by me', joinedByMe: 'Joined', createdTag: 'Created', joinedTag: 'Joined', joinedLabel: 'Joined', - emptyCreated: 'You have not created any space yet', - emptyCreatedDesc: 'Click "Create Space" to create one', - emptyJoined: 'You have not joined any space yet', - emptyJoinedDesc: 'Join an existing space with an invite code', + emptyCreated: 'Вы ещё не создали ни одного общего пространства', + emptyCreatedDesc: 'Нажмите «Создать общее пространство», чтобы создать новое', + emptyJoined: 'Вы ещё не присоединились ни к одному общему пространству', + emptyJoinedDesc: 'Присоединитесь к существующему общему пространству по коду приглашения', role: { admin: 'Admin', editor: 'Editor', @@ -5883,29 +5883,29 @@ export default { removeMemberTitle: 'Remove Member', removeMemberConfirm: 'Are you sure you want to remove "{name}"?', removeMember: 'Remove Member', - shareKBTip: 'Go to knowledge base list, select a knowledge base and click share to share it to this space' + shareKBTip: 'В списке баз знаний выберите базу знаний и нажмите кнопку «Поделиться», чтобы поделиться ею в этом общем пространстве' }, settings: { - editTitle: 'Space Settings', - detailTitle: 'Space Details', - myRoleDesc: 'Your role in this space determines your permissions', + editTitle: 'Настройки общего пространства', + detailTitle: 'Сведения об общем пространстве', + myRoleDesc: 'Ваша роль в этом общем пространстве определяет объём ваших прав', membersDesc: 'Просмотр и управление участниками пространства и их ролями. Каждый участник представляет одно рабочее пространство: все его пользователи получают одинаковый доступ к общему пространству.', permissionsIconHint: 'Просмотр прав по ролям', - sharedDesc: 'View all knowledge bases shared to this space', + sharedDesc: 'Просмотр всех баз знаний, которыми поделились в этом общем пространстве', noSharedKB: 'No shared knowledge bases yet', - noSharedKBTip: 'Knowledge base owners can share their knowledge bases to this space in KB settings', + noSharedKBTip: 'Владельцы баз знаний могут поделиться ими в этом общем пространстве в настройках базы знаний', sharedAgents: 'Shared Agents', noSharedAgents: 'No shared agents yet', - sharedAgentsDesc: 'Agents shared to this space; members can use them in chat', - sharedAgentsKbHint: "Knowledge bases linked to an agent are only available (read-only) when members use that agent in a conversation (via {'@'}). They do not appear in the Knowledge Base list. To let members see or edit a knowledge base in the list, share that knowledge base to this space separately.", + sharedAgentsDesc: 'Агенты, которыми поделились в этом общем пространстве; участники могут использовать их в чате', + sharedAgentsKbHint: "Базы знаний, привязанные к агенту, доступны (только для чтения) лишь когда участники используют этого агента в разговоре (через {'@'}). Они не отображаются в «Списке баз знаний». Чтобы участники могли видеть или редактировать базу знаний в списке, поделитесь этой базой знаний в этом общем пространстве отдельно.", sharedAgentsKbHintShort: 'Agent-linked knowledge is read-only in chat; share the KB to this space if members should see or edit it in the list.', - noSharedAgentsTip: 'Admins can share agents to this space from agent settings', - sharePermissionLabel: 'Space permission', + noSharedAgentsTip: 'Администраторы могут поделиться агентами в этом общем пространстве из настроек агента', + sharePermissionLabel: 'Права в общем пространстве', myPermissionLabel: 'Effective', - permissionCalcFormula: 'Space permission is set when sharing; effective permission is the lower of that and your space role', - permissionCalcTip: 'Effective permission is the lower of space permission and your role here; viewers get at most read-only on this KB.', + permissionCalcFormula: 'Права в общем пространстве задаются при предоставлении доступа; действующие права — это меньшее из прав в общем пространстве и вашей роли в общем пространстве', + permissionCalcTip: 'Действующие права — это меньшее из прав в общем пространстве и вашей роли в нём; участники с ролью «только чтение» получают не более чем доступ на чтение к этой базе знаний.', inviteMembers: 'Invite Members', - inviteMembersDesc: 'Invite others to join the space via code or link', + inviteMembersDesc: 'Приглашайте других присоединиться к общему пространству по коду или ссылке', inviteLink: 'Invite Link', inviteLinkValidity: 'Invite link validity', inviteLinkValidityDesc: 'Validity period for newly generated invite links', @@ -5916,21 +5916,21 @@ export default { remainingValidity: 'Expires in {n} days', remainingValidityNever: 'Never expire', remainingValidityExpired: 'Expired', - removeShareFromOrg: 'Remove from space', - removeShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this knowledge base.', - removeAgentShareConfirm: 'Remove "{name}" from this space? Members will no longer have access to this agent.', - removeShareSuccess: 'Removed from space', + removeShareFromOrg: 'Удалить из общего пространства', + removeShareConfirm: 'Удалить «{name}» из этого общего пространства? После удаления участники общего пространства потеряют доступ к этой базе знаний.', + removeAgentShareConfirm: 'Удалить «{name}» из этого общего пространства? После удаления участники общего пространства потеряют доступ к этому агенту.', + removeShareSuccess: 'Удалено из общего пространства', removeShareFailed: 'Failed to remove, please try again', requireApproval: 'Require Approval', requireApprovalDesc: 'When enabled, new members need admin approval to join', searchable: 'Open for search', - searchableDesc: 'When enabled, this space appears in the "Join Space" search list; others can search and request to join without an invite code', + searchableDesc: 'Когда включено, общее пространство появляется в списке поиска «Присоединиться к общему пространству»; другие могут находить его и подавать заявку на вступление без кода приглашения', memberLimit: 'Member limit', memberLimitDesc: 'No new members can be added when the limit is reached; 0 means unlimited', memberLimitPlaceholder: '0 = unlimited', memberLimitHint: 'Current members: {count}', joinRequests: 'Join Requests', - joinRequestsDesc: 'Review pending requests to join the space', + joinRequestsDesc: 'Рассмотрение заявок на вступление в общее пространство', noPendingRequests: 'No pending requests', pendingJoinRequestsBadge: 'Pending join requests to review', pendingReview: 'Pending', @@ -5949,37 +5949,37 @@ export default { editor: { navBasic: 'Basic Info', navPermissions: 'Permissions', - navJoin: 'Join Space', + navJoin: 'Присоединиться к общему пространству', basicTitle: 'Basic Information', - basicDesc: 'Set the space name and description for easy identification', + basicDesc: 'Задайте название и описание общего пространства, чтобы участникам было легче его узнавать', nameTip: 'Use your team or project name for easy identification', - descriptionTip: 'Describe the purpose and goals of the space', + descriptionTip: 'Опишите назначение и цели общего пространства, чтобы участники лучше его понимали', permissionsTitle: 'Member Permissions', - permissionsDesc: 'Understand the permission scope of different roles for knowledge bases and agents in the space', + permissionsDesc: 'Узнайте объём прав разных ролей на базы знаний и агентов в общем пространстве', permissionFeature: 'Permission Feature', fullAccess: 'Full Access', editAccess: 'Edit Access', viewAccess: 'View Only', - adminPerm1: 'Manage space settings, members, and knowledge base & agent sharing', + adminPerm1: 'Управление настройками общего пространства, участниками и общим доступом к базам знаний и агентам', adminPerm2: 'Share and manage knowledge bases and agents', adminPerm3: 'Edit shared knowledge base content', adminPerm4: 'View and search knowledge bases', useSharedAgentsPerm: 'Use shared agents', - shareKBPerm: 'Share knowledge bases to space', + shareKBPerm: 'Предоставлять доступ к базам знаний в общем пространстве', editorPerm1: 'Edit shared knowledge base content', editorPerm2: 'View and search knowledge bases', - editorPerm3: 'Manage space settings and members', + editorPerm3: 'Управление настройками и участниками общего пространства', viewerPerm1: 'View and search knowledge bases', viewerPerm2: 'Edit knowledge base content', - viewerPerm3: 'Manage space settings', - ownerNote: 'As the space creator, you will automatically become an admin with full permissions.', - joinTitle: 'Join Space', - joinDesc: 'Join an existing space with an invite code to access shared knowledge bases and agents', - joinIllustration: 'Enter the invite code provided by the space admin to join', - inviteCodeTip: 'The invite code is generated by space admins, please ask them for it', + viewerPerm3: 'Управление настройками общего пространства', + ownerNote: 'Как создатель общего пространства, вы автоматически становитесь администратором с полными правами.', + joinTitle: 'Присоединиться к общему пространству', + joinDesc: 'Присоединитесь к существующему общему пространству по коду приглашения, чтобы получить доступ к базам знаний и агентам', + joinIllustration: 'Введите код приглашения, предоставленный администратором общего пространства, чтобы присоединиться', + inviteCodeTip: 'Код приглашения создаётся администраторами общего пространства, запросите его у них', howToGetCode: 'How to get an invite code?', - step1: 'Contact the admin of the space you want to join', - step2: 'Ask them to share the space invite code', + step1: 'Свяжитесь с администратором общего пространства, к которому хотите присоединиться', + step2: 'Попросите их поделиться кодом приглашения общего пространства', step3: 'Paste the invite code in the input field above' }, upgrade: { @@ -5999,12 +5999,12 @@ export default { addMember: { button: 'Add Member', dialogTitle: 'Add Member', - tip: 'Added users will immediately become space members and can access shared knowledge bases.', + tip: 'Добавленные пользователи сразу станут участниками общего пространства и получат доступ к базам знаний, которыми поделились в общем пространстве.', tipTenant: 'Членство задаётся на уровне пространства: после присоединения пространства все его пользователи получают доступ к этому пространству. Результаты ниже сгруппированы по пространству.', searchUser: 'Select User', searchTenant: 'Выбрать пространство', searchPlaceholder: 'Search by username or email...', - searchTenantPlaceholder: 'Поиск по имени пространства, пользователя или email...', + searchTenantPlaceholder: 'Поиск по имени пространства...', searchHint: 'Type at least 2 characters to search', searchTenantHint: 'Введите не менее 2 символов; результаты сгруппированы по пространству и не включают уже добавленных.', selectRole: 'Assign Role', @@ -6018,15 +6018,15 @@ export default { } }, share: { - title: 'Share Knowledge Base', - shareToSpace: 'Share to space', - shareModelToSpace: 'Share "{name}" to space', - shareAgentToSpace: 'Share "{name}" to space', - modelShareDesc: 'Share this model to a space so members can use it', - agentShareDesc: 'Share this agent to a space so members can use it', - spaceAgentShareCountTip: 'Number of agents shared to this space', - selectOrg: 'Select Space', - selectOrgPlaceholder: 'Select a space to share with', + title: 'Поделиться в общем пространстве', + shareToSpace: 'Поделиться в общем пространстве', + shareModelToSpace: 'Поделиться «{name}» в общем пространстве', + shareAgentToSpace: 'Поделиться «{name}» в общем пространстве', + modelShareDesc: 'Поделитесь моделью в общем пространстве, чтобы участники общего пространства могли её использовать', + agentShareDesc: 'Поделитесь агентом в общем пространстве, чтобы участники общего пространства могли его использовать', + spaceAgentShareCountTip: 'Количество агентов, которыми поделились в этом общем пространстве', + selectOrg: 'Выберите общее пространство', + selectOrgPlaceholder: 'Выберите общее пространство для предоставления доступа', permission: 'Permission', permissionTip: 'Editable permission allows members to modify knowledge base content, Read-only permission only allows search and Q&A', shareSuccess: 'Knowledge base shared', @@ -6034,14 +6034,14 @@ export default { unshareSuccess: 'Share cancelled', unshareFailed: 'Failed to cancel share', sharedTo: 'Shared to', - noShares: 'Not shared to any space yet', - searchPlaceholder: 'Search spaces…', + noShares: 'Пока не предоставлен доступ ни в одном общем пространстве', + searchPlaceholder: 'Поиск общих пространств…', loading: 'Loading…', - emptySearch: 'No spaces matching "{q}"', - addShareDialogTitle: 'Share to space', + emptySearch: 'Не найдено общих пространств по запросу «{q}»', + addShareDialogTitle: 'Поделиться в общем пространстве', unshareAction: 'Remove share', columns: { - space: 'Space', + space: 'Общее пространство', permission: 'Permission', sharedAt: 'Shared', operations: 'Actions', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 3f1bbe7a..56e9268f 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -5123,26 +5123,25 @@ export default { organization: { title: "共享空间", subtitle: "创建或加入共享空间,让多个空间互相协作,共享知识库与智能体", - createOrg: "创建空间", + createOrg: "创建共享空间", createOrgShort: "新建", - joinOrg: "加入空间", + joinOrg: "加入共享空间", joinOrgShort: "加入", - name: "空间名称", - namePlaceholder: "请输入空间名称", - nameRequired: "请输入空间名称", - avatar: "空间头像", + name: "共享空间名称", + namePlaceholder: "请输入共享空间名称", + nameRequired: "请输入共享空间名称", + avatar: "共享空间头像", avatarClear: "清除", - avatarPickerHint: "选择 Emoji 作为空间头像", - description: "空间描述", - descriptionPlaceholder: "请输入空间描述(选填)", + avatarPickerHint: "选择 Emoji 作为共享空间头像", + description: "共享空间描述", + descriptionPlaceholder: "请输入共享空间描述(选填)", noDescription: "暂无描述", - members: "成员", memberCount: "成员数量", owner: "创建者", inviteCode: "邀请码", inviteCodePlaceholder: "请输入邀请码", inviteCodeRequired: "请输入邀请码", - inviteCodeTip: "分享此邀请码给他人,他们可以通过邀请码加入空间", + inviteCodeTip: "分享此邀请码给他人,他们可以通过邀请码加入共享空间", refreshInviteCode: "刷新邀请码", inviteCodeRefreshed: "邀请码已刷新", inviteCodeRefreshFailed: "刷新邀请码失败", @@ -5154,36 +5153,36 @@ export default { cannotManage: "当前空间角色不足,无法管理共享空间", }, join: { - title: "加入空间", - joining: "正在加入空间...", - success: "成功加入空间!", - failed: "加入空间失败", + title: "加入共享空间", + joining: "正在加入共享空间...", + success: "成功加入共享空间!", + failed: "加入共享空间失败", noCode: "未找到邀请码", - goToOrganizations: "前往空间列表", - confirmTitle: "确认加入空间", + goToOrganizations: "前往共享空间列表", + confirmTitle: "确认加入共享空间", confirm: "确认加入", preview: "预览并加入", memberCount: "{count} 个成员", shareCount: "{count} 个共享知识库", agentShareCount: "{count} 个智能体", - alreadyMember: "您已经是该空间的成员", + alreadyMember: "您已经是该共享空间的成员", invalidCode: "无效的邀请码", byInviteCode: "输入邀请码", - searchSpaces: "搜索空间", - searchSpacesDesc: "浏览或搜索已开放可被搜索的空间,无需邀请码即可加入", - searchSpacesPlaceholder: "按空间名称、描述或空间ID搜索", - spaceId: "空间ID", - noSearchResult: "未找到匹配的空间", - noSearchableSpaces: "暂无开放可被搜索的空间,或输入关键词搜索", + searchSpaces: "搜索共享空间", + searchSpacesDesc: "浏览或搜索已开放可被搜索的共享空间,无需邀请码即可加入", + searchSpacesPlaceholder: "按共享空间名称、描述或 ID 搜索", + spaceId: "共享空间ID", + noSearchResult: "未找到匹配的共享空间", + noSearchableSpaces: "暂无开放可被搜索的共享空间,或输入关键词搜索", membersWithLimit: "{current}/{limit} 成员", memberLimitReached: "成员已满", backToSearch: "返回搜索", }, invite: { loading: "加载中...", - previewTitle: "加入空间", - previewInfo: "空间概览", - inputDesc: "输入邀请码或粘贴邀请链接中的邀请码,查看空间信息后加入", + previewTitle: "加入共享空间", + previewInfo: "共享空间概览", + inputDesc: "输入邀请码或粘贴邀请链接中的邀请码,查看共享空间信息后加入", previewAction: "查看", primaryJoin: "加入", invalidTitle: "无效邀请", @@ -5192,10 +5191,10 @@ export default { members: "成员", knowledgeBases: "知识库", agents: "智能体", - alreadyMember: "您已经是该空间的成员", + alreadyMember: "您已经是该共享空间的成员", confirmJoin: "确认加入", submitRequest: "申请加入", - requireApprovalTip: "该空间需要管理员审核后才能加入", + requireApprovalTip: "该共享空间需要管理员审核后才能加入", approvalLabel: "加入方式", needApproval: "需要审核", noApproval: "无需审核", @@ -5204,31 +5203,31 @@ export default { selectRole: "选择角色", messagePlaceholder: "选填:申请说明(如自我介绍或加入原因)", applicationNote: "申请说明(选填)", - joinSuccess: "成功加入空间!", + joinSuccess: "成功加入共享空间!", joinFailed: "加入失败,请稍后重试", requestSubmitted: "申请已提交,请等待管理员审核", requestFailed: "申请提交失败,请稍后重试", - viewOrganization: "查看空间", + viewOrganization: "查看共享空间", }, - leave: "退出空间", - leaveConfirm: "确定要退出该空间吗?", - leaveConfirmTitle: "退出空间", - leaveConfirmMessage: "确定要退出空间「{name}」吗?退出后将无法访问该空间共享的知识库。", - leaveSuccess: "已退出空间", - leaveFailed: "退出空间失败", - deleteConfirm: "确定要删除该空间吗?此操作不可撤销。", - deleteConfirmTitle: "删除空间", - deleteConfirmMessage: "确定要删除空间「{name}」吗?删除后所有成员将被移除,此操作不可撤销。", - deleteSuccess: "空间已删除", - deleteFailed: "删除空间失败", - createSuccess: "空间创建成功", - createFailed: "创建空间失败", - joinSuccess: "成功加入空间", - joinFailed: "加入空间失败", + leave: "退出共享空间", + leaveConfirm: "确定要退出该共享空间吗?", + leaveConfirmTitle: "退出共享空间", + leaveConfirmMessage: "确定要退出共享空间「{name}」吗?退出后将无法访问该共享空间共享的知识库。", + leaveSuccess: "已退出共享空间", + leaveFailed: "退出共享空间失败", + deleteConfirm: "确定要删除该共享空间吗?此操作不可撤销。", + deleteConfirmTitle: "删除共享空间", + deleteConfirmMessage: "确定要删除共享空间「{name}」吗?删除后所有成员将被移除,此操作不可撤销。", + deleteSuccess: "共享空间已删除", + deleteFailed: "删除共享空间失败", + createSuccess: "共享空间创建成功", + createFailed: "创建共享空间失败", + joinSuccess: "成功加入共享空间", + joinFailed: "加入共享空间失败", manageMembers: "成员管理", noMembers: "暂无成员", members: { - listTitle: "空间成员", + listTitle: "共享空间成员", searchPlaceholder: "搜索成员…", loading: "加载成员中…", emptySearch: "未找到匹配「{q}」的成员", @@ -5273,7 +5272,7 @@ export default { memberRemoved: "成员已移除", memberRemoveFailed: "移除成员失败", empty: "您还没有加入任何共享空间", - emptyDesc: "创建一个空间或通过邀请码加入现有空间", + emptyDesc: "创建一个共享空间或通过邀请码加入现有共享空间", all: "全部", createdByMe: "我创建的", joinedByMe: "我加入的", @@ -5281,9 +5280,9 @@ export default { joinedTag: "加入", joinedLabel: "已加入", emptyCreated: "您还没有创建任何共享空间", - emptyCreatedDesc: "点击「创建空间」创建一个新空间", + emptyCreatedDesc: "点击「创建共享空间」创建一个新的共享空间", emptyJoined: "您还没有加入任何共享空间", - emptyJoinedDesc: "通过邀请码加入现有空间", + emptyJoinedDesc: "通过邀请码加入现有共享空间", role: { admin: "管理员", editor: "编辑", @@ -5294,29 +5293,29 @@ export default { removeMemberTitle: "移除成员", removeMemberConfirm: "确定要移除成员「{name}」吗?", removeMember: "移除成员", - shareKBTip: "在知识库列表中选择知识库,点击共享按钮将其共享到此空间", + shareKBTip: "在知识库列表中选择知识库,点击共享按钮将其共享到此共享空间", }, settings: { - editTitle: "空间设置", - detailTitle: "空间详情", - myRoleDesc: "您在此空间中的角色决定了您的权限范围", + editTitle: "共享空间设置", + detailTitle: "共享空间详情", + myRoleDesc: "您在此共享空间中的角色决定了您的权限范围", membersDesc: "查看和管理共享空间成员、调整成员角色。成员的最小单位是空间——加入后该空间下的所有用户都将获得访问权限。", permissionsIconHint: "查看各角色权限说明", - sharedDesc: "查看共享到此空间的所有知识库", + sharedDesc: "查看共享到此共享空间的所有知识库", noSharedKB: "暂无共享的知识库", - noSharedKBTip: "知识库拥有者可以在知识库设置中将其共享到此空间", + noSharedKBTip: "知识库拥有者可以在知识库设置中将其共享到此共享空间", sharedAgents: "共享智能体", noSharedAgents: "暂无共享的智能体", - sharedAgentsDesc: "已共享到本空间的智能体,成员可在对话中使用", - sharedAgentsKbHint: "智能体绑定的知识库仅在成员使用该智能体对话时可 {'@'} 使用(只读),不会出现在「知识库列表」中。若需成员在列表中看到或编辑知识库,请单独将知识库共享到本空间。", + sharedAgentsDesc: "已共享到本共享空间的智能体,成员可在对话中使用", + sharedAgentsKbHint: "智能体绑定的知识库仅在成员使用该智能体对话时可 {'@'} 使用(只读),不会出现在「知识库列表」中。若需成员在列表中看到或编辑知识库,请单独将知识库共享到本共享空间。", sharedAgentsKbHintShort: "智能体绑定知识仅对话内只读;需在列表看到或编辑请单独共享知识库", - noSharedAgentsTip: "管理员可将智能体从智能体设置中共享到本空间", - sharePermissionLabel: "空间权限", + noSharedAgentsTip: "管理员可将智能体从智能体设置中共享到本共享空间", + sharePermissionLabel: "共享空间权限", myPermissionLabel: "生效权限", - permissionCalcFormula: "空间权限为共享时设定;生效权限取空间权限与你的空间角色中较低值", - permissionCalcTip: "生效权限取空间权限与你的空间角色中较低值;只读成员对此库最多只读。", + permissionCalcFormula: "共享空间权限为共享时设定;生效权限取共享空间权限与你的共享空间角色中较低值", + permissionCalcTip: "生效权限取共享空间权限与你的共享空间角色中较低值;只读成员对此库最多只读。", inviteMembers: "邀请成员", - inviteMembersDesc: "通过邀请码或链接邀请他人加入空间", + inviteMembersDesc: "通过邀请码或链接邀请他人加入共享空间", inviteLink: "邀请链接", inviteLinkValidity: "邀请链接有效期", inviteLinkValidityDesc: "新生成的邀请链接的有效期,仅影响之后刷新生成的链接", @@ -5327,21 +5326,21 @@ export default { remainingValidity: "剩余 {n} 天", remainingValidityNever: "永不过期", remainingValidityExpired: "已过期", - removeShareFromOrg: "从空间中移除", - removeShareConfirm: "确定将「{name}」从本空间中移除?移除后空间成员将无法再访问该知识库。", - removeAgentShareConfirm: "确定将「{name}」从本空间中移除?移除后空间成员将无法再访问该智能体。", - removeShareSuccess: "已从空间中移除", + removeShareFromOrg: "从共享空间中移除", + removeShareConfirm: "确定将「{name}」从本共享空间中移除?移除后共享空间成员将无法再访问该知识库。", + removeAgentShareConfirm: "确定将「{name}」从本共享空间中移除?移除后共享空间成员将无法再访问该智能体。", + removeShareSuccess: "已从共享空间中移除", removeShareFailed: "移除失败,请重试", requireApproval: "需要审核", requireApprovalDesc: "开启后,新成员加入需要管理员审核", searchable: "开放可被搜索", - searchableDesc: "开启后,空间将出现在「加入空间」的搜索列表中,他人可搜索并申请加入,无需邀请码", + searchableDesc: "开启后,共享空间将出现在「加入共享空间」的搜索列表中,他人可搜索并申请加入,无需邀请码", memberLimit: "成员数量上限", memberLimitDesc: "超过上限后无法再添加新成员;设为 0 表示不限制", memberLimitPlaceholder: "0 表示不限制", memberLimitHint: "当前成员数:{count}", joinRequests: "加入申请", - joinRequestsDesc: "审核待加入空间的申请", + joinRequestsDesc: "审核待加入共享空间的申请", noPendingRequests: "暂无待审核的申请", pendingJoinRequestsBadge: "有待审批的加入申请", pendingReview: "待审批", @@ -5360,37 +5359,37 @@ export default { editor: { navBasic: "基本信息", navPermissions: "权限说明", - navJoin: "加入空间", + navJoin: "加入共享空间", basicTitle: "基本信息", - basicDesc: "设置空间的名称和描述,便于成员识别", + basicDesc: "设置共享空间的名称和描述,便于成员识别", nameTip: "建议使用团队或项目名称,便于成员识别", - descriptionTip: "描述空间的用途和目标,帮助成员了解空间", + descriptionTip: "描述共享空间的用途和目标,帮助成员了解共享空间", permissionsTitle: "成员权限", - permissionsDesc: "了解空间中不同角色对知识库与智能体的权限范围", + permissionsDesc: "了解共享空间中不同角色对知识库与智能体的权限范围", permissionFeature: "权限功能", fullAccess: "完整权限", editAccess: "编辑权限", viewAccess: "只读权限", - adminPerm1: "管理空间设置、成员及知识库与智能体共享", + adminPerm1: "管理共享空间设置、成员及知识库与智能体共享", adminPerm2: "共享和管理知识库与智能体", adminPerm3: "编辑共享知识库内容", adminPerm4: "查看和检索知识库", useSharedAgentsPerm: "使用共享智能体", - shareKBPerm: "共享知识库到空间", + shareKBPerm: "共享知识库到共享空间", editorPerm1: "编辑共享知识库内容", editorPerm2: "查看和检索知识库", - editorPerm3: "管理空间设置和成员", + editorPerm3: "管理共享空间设置和成员", viewerPerm1: "查看和检索知识库", viewerPerm2: "编辑知识库内容", - viewerPerm3: "管理空间设置", - ownerNote: "作为空间创建者,您将自动成为空间的管理员,拥有完整权限。", - joinTitle: "加入空间", - joinDesc: "通过邀请码加入现有空间,获得知识库与智能体访问权限", - joinIllustration: "输入空间管理员提供的邀请码即可加入", - inviteCodeTip: "邀请码由空间管理员生成,请向他们索取", + viewerPerm3: "管理共享空间设置", + ownerNote: "作为共享空间创建者,您将自动成为共享空间的管理员,拥有完整权限。", + joinTitle: "加入共享空间", + joinDesc: "通过邀请码加入现有共享空间,获得知识库与智能体访问权限", + joinIllustration: "输入共享空间管理员提供的邀请码即可加入", + inviteCodeTip: "邀请码由共享空间管理员生成,请向他们索取", howToGetCode: "如何获取邀请码?", - step1: "联系您要加入的空间管理员", - step2: "请求他们分享空间邀请码", + step1: "联系您要加入的共享空间管理员", + step2: "请求他们分享共享空间邀请码", step3: "将邀请码粘贴到上方输入框", }, upgrade: { @@ -5410,12 +5409,12 @@ export default { addMember: { button: "添加成员", dialogTitle: "添加成员", - tip: "添加的用户将立即成为空间成员,可以访问空间内共享的知识库。", + tip: "添加的用户将立即成为共享空间成员,可以访问共享空间内共享的知识库。", tipTenant: "共享空间的成员单位是空间:选定一个空间后,其下全部用户都将获得访问权限。下方搜索结果按空间去重。", searchUser: "选择用户", searchTenant: "选择空间", searchPlaceholder: "输入用户名或邮箱搜索...", - searchTenantPlaceholder: "输入空间名、用户名或邮箱搜索...", + searchTenantPlaceholder: "输入空间名搜索...", searchHint: "输入至少 2 个字符开始搜索", searchTenantHint: "输入至少 2 个字符开始搜索,按空间去重并自动过滤已加入的空间", selectRole: "分配角色", @@ -5429,15 +5428,15 @@ export default { }, }, share: { - title: "共享到空间", - shareToSpace: "共享到空间", - shareModelToSpace: "共享「{name}」到空间", - shareAgentToSpace: "共享「{name}」到空间", - modelShareDesc: "将模型共享到空间,空间成员可使用该模型", - agentShareDesc: "将智能体共享到空间,空间成员可使用该智能体", - spaceAgentShareCountTip: "该空间的共享智能体数量", - selectOrg: "选择空间", - selectOrgPlaceholder: "请选择要共享的空间", + title: "共享到共享空间", + shareToSpace: "共享到共享空间", + shareModelToSpace: "共享「{name}」到共享空间", + shareAgentToSpace: "共享「{name}」到共享空间", + modelShareDesc: "将模型共享到共享空间,共享空间成员可使用该模型", + agentShareDesc: "将智能体共享到共享空间,共享空间成员可使用该智能体", + spaceAgentShareCountTip: "该共享空间的共享智能体数量", + selectOrg: "选择共享空间", + selectOrgPlaceholder: "请选择要共享的共享空间", permission: "权限", permissionTip: "可编辑权限允许成员修改知识库内容,只读权限仅允许检索和问答", shareSuccess: "已共享", @@ -5445,14 +5444,14 @@ export default { unshareSuccess: "已取消共享", unshareFailed: "取消共享失败", sharedTo: "已共享到", - noShares: "尚未共享到任何空间", - searchPlaceholder: "搜索空间…", + noShares: "尚未共享到任何共享空间", + searchPlaceholder: "搜索共享空间…", loading: "加载中…", - emptySearch: "未找到匹配「{q}」的空间", - addShareDialogTitle: "共享到空间", + emptySearch: "未找到匹配「{q}」的共享空间", + addShareDialogTitle: "共享到共享空间", unshareAction: "取消共享", columns: { - space: "空间", + space: "共享空间", permission: "权限", sharedAt: "共享时间", operations: "操作", diff --git a/frontend/src/views/organization/OrganizationSettingsModal.vue b/frontend/src/views/organization/OrganizationSettingsModal.vue index 71877193..5a06d6c1 100644 --- a/frontend/src/views/organization/OrganizationSettingsModal.vue +++ b/frontend/src/views/organization/OrganizationSettingsModal.vue @@ -974,19 +974,13 @@ const addMemberRoleOptions = computed(() => [ { label: t('organization.role.admin'), value: 'admin' }, ]) -// 空间搜索结果选项。主标签展示空间名,括号里附带代表用户名(不再展示 -// 邮箱、不带"代表:"前缀,避免冗长和译文别扭);空间名缺失时回退到 -// 代表用户名 / 空间 ID。 +// 空间搜索结果选项。成员单位是空间,只按空间名搜索,因此直接展示空间名; +// 空间名缺失时回退到空间 ID。 const tenantSearchOptions = computed(() => - tenantSearchResults.value.map((c) => { - const tenantLabel = c.tenant_name || c.representative_username || `tenant#${c.tenant_id}` - const showsTenantName = !!c.tenant_name - const label = - showsTenantName && c.representative_username - ? `${tenantLabel}(${c.representative_username})` - : tenantLabel - return { label, value: c.tenant_id } - }) + tenantSearchResults.value.map((c) => ({ + label: c.tenant_name || `tenant#${c.tenant_id}`, + value: c.tenant_id, + })) ) const modalTitle = computed(() => { @@ -1610,7 +1604,7 @@ const handleSubmitUpgrade = async () => { } } -// 添加成员:搜索空间(按空间名 / 用户名 / 邮箱模糊匹配,按 tenant_id 去重) +// 添加成员:搜索空间(仅按空间名模糊匹配,按 tenant_id 去重) let tenantSearchTimer: ReturnType | null = null const handleTenantSearch = (query: string) => { if (tenantSearchTimer) { diff --git a/internal/handler/organization.go b/internal/handler/organization.go index 0d094cc3..1b82aa34 100644 --- a/internal/handler/organization.go +++ b/internal/handler/organization.go @@ -540,9 +540,14 @@ func (h *OrganizationHandler) GenerateInviteCode(c *gin.Context) { return } + // Wrap in `data` to match the ApiResponse<{invite_code}> contract both the + // web frontend and the Go SDK expect; a flat top-level field is silently + // dropped by those clients (they read data.invite_code). c.JSON(http.StatusOK, gin.H{ - "success": true, - "invite_code": code, + "success": true, + "data": gin.H{ + "invite_code": code, + }, }) } @@ -1827,18 +1832,18 @@ func (h *OrganizationHandler) toOrgResponse(ctx context.Context, org *types.Orga // SearchTenantsForInvite searches candidate tenants for inviting to organization. // -// Plan 3 (#1303) makes the tenant the unit of membership. This endpoint replaces -// the older per-user search: it accepts a free-text query, looks up matching users -// (by username/email), groups them by their TenantID, resolves the tenant's -// canonical name, filters out tenants already in the org, and returns one row -// per candidate tenant with one representative user attached for display. +// Plan 3 (#1303) makes the tenant the unit of membership. Because a single user +// may belong to multiple workspaces, matching by username/email is ambiguous +// (which workspace did the admin mean?), so this endpoint matches strictly by +// tenant (workspace) name: it resolves matching tenants, filters out tenants +// already in the org, and returns one row per candidate tenant. // // @Summary 搜索可邀请的空间 -// @Description 搜索空间(排除已加入的空间)用于邀请加入组织;按空间去重,附带代表用户 +// @Description 按空间名搜索可邀请的空间(排除已加入的空间)用于邀请加入组织;按空间去重 // @Tags 组织管理 // @Produce json // @Param id path string true "组织ID" -// @Param q query string true "搜索关键词(空间名、用户名或邮箱)" +// @Param q query string true "搜索关键词(空间名)" // @Param limit query int false "返回数量限制" default(10) // @Success 200 {object} map[string]interface{} // @Failure 403 {object} apperrors.AppError @@ -1880,50 +1885,24 @@ func (h *OrganizationHandler) SearchTenantsForInvite(c *gin.Context) { existingTenantIDs[m.TenantID] = true } - // 1) Match users by query and group by TenantID. We over-fetch so the - // de-duplication after filtering "already a member" tenants still - // leaves us with enough candidates to fill `limit`. - // User PII (email/username) is intentionally omitted from results: - // org admins only need tenant identity to send an invite. - users, err := h.userService.SearchUsers(ctx, query, limit*3+20) + // Match tenants by name only. A single user may belong to multiple + // workspaces, so resolving a query to "the user's tenant" is ambiguous; + // the membership unit is the tenant, so we invite by workspace name. + // SearchTenants uses page/pageSize; pageSize=limit*2 is a safe ceiling + // given the soft cap of 50 above. + tenantsByName, _, err := h.tenantService.SearchTenants(ctx, query, 0, 1, limit*2) if err != nil { - logger.Errorf(ctx, "Failed to search users: %v", err) + logger.Errorf(ctx, "Failed to search tenants: %v", err) c.Error(apperrors.NewInternalServerError("Failed to search candidates")) return } - // 2) Direct tenant-name match (admins may want to invite by tenant name). - // SearchTenants uses page/pageSize; pageSize=limit*2 is a safe ceiling - // given the soft cap of 50 above. - tenantsByName, _, _ := h.tenantService.SearchTenants(ctx, query, 0, 1, limit*2) - - // Insertion-ordered map: first match wins, so the first user that - // brought a tenant in becomes the representative. + // Insertion-ordered map: first match wins, preserving search ordering. type entry struct { idx int // preserve search ordering candidate types.TenantInviteCandidate } seen := make(map[uint64]*entry) - addUser := func(u *types.User) { - if u == nil || u.TenantID == 0 { - return - } - if existingTenantIDs[u.TenantID] { - return - } - if _, ok := seen[u.TenantID]; ok { - return - } - seen[u.TenantID] = &entry{ - idx: len(seen), - candidate: types.TenantInviteCandidate{ - TenantID: u.TenantID, - }, - } - } - for _, u := range users { - addUser(u) - } addTenantByID := func(tid uint64) { if tid == 0 || existingTenantIDs[tid] { return