Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

14.7 KB
Raw Blame
// Devices tab and pairing.
export const devicesZh = {
  deviceOnline: "在线",
  pathDirect: "直连",
  pathRelay: "经中继",
  pathLan: "直连 · 局域网",
  pathTunnel: "直连 · 隧道",
  pathDirectHint: "设备间直接传输,端到端加密",
  pathTunnelHint: "不在同一网络,经互联网隧道直接传输,端到端加密",
  pathRelayHint: "中继只看到密文;可直连时会自动切换",
  directFailure_peer_vpn_active:
    "手机开着 VPN,可能拦住了局域网直连。请在 VPN 应用里打开「绕过局域网」(或让 Pi Bot 不走 VPN);当前继续经中继连接。",
  directFailure_local_tun_proxy:
    "电脑开着代理 / VPN 的 TUN 模式,可能拦住了局域网直连。请在代理软件里打开「绕过局域网」;当前继续经中继连接。",
  directFailure_different_subnet:
    "候选地址未发现共同子网,局域网发现可能不可用;当前继续经中继连接。",
  directFailure_local_mdns_only: "一端只提供了 .local 候选,直连未完成;当前继续经中继连接。",
  directFailure_ice_timeout:
    "直连 ICE 建连超时,请检查 VPN、防火墙或网络隔离;当前继续经中继连接。",
  directFailure_rtc_unavailable: "直连组件未能启动,当前继续经中继连接。",
  directFailure_signaling_failed: "直连协商未完成,当前继续经中继连接。",
  directFailure_negotiation_timeout:
    "直连等待超时。请检查两端 VPN 的局域网访问和 Wi-Fi 客户端隔离;当前继续经中继连接。",
  directFailure_no_candidates:
    "未收集到两端可用的直连候选。请检查局域网权限、VPN 和网络设置;当前继续经中继连接。",
  directFailure_ice_failed:
    "直连网络连通检查失败。请检查 VPN、Wi-Fi 客户端隔离或防火墙;当前继续经中继连接。",
  directFailure_channel_failed: "直连数据通道中断,已回落到中继。",
  directFailure_noise_failed: "直连加密握手未完成,当前继续经中继连接。",
  directFailure_switch_failed: "直连切换未完成,当前继续经中继连接。",
  directFailure_probe_failed: "直连通道打开后没有应答,当前继续经中继连接,稍后会自动再试。",
  directFailure_path_mtu:
    "直连路径传不了较大的数据包(VPN 或代理隧道里常见),当前继续经中继连接,稍后会自动再试。",
  room_empty: "电脑没有连到中继,请检查电脑上的 Pi Bot。",
  session_timeout: "连接等待超时,请检查电脑上的 Pi Bot。",
  relay_unavailable: "中继不可达,可能需要代理或换自建中继。",
  handshake_failed: "电脑身份握手失败,请重新连接或重新配对。",
  connection_failed: "连接失败,请检查电脑上的 Pi Bot。",
  deviceOffline: "离线",
  batteryRestrictedTitle: "电池设置为「受限」",
  batteryRestrictedHint:
    "手机息屏或切到后台后,系统会冻结 Pi Bot,和电脑的连接随即断开。在应用信息里点「电池」,选「不受限制」。",
  batteryOptimizedTitle: "电池优化已开启",
  batteryOptimizedHint:
    "系统省电时可能断开 Pi Bot 和电脑的后台连接。在应用信息里点「电池」,选「不受限制」可保持连接。",
  batteryOpen: "打开设置",
  linkServiceOnline: "Pi Bot 远程控制已连接",
  linkServiceReconnecting: "Pi Bot 正在重新连接…",
  linkServiceChannel: "远程控制连接",
  linkServiceWake: "Pi Bot 正在处理电脑的请求",
  keepConnected: "保持连接",
  keepConnectedHint:
    "切到后台或息屏后也和电脑保持连接,通知栏会常驻一条「远程控制已连接」。更耗电。",
  code: "安全码",
  codeHint: "和电脑「设置 › 设备」里这台手机的数字对照",
  connectedComputer: "这台手机连接的电脑",
  relay: "中继",
  notifySection: "通知",
  notifyTitle: "通知",
  notifyHint: "审批、回复和任务结束时提醒。只显示 Bot 名字和「需要你审批」这类短句,不含内容",
  pushTitle: "后台推送",
  pushNotSetUp: "这个版本还没设置远程推送:App 在后台超过 30 秒后收不到提醒,打开 App 时照常提醒",
  pushNoDevice: "模拟器收不到远程推送,打开 App 时照常提醒",
  pushOff: "通知已关闭,电脑不会再推送到这台手机",
  pushOn: "已开启。App 不在前台时,电脑经中继推送通用提醒",
  pushPending: "连上电脑并允许通知后自动开启",
  channelApprovals: "审批",
  channelTasks: "回复和任务",
  noticeApproval: "需要你审批",
  noticeTakeover: "需要你接管浏览器登录",
  noticeReplyDone: "回复好了",
  noticeReplyFailed: "回复出错了",
  noticeTaskDone: "任务完成了",
  noticeTaskFailed: "任务没有完成",
  androidPush: "没有 Google 服务的安卓手机收不到后台推送,打开 App 时照常提醒。",
  faceSetting: "危险操作前验证面容 ID",
  faceSettingHint:
    "允许危险审批、打开 YOLO、撤回改动、接管 Bot 浏览器、放宽 Bot 权限、删除记忆和移出群成员前都要先解锁,始终开启",
  connectionSection: "连接",
  relayHint: "{host} · 只转发加密数据,看不到内容;只按天计连接次数",
  scopeTitle: "手机能做的事",
  scopeHint: "对话、任务、审批和 Bot / 群设置。密钥、模型厂商和导入只能在电脑上",
  otherComputers: "其他电脑",
  connect: "连接",
  unpair: "解除配对",
  unpairTitle: "解除和这台电脑的配对?",
  unpairHint:
    "手机上的密钥、缓存和待发消息会被删除。电脑上的设备记录请在电脑端撤销。要再连接,需要重新扫码。",
  devicesFoot: "要换一台电脑:先解除配对,再在新电脑上扫码。",
  appVersion: "Pi Bot 手机端 {version}",
  desktopVersion: "电脑端 {version}",
  compatUpdatePhone: "电脑上的 Pi Bot 已更新到 {version},请更新手机应用",
  compatUpdateDesktop: "请更新电脑上的 Pi Bot(当前 {version})",
  compatDownload: "下载",
  skippedItems: "电脑发来的部分条目这个版本的手机应用认不出,已跳过;更新手机应用后就能看到",
  pairTitle: "连接你的电脑",
  pairScan: "扫码配对",
  pairHint: "在电脑上打开 Pi Bot,进入「设置 › 设备」,点「添加设备 › 手机(扫码)」后扫描二维码。",
  pairStep1: "二维码 10 分钟内有效,只能用一次",
  pairStep2: "扫码后两边会显示同一组安全码",
  pairStep3: "中继只转发加密数据,不需要注册账号",
  allowCamera: "允许使用相机扫码",
  cameraDenied: "相机权限被拒绝,请去系统设置里允许相机",
  pasteCode: "粘贴配对码",
  pastePlaceholder: "电脑上「复制配对码」得到的内容",
  startPair: "开始配对",
  pairing: "正在配对…",
  checkTitle: "核对安全码",
  checkHint: "电脑「{name}」上显示的数字和下面一样吗?",
  checkNote: "一样说明连接没有被别人截获。不一样就取消,重新扫码。",
  codeMatches: "一样,完成配对",
  codeMismatch: "不一样,取消",
  connectedToast: "已连接 {name}",
  phone: "我的手机",
} as const;
export const devicesEn: Record<keyof typeof devicesZh, string> = {
  deviceOnline: "Online",
  pathDirect: "Direct",
  pathRelay: "Via relay",
  pathLan: "Direct · LAN",
  pathTunnel: "Direct · tunnel",
  pathDirectHint: "Sent directly between devices, end-to-end encrypted",
  pathTunnelHint:
    "On different networks, sent directly through an internet tunnel, end-to-end encrypted",
  pathRelayHint: "The relay sees only ciphertext; switches to direct when available",
  directFailure_peer_vpn_active:
    'A VPN on the phone may be blocking the LAN direct link. Turn on "Bypass LAN" in the VPN app (or exclude Pi Bot). Continuing via relay.',
  directFailure_local_tun_proxy:
    'A proxy or VPN in TUN mode on the computer may be blocking the LAN direct link. Turn on "Bypass LAN" in it. Continuing via relay.',
  directFailure_different_subnet:
    "No shared subnet was found among the candidates. LAN discovery may be unavailable. Continuing via relay.",
  directFailure_local_mdns_only:
    "One endpoint provided only .local candidates. Direct connection failed. Continuing via relay.",
  directFailure_ice_timeout:
    "ICE connection timed out. Check VPN, firewall, or network isolation. Continuing via relay.",
  directFailure_rtc_unavailable:
    "The direct connection component could not start. Continuing via relay.",
  directFailure_signaling_failed:
    "Direct connection negotiation did not complete. Continuing via relay.",
  directFailure_negotiation_timeout:
    "Direct connection timed out. Check LAN access in both VPNs and Wi-Fi client isolation. Continuing via relay.",
  directFailure_no_candidates:
    "No direct connection candidates were collected on one or both devices. Check local network permissions, VPN and network settings. Continuing via relay.",
  directFailure_ice_failed:
    "Direct connectivity checks failed. Check VPN, Wi-Fi client isolation or firewall settings. Continuing via relay.",
  directFailure_channel_failed: "The direct data channel closed. Switched back to relay.",
  directFailure_noise_failed:
    "The direct encryption handshake did not complete. Continuing via relay.",
  directFailure_switch_failed:
    "The switch to a direct connection did not complete. Continuing via relay.",
  directFailure_probe_failed:
    "The direct channel opened but did not answer. Continuing via relay; it will try again shortly.",
  directFailure_path_mtu:
    "The direct route drops larger packets (common inside a VPN or proxy tunnel). Continuing via relay; it will try again shortly.",
  room_empty: "The computer is not connected to the relay. Check Pi Bot on the computer.",
  session_timeout: "The connection timed out. Check Pi Bot on the computer.",
  relay_unavailable: "The relay is unreachable. You may need a proxy or another relay.",
  handshake_failed: "The computer identity handshake failed. Reconnect or pair again.",
  connection_failed: "Connection failed. Check Pi Bot on the computer.",
  deviceOffline: "Offline",
  batteryRestrictedTitle: "Battery is set to Restricted",
  batteryRestrictedHint:
    "When the screen turns off or you switch apps, Android freezes Pi Bot and the link to your computer drops. In App info, tap Battery and choose Unrestricted.",
  batteryOptimizedTitle: "Battery optimization is on",
  batteryOptimizedHint:
    "Power saving may cut Pi Bot's background link to your computer. In App info, tap Battery and choose Unrestricted to stay connected.",
  batteryOpen: "Open settings",
  linkServiceOnline: "Pi Bot remote control connected",
  linkServiceReconnecting: "Pi Bot is reconnecting…",
  linkServiceChannel: "Remote control link",
  linkServiceWake: "Pi Bot is handling a request from your computer",
  keepConnected: "Stay connected",
  keepConnectedHint:
    'Keep the link to your computer in the background and with the screen off. A "remote control connected" notification stays in the shade. Uses more battery.',
  code: "Safety code",
  codeHint: "Compare with this phone in Settings › Devices on the computer",
  connectedComputer: "Computer this phone connects to",
  relay: "Relay",
  notifySection: "Notifications",
  notifyTitle: "Notifications",
  notifyHint:
    "For approvals, replies and finished tasks. Only the Bot's name and a short phrase like “Needs your approval”, never any content",
  pushTitle: "Background push",
  pushNotSetUp:
    "Remote push is not set up in this build: no alerts once the app has been in the background for 30 seconds. Alerts still show while the app is open",
  pushNoDevice: "Simulators cannot receive remote push. Alerts still show while the app is open",
  pushOff: "Notifications are off; the computer no longer pushes to this phone",
  pushOn: "On. When the app is not open, the computer sends generic alerts through the relay",
  pushPending: "Turns on by itself once the computer is connected and notifications are allowed",
  channelApprovals: "Approvals",
  channelTasks: "Replies and tasks",
  noticeApproval: "Needs your approval",
  noticeTakeover: "Needs you to take over the browser and sign in",
  noticeReplyDone: "Replied",
  noticeReplyFailed: "Reply failed",
  noticeTaskDone: "Task finished",
  noticeTaskFailed: "Task didn't finish",
  androidPush:
    "Android phones without Google services cannot receive background push. Alerts still show while the app is open.",
  faceSetting: "Face ID before dangerous actions",
  faceSettingHint:
    "Unlock before allowing dangerous approvals, turning on YOLO, restoring changes, taking over the Bot browser, loosening Bot permissions, deleting memories or removing group members. Always on",
  connectionSection: "Connection",
  relayHint:
    "{host} · forwards encrypted data only, cannot read it; only counts connections per day",
  scopeTitle: "What the phone can do",
  scopeHint:
    "Chats, tasks, approvals and Bot / group settings. Keys, model providers and imports stay on the computer",
  otherComputers: "Other computers",
  connect: "Connect",
  unpair: "Unpair",
  unpairTitle: "Unpair this computer?",
  unpairHint:
    "Keys, cache and pending messages on this phone are deleted. Revoke the device record on the computer separately. Reconnecting needs a new scan.",
  devicesFoot: "To switch computers: unpair first, then scan on the new computer.",
  appVersion: "Pi Bot mobile {version}",
  desktopVersion: "Desktop {version}",
  compatUpdatePhone:
    "Pi Bot on your computer was updated to {version}. Please update the phone app",
  compatUpdateDesktop: "Please update Pi Bot on your computer (now {version})",
  compatDownload: "Download",
  skippedItems:
    "Some items from your computer are not readable by this version of the phone app and were left out. Update the phone app to see them",
  pairTitle: "Connect your computer",
  pairScan: "Scan to pair",
  pairHint:
    "Open Pi Bot on your computer, go to Settings › Devices, choose Add device › Phone (scan) and scan the QR code.",
  pairStep1: "The QR code works once, within 10 minutes",
  pairStep2: "Both sides show the same safety code after scanning",
  pairStep3: "The relay only forwards encrypted data; no account needed",
  allowCamera: "Allow camera to scan",
  cameraDenied: "Camera access was denied. Allow it in system settings",
  pasteCode: "Paste pairing code",
  pastePlaceholder: "The text from “Copy pairing code” on the computer",
  startPair: "Start pairing",
  pairing: "Pairing…",
  checkTitle: "Check the safety code",
  checkHint: "Does the computer “{name}” show the same digits as below?",
  checkNote: "If they match, nobody intercepted the connection. If not, cancel and scan again.",
  codeMatches: "They match, finish pairing",
  codeMismatch: "They differ, cancel",
  connectedToast: "Connected to {name}",
  phone: "My phone",
};