{
    "title": "消息频道",
    "subtitle": "统一管理消息频道、账号、账号与智能体的绑定关系，以及频道默认账号",
    "refresh": "刷新",
    "addChannel": "添加频道",
    "stats": {
        "total": "频道总数",
        "connected": "已连接",
        "disconnected": "未连接"
    },
    "gatewayWarning": "网关未运行。未启用网关时无法管理频道。",
    "availableChannels": "可用频道",
    "supportedChannels": "支持的频道",
    "pluginBadge": "插件",
    "available": "可用频道",
    "availableDesc": "连接一个新的频道",
    "configured": "已配置频道",
    "configuredDesc": "管理已完成配置的频道",
    "configuredBadge": "已配置",
    "deleteConfirm": "确定要删除此频道吗？",
    "showAll": "显示全部",
    "toast": {
        "whatsappConnected": "WhatsApp 连接成功",
        "whatsappFailed": "WhatsApp 连接失败: {{error}}",
        "qrConnected": "{{name}} 连接成功",
        "qrFailed": "{{name}} 连接失败: {{error}}",
        "channelSaved": "频道 {{name}} 已保存",
        "channelConnecting": "正在连接 {{name}}...",
        "savedButRefreshFailed": "配置已保存，但刷新页面数据失败，请手动刷新查看最新状态",
        "restartManual": "请手动重启网关",
        "configFailed": "配置失败: {{error}}",
        "bindingUpdated": "账号绑定已更新",
        "defaultUpdated": "默认账号已更新",
        "accountDeleted": "账号已删除",
        "channelDeleted": "频道已删除"
    },
    "account": {
        "add": "添加账号",
        "edit": "编辑",
        "delete": "删除账号",
        "deleteChannel": "删除频道",
        "deleteConfirm": "确定要删除该账号吗？",
        "default": "当前默认",
        "setDefault": "设为频道默认账号",
        "bindAgentLabel": "绑定 Agent",
        "unassigned": "未绑定",
        "mainAccount": "主账号",
        "customIdLabel": "账号 ID",
        "customIdPlaceholder": "例如：feishu-sales-bot",
        "customIdHint": "可自定义账号 ID，用于区分同一频道下的多个账号。",
        "invalidId": "账号 ID 不能为空",
        "idLabel": "ID: {{id}}",
        "boundTo": "绑定对象：{{agent}}",
        "handledBy": "由 {{agent}} 处理",
        "bindingStatusLabel": "绑定状态：{{status}}",
        "connectionStatusLabel": "连接状态：{{status}}",
        "bindingStatus": {
            "bound": "已绑定",
            "unbound": "未绑定"
        },
        "connectionStatus": {
            "connected": "已连接",
            "connecting": "连接中",
            "disconnected": "未连接",
            "error": "异常"
        },
        "accountIdPrompt": "请输入该频道的新账号 ID",
        "accountIdExists": "账号 ID {{accountId}} 已存在"
    },
    "dialog": {
        "updateTitle": "更新 {{name}}",
        "configureTitle": "配置 {{name}}",
        "addTitle": "添加频道",
        "existingDesc": "更新您现有的配置",
        "selectDesc": "选择要配置的频道类型",
        "qrCode": "二维码",
        "token": "令牌",
        "scanQR": "使用 {{name}} 扫描此二维码",
        "refreshCode": "刷新代码",
        "loadingConfig": "正在加载配置...",
        "existingHint": "您已配置过此频道",
        "howToConnect": "如何连接",
        "viewDocs": "查看文档",
        "channelName": "频道名称",
        "channelNamePlaceholder": "我的 {{name}}",
        "enableChannel": "启用频道",
        "enableChannelDesc": "关闭后会保存配置，但不会启动该频道",
        "credentialsVerified": "凭证已验证",
        "validationFailed": "验证失败",
        "warnings": "警告",
        "back": "返回",
        "validating": "正在验证...",
        "validateConfig": "验证配置",
        "generatingQR": "正在生成二维码...",
        "validatingAndSaving": "正在验证并保存...",
        "generateQRCode": "生成二维码",
        "updateAndReconnect": "更新并重新连接",
        "saveAndConnect": "保存并连接",
        "envVar": "环境变量: {{var}}"
    },
    "meta": {
        "telegram": {
            "description": "使用 @BotFather 提供的机器人令牌连接 Telegram",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/TjiGwxsMWi7hpDkDAQBc0ydMnEf#PL8ndvsEwoYVWIx1T4mcB1EvnSb",
            "fields": {
                "botToken": {
                    "label": "机器人令牌",
                    "placeholder": "123456:ABC-DEF..."
                },
                "allowedUsers": {
                    "label": "允许的用户 ID",
                    "placeholder": "例如 123456789, 987654321",
                    "description": "允许使用机器人的用户 ID 列表（逗号分隔）。出于安全考虑，此项为必填。"
                }
            },
            "instructions": [
                "打开 Telegram 并搜索 @BotFather",
                "发送 /newbot 并按照说明操作",
                "复制提供的机器人令牌",
                "在下方粘贴令牌",
                "从 @userinfobot 获取您的用户 ID 并粘贴在下方"
            ]
        },
        "discord": {
            "description": "使用开发者门户提供的机器人令牌连接 Discord",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/BkOywJYCAiYRN9k4KTTceKPMnxg#C9zjdBRT1oqZ4VxF8q7ceRxQnLk",
            "fields": {
                "token": {
                    "label": "机器人令牌",
                    "placeholder": "您的 Discord 机器人令牌"
                },
                "guildId": {
                    "label": "服务器 ID",
                    "placeholder": "例如 123456789012345678",
                    "description": "限制机器人仅在特定服务器工作。右键点击服务器 → 复制服务器 ID。"
                },
                "channelId": {
                    "label": "频道 ID (可选)",
                    "placeholder": "例如 123456789012345678",
                    "description": "限制机器人仅在特定频道工作。右键点击频道 → 复制频道 ID。"
                }
            },
            "instructions": [
                "前往 Discord 开发者门户 → Applications → New Application",
                "在 Bot 部分：添加 Bot，然后复制 Bot Token",
                "在 Bot → Privileged Gateway Intents 中启用 Message Content Intent 和 Server Members Intent",
                "在 OAuth2 → URL Generator：选择 \"bot\" + \"applications.commands\"，添加消息权限",
                "使用生成的 URL 邀请机器人加入您的服务器",
                "在下方粘贴机器人令牌"
            ]
        },
        "whatsapp": {
            "description": "通过扫描二维码连接 WhatsApp（无需手机号）",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/ES7fwUfH8iGl8FkHYfFcyWB3n4d#doxcnsDDFbeEzqgjN6HSlyonLvc",
            "instructions": [
                "在手机上打开 WhatsApp",
                "前往 设置 > 已关联设备 >包含连接设备",
                "扫描下方显示的二维码",
                "系统将自动识别您的手机号"
            ]
        },
        "wechat": {
            "description": "通过腾讯官方 OpenClaw 插件扫码连接个人微信",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/GHYZwuPCriF0gWkXwkFcJ9zon3b",
            "instructions": [
                "点击生成二维码，ClawX 会在 OpenClaw 中安装并启用官方微信插件",
                "使用微信扫描下方二维码，并在手机上确认连接",
                "连接成功后，微信里会自动出现新的「微信 ClawBot」对话",
                "之后可再次通过扫码流程添加更多微信账号，或重新连接已有账号"
            ]
        },
        "dingtalk": {
            "description": "通过 OpenClaw 渠道插件连接钉钉（Stream 模式）",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/Y5eNwiSiZidkLskrwtJc1rUln0b#doxcnr8KfaA2mNPeQUeHO83eDPh",
            "fields": {
                "clientId": {
                    "label": "Client ID (AppKey)",
                    "placeholder": "dingxxxxxx"
                },
                "clientSecret": {
                    "label": "Client Secret (AppSecret)",
                    "placeholder": "您的应用密钥"
                },
                "robotCode": {
                    "label": "Robot Code（可选）",
                    "placeholder": "通常与 Client ID 相同"
                },
                "corpId": {
                    "label": "Corp ID（可选）",
                    "placeholder": "dingxxxxxx"
                },
                "agentId": {
                    "label": "Agent ID（可选）",
                    "placeholder": "123456789"
                }
            },
            "instructions": [
                "先在 OpenClaw 安装并启用 dingtalk 插件",
                "在钉钉开发者后台创建企业内部应用并开启 Stream 模式",
                "填写 Client ID 和 Client Secret（必填）",
                "根据你的应用配置按需填写 Robot Code / Corp ID / Agent ID"
            ]
        },
        "signal": {
            "description": "使用 signal-cli 连接 Signal",
            "docsUrl": "https://docs.openclaw.ai/zh-CN/channels/signal",
            "fields": {
                "phoneNumber": {
                    "label": "手机号码",
                    "placeholder": "+1234567890"
                }
            },
            "instructions": [
                "在您的系统上安装 signal-cli",
                "注册或链接您的手机号码",
                "在下方输入您的手机号码"
            ]
        },
        "feishu": {
            "description": "通过飞书官方推出的 OpenClaw 插件连接飞书/Lark 机器人",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/GKn8wOvHnibpPNkNkPzcAvGlnzK#Py88dTltfoJc1jxAhIBcW3Pkn7b",
            "fields": {
                "appId": {
                    "label": "应用 ID (App ID)",
                    "placeholder": "cli_xxxxxx"
                },
                "appSecret": {
                    "label": "应用密钥 (App Secret)",
                    "placeholder": "您的应用密钥"
                }
            },
            "instructions": [
                "前往 飞书开放平台 (open.feishu.cn) 并创建企业自建应用",
                "在应用详情页获取 App ID 和 App Secret 并填入下方",
                "确保应用已开通“机器人”能力",
                "保存配置后，根据网关提示扫码完成机器人创建",
                "详细步骤请参考飞书官方文档"
            ]
        },
        "wecom": {
            "description": "通过插件连接企业微信机器人",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/JTGnwoV0RixKPtkr4w7c7gpAnDc",
            "fields": {
                "botId": {
                    "label": "机器人 Bot ID",
                    "placeholder": "ww_xxxxxx"
                },
                "secret": {
                    "label": "应用 Secret",
                    "placeholder": "您的企业微信机器人 Secret"
                }
            },
            "instructions": [
                "您可以在企业微信管理后台创建应用并获取配置信息",
                "确保已启用接收消息服务器配置",
                "填写 Bot ID（可选企业 ID 或者直接使用机器人专属 ID）及 Secret 即可建立连接"
            ]
        },
        "imessage": {
            "description": "通过 BlueBubbles (macOS) 连接 iMessage",
            "docsUrl": "https://docs.openclaw.ai/zh-CN/channels/bluebubbles",
            "fields": {
                "serverUrl": {
                    "label": "BlueBubbles 服务器地址",
                    "placeholder": "http://localhost:1234"
                },
                "password": {
                    "label": "服务器密码",
                    "placeholder": "您的服务器密码"
                }
            },
            "instructions": [
                "在您的 Mac 上安装 BlueBubbles 服务器",
                "记下服务器地址和密码",
                "在下方输入连接详情"
            ]
        },
        "matrix": {
            "description": "连接到 Matrix 协议",
            "docsUrl": "https://docs.openclaw.ai/zh-CN/channels/matrix",
            "fields": {
                "homeserver": {
                    "label": "Homeserver 地址",
                    "placeholder": "https://matrix.org"
                },
                "accessToken": {
                    "label": "访问令牌 (Access Token)",
                    "placeholder": "您的访问令牌"
                }
            },
            "instructions": [
                "创建一个 Matrix 账户或使用现有账户",
                "从您的客户端获取访问令牌",
                "在下方输入 Homeserver 地址和令牌"
            ]
        },
        "line": {
            "description": "连接 LINE Messaging API",
            "docsUrl": "https://docs.openclaw.ai/channels/line",
            "fields": {
                "channelAccessToken": {
                    "label": "频道访问令牌",
                    "placeholder": "您的 LINE 频道访问令牌"
                },
                "channelSecret": {
                    "label": "频道密钥",
                    "placeholder": "您的 LINE 频道密钥"
                }
            },
            "instructions": [
                "前往 LINE 开发者控制台",
                "创建一个 Messaging API 频道",
                "获取频道访问令牌和密钥"
            ]
        },
        "msteams": {
            "description": "通过 Bot Framework 连接 Microsoft Teams",
            "docsUrl": "https://docs.openclaw.ai/channels/msteams",
            "fields": {
                "appId": {
                    "label": "应用 ID",
                    "placeholder": "您的 Microsoft 应用 ID"
                },
                "appPassword": {
                    "label": "应用密码",
                    "placeholder": "您的 Microsoft 应用密码"
                }
            },
            "instructions": [
                "前往 Azure 门户",
                "注册一个新的 Bot 应用",
                "获取应用 ID 并创建密码",
                "配置 Teams 频道"
            ]
        },
        "googlechat": {
            "description": "通过 Webhook 连接 Google Chat",
            "docsUrl": "https://docs.openclaw.ai/channels/googlechat",
            "fields": {
                "serviceAccountKey": {
                    "label": "服务账号 JSON 路径",
                    "placeholder": "/path/to/service-account.json"
                }
            },
            "instructions": [
                "创建 Google Cloud 项目",
                "启用 Google Chat API",
                "创建服务账号",
                "下载 JSON 密钥文件"
            ]
        },
        "mattermost": {
            "description": "通过 Bot API 连接 Mattermost",
            "docsUrl": "https://docs.openclaw.ai/channels/mattermost",
            "fields": {
                "serverUrl": {
                    "label": "服务器地址",
                    "placeholder": "https://your-mattermost.com"
                },
                "botToken": {
                    "label": "机器人访问令牌",
                    "placeholder": "您的机器人访问令牌"
                }
            },
            "instructions": [
                "前往 Mattermost 集成",
                "创建一个新的 Bot 账户",
                "复制访问令牌"
            ]
        },
        "qqbot": {
            "description": "连接 QQ 机器人频道（OpenClaw 3.31 起内置）",
            "docsUrl": "https://icnnp7d0dymg.feishu.cn/wiki/KPIJwlyiGiupMrkiS9ice39Zn2c",
            "fields": {
                "appId": {
                    "label": "App ID",
                    "placeholder": "您的 QQ 机器人 App ID"
                },
                "clientSecret": {
                    "label": "Client Secret",
                    "placeholder": "您的 QQ 机器人 Client Secret"
                }
            },
            "instructions": [
                "前往 QQ 机器人开放平台注册应用",
                "获取 App ID 和 Client Secret",
                "在下方填写凭证信息"
            ]
        }
    },
    "viewDocs": "查看文档"
}
