trypost/lang/zh/settings.php
Paulo Castellano 4d8353d758
MCP: workspace settings, viewer read access, and token access (#241)
* Add workspace MCP settings and token access controls.

Ship MCP settings UI, OAuth revoke/list helpers, Passport deploy wiring,
and workspace.token:mcp gating so assistants can connect without pulling
in welcome/onboarding from the parent epic.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Type MCP client config shapes instead of string checks.

Encode http/config-root on each advanced client and tighten primary
client ids so snippet generation does not branch on magic strings.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Polish MCP settings follow-ups from review.

Translate Ukrainian MCP copy, deep-link ChatGPT into connector
creation, drop an unused asset and revoke arg, and assert PATs are
rejected on the MCP endpoint.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Harden MCP connected clients, revoke scope, and OAuth consent.

List recoverable sessions with live refresh tokens, revoke only PATs,
throttle registration alone, and block viewers from authorizing MCP.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Simplify MCP OAuth route throttling to a single middleware group.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Allow workspace viewers read-only MCP access with web policy writes.

Mirror the web app: MCP connects on view + OAuth mcp:use, write tools
enforce createPost/update/delete/manageAccounts/manageTeam, and demotion
to Viewer keeps grants. Cover role denials, consent, and disconnect.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Harden MCP tool authz with shared workspace helpers.

Route ApiKey tools through AuthorizesMcpTool, fail closed on null user
or policy argument, and resolve the current workspace before mutating.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Drop redundant string casts on validated request data.

Enum::from and validated() fields are already strings, so the casts
add noise without changing behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Show only the current user's MCP connections in settings.

Match API keys privacy: list and disconnect your own OAuth clients,
not teammates' across the account.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Cover LoadWorkspaceFromToken gaps and harden AuthorizesMcpTool tests.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Drop redundant is_string guard before UpdatePostTool find.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Refactor AppSidebar to always show MCP link and simplify route middleware definition in ai.php. The MCP link is now consistently displayed regardless of the current workspace state, and the route middleware syntax has been streamlined.

* Refresh MCP connected clients with Inertia usePoll.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Bump laravel/mcp to 0.9.1 and add the TryPost server icon.

Requires laravel/boost 2.5 for the Icon attribute; expose images/trypost/icon.png on TryPostServer.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Drop no-op ReflectionClass import in TryPostServerTest.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-06 09:54:51 -03:00

385 lines
16 KiB
PHP

<?php
return [
'title' => '设置',
'description' => '管理你的个人资料和账户设置',
'hub' => [
'title' => '设置',
'description' => '选择你想管理的内容。',
'profile' => [
'title' => '个人资料',
'description' => '更新你的个人信息、密码和通知偏好。',
],
'workspace' => [
'title' => '工作区',
'description' => '配置你的工作区、品牌、成员和 API 密钥。',
],
'account' => [
'title' => '账户',
'description' => '管理你的账户信息、用量和账单。',
],
],
'nav' => [
'profile' => '个人资料',
'authentication' => '身份验证',
'workspace' => '工作区',
'members' => '成员',
'notifications' => '通知',
'billing' => '账单',
],
'notifications' => [
'title' => '通知偏好',
'heading' => '邮件通知',
'description' => '选择你想接收哪些邮件通知',
'post_published' => '帖子已发布',
'post_published_description' => '当你的帖子成功发布时收到邮件',
'post_failed' => '帖子发布失败',
'post_failed_description' => '当你的帖子发布失败时收到邮件',
'account_disconnected' => '账号已断开连接',
'account_disconnected_description' => '当某个社交账号断开连接时收到邮件',
'save' => '保存偏好',
],
'profile' => [
'title' => '个人资料设置',
'photo_heading' => '头像',
'photo_description' => '上传一张头像',
'heading' => '个人信息',
'description' => '更新你的姓名和邮箱地址',
'avatar' => '头像',
'name' => '姓名',
'name_placeholder' => '全名',
'email' => '邮箱地址',
'email_placeholder' => '邮箱地址',
'email_unverified' => '你的邮箱地址尚未验证。',
'resend_verification' => '点击此处重新发送验证邮件。',
'verification_sent' => '新的验证链接已发送至你的邮箱地址。',
'save' => '保存',
],
'authentication' => [
'title' => '身份验证',
'page_title' => '身份验证设置',
'sessions' => [
'title' => '活动会话',
'description' => '如果你发现任何可疑情况,请退出其他设备的登录。',
'unknown_browser' => '未知浏览器',
'unknown_ip' => '未知 IP',
'on' => '于',
'active_now' => '当前活动',
'log_out_others' => '退出其他设备',
'modal_title' => '退出其他设备',
'modal_description_password' => '输入你当前的密码,以确认你要退出其他浏览器会话。',
'modal_description_email' => '输入你的邮箱地址,以确认你要退出其他浏览器会话。',
'password_placeholder' => '当前密码',
'email_placeholder' => '你的账户邮箱',
'cancel' => '取消',
'submit' => '退出其他设备',
'email_mismatch' => '该邮箱地址与你的账户不匹配。',
'flash_logged_out' => '你已从其他设备退出登录。',
],
'password' => [
'update_title' => '更新密码',
'set_title' => '设置密码',
'update_description' => '确保你的账户使用一个足够长且随机的密码以保持安全。',
'set_description' => '设置密码,这样无需通过已连接的第三方即可登录。',
'current_password' => '当前密码',
'new_password' => '新密码',
'confirm_password' => '确认密码',
'save' => '保存密码',
'set' => '设置密码',
],
'providers' => [
'title' => '已连接的账号',
'description' => '使用这些已连接的第三方更快登录。',
'connected' => '已连接',
'not_connected' => '未连接',
'connect' => '连接',
'disconnect' => '断开连接',
'flash_disconnected' => ':provider 已成功断开连接。',
'flash_connected' => ':provider 已成功连接。',
'flash_already_linked' => '该 :provider 账号已关联到另一个用户。',
'flash_cannot_disconnect' => '你无法断开唯一的登录方式。请先设置密码或连接另一个第三方。',
],
],
'delete_account' => [
'heading' => '删除账户',
'description' => '删除你的账户及其所有资源',
'warning' => '警告',
'warning_message' => '请谨慎操作,此操作无法撤销。如果你是此账户的所有者,受邀成员也将被永久删除。',
'button' => '删除账户',
'modal_title' => '确定要删除你的账户吗?',
'modal_description_password' => '账户一经删除,其所有资源和数据也将被永久删除。如果你是此账户的所有者,受邀成员也将被永久删除。请输入你的密码以确认。',
'modal_description_email' => '账户一经删除,其所有资源和数据也将被永久删除。如果你是此账户的所有者,受邀成员也将被永久删除。请输入你的邮箱地址 :email 以确认。',
'password' => '密码',
'password_placeholder' => '密码',
'email_placeholder' => '你的账户邮箱',
'email_mismatch' => '该邮箱地址与你的账户不匹配。',
'cancel' => '取消',
'confirm' => '删除账户',
],
'workspace' => [
'tabs' => [
'workspace' => '工作区',
'brand' => '品牌',
'users' => '成员',
'api_keys' => 'API 密钥',
'mcp' => 'MCP',
],
'title' => '工作区设置',
'logo_heading' => '工作区徽标',
'logo_description' => '为你的工作区上传一个徽标',
'heading' => '工作区名称',
'description' => '更新你的工作区名称',
'members_heading' => '成员',
'members_description' => '管理工作区成员和邀请',
'name' => '名称',
'name_placeholder' => '我的工作区',
'save' => '保存',
'danger_description' => '不可撤销的操作。',
'delete_warning' => '警告',
'delete_title' => '删除此工作区',
'delete_description' => '永久删除此工作区及其全部内容(帖子、已连接账户和媒体)。之后将按少一个工作区计费。',
'delete_description_self_hosted' => '永久删除此工作区及其帖子、已连接账户和媒体。',
'delete_only_description' => '无法删除唯一的工作区。可在账单中取消订阅以停止付费,或在身份验证设置中删除账户以取消计费并永久删除全部数据。',
'delete_go_to_billing' => '前往账单',
'delete_go_to_delete_account' => '删除账户',
'delete_members_warning' => '{1}另有 :count 位成员将失去访问权限。没有其他 TryPost 工作区的成员账户将被永久删除。|[2,*]另有 :count 位成员将失去访问权限。没有其他 TryPost 工作区的成员账户将被永久删除。',
'delete_action' => '删除工作区',
'delete_cancel' => '取消',
'delete_confirm_title' => '删除工作区?',
'delete_confirm_description' => '这将永久删除工作区及其所有数据。账单将更新为少一个工作区。',
'delete_confirm_description_self_hosted' => '这将永久删除工作区及其所有数据。',
],
'brand' => [
'title' => '品牌',
'description' => '为 AI 生成的内容配置你的品牌形象。',
'name' => '工作区名称',
'name_placeholder' => '我的品牌',
'website' => '网站',
'website_placeholder' => 'https://yourbrand.com',
'brand_description' => '描述',
'brand_description_placeholder' => '介绍一下你的品牌、你做什么,以及你的受众是谁……',
'voice' => '品牌语气',
'voice_description' => '选择那些定义你内容风格的特质。',
'voice_group' => [
'pov' => '视角',
'formality' => '正式程度',
'energy' => '活力',
'humor' => '幽默',
'attitude' => '态度',
'warmth' => '亲和力',
'confidence' => '自信',
'style' => '风格',
],
'voice_trait' => [
'first_person' => '第一人称',
'second_person' => '第二人称(你)',
'third_person' => '第三人称',
'formal' => '正式',
'balanced' => '平衡',
'casual' => '随意',
'calm' => '平静',
'moderate' => '适中',
'enthusiastic' => '热情',
'vibrant' => '充满活力',
'serious' => '严肃',
'dry' => '冷幽默 / 含蓄',
'witty' => '机智',
'playful' => '俏皮',
'respectful' => '有礼',
'even_handed' => '不偏不倚',
'bold' => '大胆',
'provocative' => '挑衅',
'neutral' => '中立',
'friendly' => '友好',
'empathetic' => '有同理心',
'humble' => '谦逊',
'confident' => '自信',
'assertive' => '坚定',
'direct' => '直接',
'concise' => '简洁',
'transparent' => '坦诚',
'no_hype' => '不夸张',
'practical' => '务实',
'data_driven' => '数据驱动',
'storytelling' => '叙事',
'inspirational' => '鼓舞人心',
'educational' => '知识性',
'technical' => '技术性',
'minimalist' => '少用表情',
],
'brand_color' => '品牌色',
'background_color' => '背景色',
'text_color' => '文字颜色',
'font' => '字体',
'image_style' => '图片风格',
'image_style_description' => '为 AI 帖子生成幻灯片和封面图片时应用的视觉风格。',
'image_style_cinematic' => '电影感',
'image_style_illustration' => '插画',
'image_style_isometric_3d' => '等距',
'image_style_cartoon' => '卡通',
'image_style_typographic' => '字体排版',
'image_style_infographic' => '信息图',
'image_style_minimalist' => '极简',
'image_style_mockup' => '样机',
'content_language' => '内容语言',
'content_language_description' => '用于 AI 生成的文案、话题标签,以及生成图片或视频中任何文字的语言。',
'font_placeholder' => '选择字体…',
'font_search' => '搜索字体…',
'font_empty' => '没有匹配的字体。',
'language_placeholder' => '选择语言…',
'language_search' => '搜索语言…',
'language_empty' => '未找到语言。',
],
'members' => [
'title' => '成员',
'heading' => '团队成员',
'description' => '管理此工作区的成员和邀请',
'cancel' => '取消',
'remove' => '移除',
'make_role' => '设为:role',
'invite' => [
'title' => '邀请成员',
'description' => '发送邮件邀请以添加协作者',
'email' => '邮箱',
'email_placeholder' => 'collaborator@email.com',
'role' => '角色',
'role_placeholder' => '选择一个角色',
'submit' => '发送邀请',
],
'pending' => [
'title' => '待处理的邀请',
'description' => '等待接受的邀请',
'empty' => '没有待处理的邀请',
],
'list' => [
'title' => '成员',
'description' => '有权访问此工作区的人员',
'empty' => '除所有者外没有其他成员',
],
'remove_modal' => [
'title' => '移除成员',
'description' => '确定要将此成员从工作区中移除吗?他们将失去对所有工作区资源的访问权限。',
'action' => '移除成员',
],
'cancel_invite_modal' => [
'title' => '取消邀请',
'description' => '确定要取消此邀请吗?',
'action' => '取消邀请',
],
'roles' => [
'owner' => '所有者',
'admin' => '管理员',
'member' => '成员',
'viewer' => '查看者',
],
'errors' => [
'invite_exists' => '该邮箱已有邀请。',
'email_belongs_to_account' => '该邮箱已属于另一个 TryPost 账户。请改用专用工作邮箱。',
],
'flash' => [
'invite_sent' => '邀请发送成功!',
'invite_deleted' => '邀请已删除。',
'member_removed' => '成员移除成功。',
'role_updated' => '成员角色已更新。',
'wrong_email' => '此邀请是发给另一个邮箱地址的。',
'already_member' => '你已经是此工作区的成员。',
'invite_accepted' => '欢迎!你现在是此工作区的成员了。',
'invite_workspace_gone' => '该工作区已删除,此邀请已失效。',
'invite_declined' => '邀请已拒绝。',
],
],
'account' => [
'tabs' => [
'account' => '账户',
'usage' => '用量',
'billing' => '账单',
],
'title' => '账户设置',
'description' => '管理你的账户名称和账单邮箱',
'name' => '账户名称',
'name_placeholder' => '我的公司',
'billing_email' => '账单邮箱',
'billing_email_placeholder' => 'billing@company.com',
'billing_email_hint' => '此邮箱将用于接收来自 Stripe 的发票和账单相关沟通。',
'submit' => '保存',
],
'flash' => [
'account_updated' => '账户更新成功!',
'profile_updated' => '个人资料更新成功!',
'password_updated' => '密码更新成功!',
'workspace_updated' => '设置更新成功!',
'photo_updated' => '头像更新成功!',
'photo_deleted' => '头像移除成功!',
'delete_failed_billing' => '无法在账单提供商处取消订阅。未删除任何内容。请重试或联系支持。',
'logo_updated' => '徽标上传成功!',
'logo_deleted' => '徽标移除成功!',
'notifications_updated' => '通知偏好已更新!',
],
'api_keys' => [
'title' => 'API 密钥',
'page_title' => 'API 密钥',
'heading' => 'API 密钥',
'description' => '管理用于以编程方式访问你工作区的 API 密钥。',
'create' => '创建 API 密钥',
'copy' => '复制',
'new_token_message' => '你的新 API 密钥已创建。请立即复制——你将无法再次查看它。',
'table' => [
'name' => '名称',
'key' => '密钥',
'status' => '状态',
'expires' => '过期时间',
'last_used' => '上次使用',
'never' => '从未',
],
'actions' => [
'copy_id' => '复制 API 密钥 ID',
'copy_id_success' => 'API 密钥 ID 已复制到剪贴板',
'delete' => '删除',
],
'empty' => [
'title' => '暂无 API 密钥',
'description' => '创建一个 API 密钥,以编程方式访问你的工作区。',
],
'delete_modal' => [
'title' => '删除 API 密钥',
'description' => '确定要删除此 API 密钥吗?任何使用此密钥的应用将立即失去访问权限。',
'action' => '删除 API 密钥',
],
'create_dialog' => [
'title' => '创建 API 密钥',
'description' => '创建一个新的 API 密钥,以编程方式访问你的工作区。',
'name' => '名称',
'name_placeholder' => '例如 生产环境 API 密钥',
'expires' => '过期日期(可选)',
'expires_placeholder' => '永不过期',
'submit' => '创建',
'cancel' => '取消',
],
'flash' => [
'created' => 'API 密钥创建成功!',
'deleted' => 'API 密钥删除成功!',
],
],
];