mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-31 14:47:13 +00:00
feat(tenancy): implement workspace isolation
This commit is contained in:
@@ -167,6 +167,7 @@ const enUS = {
|
||||
actions: 'Actions',
|
||||
apiKeyCreatedMessage:
|
||||
'Please copy this API key, if the button is invalid, please copy manually.',
|
||||
apiKeyStoredSecurely: 'Secret shown only when created',
|
||||
none: 'None',
|
||||
more: 'More ({{count}})',
|
||||
less: 'Less',
|
||||
@@ -1281,6 +1282,77 @@ const enUS = {
|
||||
spaceEmailMismatch:
|
||||
'Space login email does not match the local account email',
|
||||
},
|
||||
workspace: {
|
||||
title: 'Workspace',
|
||||
description: 'Manage members, roles, and invitation links',
|
||||
selectTitle: 'Choose a Workspace',
|
||||
selectDescription: 'Select where you want to continue in LangBot.',
|
||||
selectionLoadFailed:
|
||||
'Your Workspaces could not be loaded. Please try again.',
|
||||
switchWorkspace: 'Switch Workspace',
|
||||
ossSingletonDescription:
|
||||
'This self-hosted instance has one Workspace and can include multiple users.',
|
||||
cloudManagedDescription:
|
||||
'Membership, invitations, and billing for this Workspace are managed in the LangBot Cloud portal.',
|
||||
loadFailed: 'Failed to load Workspace information',
|
||||
members: 'Members',
|
||||
you: 'You',
|
||||
inviteMember: 'Invite a member',
|
||||
inviteDescription:
|
||||
'Create a one-time link to add another user to this Workspace.',
|
||||
emailPlaceholder: 'member@example.com',
|
||||
createInvitation: 'Create invitation',
|
||||
invitationCreated: 'Invitation created',
|
||||
invitationCreateFailed: 'Failed to create invitation',
|
||||
oneTimeLinkWarning:
|
||||
'Copy this link now. The secret is shown only once and is not stored by LangBot.',
|
||||
copyInvitation: 'Copy invitation link',
|
||||
invitationCopied: 'Invitation link copied',
|
||||
pendingInvitations: 'Pending invitations',
|
||||
expiresAt: 'Expires {{date}}',
|
||||
revokeInvitation: 'Revoke invitation',
|
||||
invitationRevoked: 'Invitation revoked',
|
||||
invitationRevokeFailed: 'Failed to revoke invitation',
|
||||
acceptInvitation: 'Accept invitation',
|
||||
invitedToWorkspace: 'You were invited to {{workspace}}',
|
||||
checkingInvitation: 'Checking this invitation...',
|
||||
invitationMissing: 'The invitation secret is missing from this link.',
|
||||
invitationExpired: 'This invitation has expired.',
|
||||
invitationAlreadyRevoked: 'This invitation was revoked.',
|
||||
invitationAlreadyUsed: 'This invitation was already used.',
|
||||
invitationInvalid: 'This invitation is invalid or no longer available.',
|
||||
invitationAccepted: 'Invitation accepted',
|
||||
invitationAcceptFailed: 'Failed to accept invitation',
|
||||
invitationEmailMismatch:
|
||||
'This invitation belongs to a different email address.',
|
||||
existingAccountLoginRequired:
|
||||
'An account already exists for this email. Sign in to continue.',
|
||||
acceptAsCurrentAccount: 'Accept with current account',
|
||||
registerAndAccept: 'Create account and accept',
|
||||
alreadyHaveAccount: 'I already have an account',
|
||||
confirmPassword: 'Confirm password',
|
||||
passwordMinimum: 'Password must contain at least 8 characters.',
|
||||
passwordMismatch: 'The passwords do not match.',
|
||||
backToLogin: 'Back to sign in',
|
||||
memberUpdated: 'Member role updated',
|
||||
memberUpdateFailed: 'Failed to update member role',
|
||||
removeMember: 'Remove member',
|
||||
removeMemberConfirm: 'Remove this member from the Workspace?',
|
||||
memberRemoved: 'Member removed',
|
||||
memberRemoveFailed: 'Failed to remove member',
|
||||
transferOwnership: 'Transfer ownership',
|
||||
types: {
|
||||
personal: 'Personal',
|
||||
team: 'Team',
|
||||
},
|
||||
roles: {
|
||||
owner: 'Owner',
|
||||
admin: 'Admin',
|
||||
developer: 'Developer',
|
||||
operator: 'Operator',
|
||||
viewer: 'Viewer',
|
||||
},
|
||||
},
|
||||
monitoring: {
|
||||
title: 'Dashboard',
|
||||
description: 'Monitor bot activities, LLM calls, and system performance',
|
||||
@@ -1532,6 +1604,7 @@ const enUS = {
|
||||
settingsDialog: {
|
||||
title: 'Settings',
|
||||
nav: {
|
||||
workspace: 'Workspace',
|
||||
models: 'Models',
|
||||
api: 'API',
|
||||
storage: 'Storage',
|
||||
|
||||
@@ -169,6 +169,7 @@ const jaJP = {
|
||||
actions: 'アクション',
|
||||
apiKeyCreatedMessage:
|
||||
'この API キーをコピーしてください。もしボタンが無効な場合は手動でコピーしてください。',
|
||||
apiKeyStoredSecurely: 'シークレットは作成時のみ表示されます',
|
||||
none: 'なし',
|
||||
more: 'もっと見る ({{count}})',
|
||||
less: '折りたたむ',
|
||||
@@ -1286,6 +1287,76 @@ const jaJP = {
|
||||
spaceEmailMismatch:
|
||||
'Spaceログインのメールアドレスがローカルアカウントのメールアドレスと一致しません',
|
||||
},
|
||||
workspace: {
|
||||
title: 'ワークスペース',
|
||||
description: 'メンバー、ロール、招待リンクを管理します',
|
||||
selectTitle: 'ワークスペースを選択',
|
||||
selectDescription: 'LangBot で使用するワークスペースを選択してください。',
|
||||
selectionLoadFailed:
|
||||
'ワークスペースを読み込めませんでした。もう一度お試しください。',
|
||||
switchWorkspace: 'ワークスペースを切り替え',
|
||||
ossSingletonDescription:
|
||||
'このセルフホストインスタンスには1つのワークスペースがあり、複数のユーザーを追加できます。',
|
||||
cloudManagedDescription:
|
||||
'このワークスペースのメンバー、招待、請求は LangBot Cloud ポータルで管理されます。',
|
||||
loadFailed: 'ワークスペース情報の読み込みに失敗しました',
|
||||
members: 'メンバー',
|
||||
you: 'あなた',
|
||||
inviteMember: 'メンバーを招待',
|
||||
inviteDescription:
|
||||
'現在のワークスペースにユーザーを追加する一度限りのリンクを作成します。',
|
||||
emailPlaceholder: 'member@example.com',
|
||||
createInvitation: '招待を作成',
|
||||
invitationCreated: '招待を作成しました',
|
||||
invitationCreateFailed: '招待の作成に失敗しました',
|
||||
oneTimeLinkWarning:
|
||||
'このリンクを今すぐコピーしてください。シークレットは一度だけ表示され、LangBotには保存されません。',
|
||||
copyInvitation: '招待リンクをコピー',
|
||||
invitationCopied: '招待リンクをコピーしました',
|
||||
pendingInvitations: '保留中の招待',
|
||||
expiresAt: '{{date}} に期限切れ',
|
||||
revokeInvitation: '招待を取り消す',
|
||||
invitationRevoked: '招待を取り消しました',
|
||||
invitationRevokeFailed: '招待の取り消しに失敗しました',
|
||||
acceptInvitation: '招待を承認',
|
||||
invitedToWorkspace: '{{workspace}} に招待されました',
|
||||
checkingInvitation: '招待を確認しています...',
|
||||
invitationMissing: '招待リンクにシークレットがありません。',
|
||||
invitationExpired: 'この招待は期限切れです。',
|
||||
invitationAlreadyRevoked: 'この招待は取り消されました。',
|
||||
invitationAlreadyUsed: 'この招待はすでに使用されています。',
|
||||
invitationInvalid: 'この招待は無効か、利用できなくなっています。',
|
||||
invitationAccepted: '招待を承認しました',
|
||||
invitationAcceptFailed: '招待の承認に失敗しました',
|
||||
invitationEmailMismatch: 'この招待は別のメールアドレスに送られたものです。',
|
||||
existingAccountLoginRequired:
|
||||
'このメールアドレスのアカウントは既に存在します。ログインしてください。',
|
||||
acceptAsCurrentAccount: '現在のアカウントで承認',
|
||||
registerAndAccept: 'アカウントを作成して承認',
|
||||
alreadyHaveAccount: 'アカウントを持っています',
|
||||
confirmPassword: 'パスワードを確認',
|
||||
passwordMinimum: 'パスワードは8文字以上にしてください。',
|
||||
passwordMismatch: 'パスワードが一致しません。',
|
||||
backToLogin: 'ログインに戻る',
|
||||
memberUpdated: 'メンバーのロールを更新しました',
|
||||
memberUpdateFailed: 'メンバーのロール更新に失敗しました',
|
||||
removeMember: 'メンバーを削除',
|
||||
removeMemberConfirm: 'このメンバーをワークスペースから削除しますか?',
|
||||
memberRemoved: 'メンバーを削除しました',
|
||||
memberRemoveFailed: 'メンバーの削除に失敗しました',
|
||||
transferOwnership: '所有権を移譲',
|
||||
types: {
|
||||
personal: '個人',
|
||||
team: 'チーム',
|
||||
},
|
||||
roles: {
|
||||
owner: '所有者',
|
||||
admin: '管理者',
|
||||
developer: '開発者',
|
||||
operator: 'オペレーター',
|
||||
viewer: '閲覧者',
|
||||
},
|
||||
},
|
||||
monitoring: {
|
||||
title: 'ダッシュボード',
|
||||
description:
|
||||
@@ -1538,6 +1609,7 @@ const jaJP = {
|
||||
settingsDialog: {
|
||||
title: '設定',
|
||||
nav: {
|
||||
workspace: 'ワークスペース',
|
||||
models: 'モデル',
|
||||
api: 'API',
|
||||
storage: 'ストレージ',
|
||||
|
||||
@@ -156,6 +156,7 @@ const zhHans = {
|
||||
webhookHint: 'Webhook 允许 LangBot 将个人消息和群消息事件推送到外部系统',
|
||||
actions: '操作',
|
||||
apiKeyCreatedMessage: '请复制此 API 密钥,若按钮无效,请手动复制。',
|
||||
apiKeyStoredSecurely: '密钥仅在创建时显示',
|
||||
none: '无',
|
||||
more: '更多 ({{count}})',
|
||||
less: '收起',
|
||||
@@ -1217,6 +1218,73 @@ const zhHans = {
|
||||
setPasswordHint: '设置密码后可使用邮箱密码登录',
|
||||
spaceEmailMismatch: 'Space登录账号邮箱与本实例账号邮箱不匹配',
|
||||
},
|
||||
workspace: {
|
||||
title: '工作区',
|
||||
description: '管理成员、角色与邀请链接',
|
||||
selectTitle: '选择工作区',
|
||||
selectDescription: '选择你要进入的 LangBot 工作区。',
|
||||
selectionLoadFailed: '无法加载你的工作区,请重试。',
|
||||
switchWorkspace: '切换工作区',
|
||||
ossSingletonDescription:
|
||||
'当前自托管实例只有一个工作区,但可以包含多个用户。',
|
||||
cloudManagedDescription:
|
||||
'此工作区的成员、邀请与计费由 LangBot Cloud 控制台统一管理。',
|
||||
loadFailed: '加载工作区信息失败',
|
||||
members: '成员',
|
||||
you: '你',
|
||||
inviteMember: '邀请成员',
|
||||
inviteDescription: '创建一次性链接,将其他用户加入当前工作区。',
|
||||
emailPlaceholder: 'member@example.com',
|
||||
createInvitation: '创建邀请',
|
||||
invitationCreated: '邀请已创建',
|
||||
invitationCreateFailed: '创建邀请失败',
|
||||
oneTimeLinkWarning:
|
||||
'请立即复制此链接。密钥只显示一次,LangBot 不会保存明文。',
|
||||
copyInvitation: '复制邀请链接',
|
||||
invitationCopied: '邀请链接已复制',
|
||||
pendingInvitations: '待接受邀请',
|
||||
expiresAt: '{{date}} 过期',
|
||||
revokeInvitation: '撤销邀请',
|
||||
invitationRevoked: '邀请已撤销',
|
||||
invitationRevokeFailed: '撤销邀请失败',
|
||||
acceptInvitation: '接受邀请',
|
||||
invitedToWorkspace: '你已受邀加入 {{workspace}}',
|
||||
checkingInvitation: '正在验证邀请…',
|
||||
invitationMissing: '邀请链接中缺少密钥。',
|
||||
invitationExpired: '此邀请已过期。',
|
||||
invitationAlreadyRevoked: '此邀请已被撤销。',
|
||||
invitationAlreadyUsed: '此邀请已被使用。',
|
||||
invitationInvalid: '此邀请无效或已不可用。',
|
||||
invitationAccepted: '已接受邀请',
|
||||
invitationAcceptFailed: '接受邀请失败',
|
||||
invitationEmailMismatch: '此邀请属于另一个邮箱地址。',
|
||||
existingAccountLoginRequired: '此邮箱已有账户,请登录后继续。',
|
||||
acceptAsCurrentAccount: '使用当前账户接受',
|
||||
registerAndAccept: '创建账户并接受',
|
||||
alreadyHaveAccount: '我已有账户',
|
||||
confirmPassword: '确认密码',
|
||||
passwordMinimum: '密码至少需要 8 个字符。',
|
||||
passwordMismatch: '两次输入的密码不一致。',
|
||||
backToLogin: '返回登录',
|
||||
memberUpdated: '成员角色已更新',
|
||||
memberUpdateFailed: '更新成员角色失败',
|
||||
removeMember: '移除成员',
|
||||
removeMemberConfirm: '确定将此成员移出工作区吗?',
|
||||
memberRemoved: '成员已移除',
|
||||
memberRemoveFailed: '移除成员失败',
|
||||
transferOwnership: '转让所有权',
|
||||
types: {
|
||||
personal: '个人',
|
||||
team: '团队',
|
||||
},
|
||||
roles: {
|
||||
owner: '所有者',
|
||||
admin: '管理员',
|
||||
developer: '开发者',
|
||||
operator: '运维人员',
|
||||
viewer: '查看者',
|
||||
},
|
||||
},
|
||||
monitoring: {
|
||||
title: '仪表盘',
|
||||
description: '查看机器人活动、LLM调用和系统性能',
|
||||
@@ -1467,6 +1535,7 @@ const zhHans = {
|
||||
settingsDialog: {
|
||||
title: '设置',
|
||||
nav: {
|
||||
workspace: '工作区',
|
||||
models: '模型',
|
||||
api: 'API',
|
||||
storage: '存储',
|
||||
|
||||
Reference in New Issue
Block a user