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.

5.4 KB
Raw Blame
// Shared app chrome, connection states, fixed error texts and run states.
export const baseZh = {
  chat: "对话",
  tasks: "任务",
  approvals: "审批",
  devices: "设备",
  back: "返回",
  more: "更多",
  close: "关闭",
  cancel: "取消",
  confirm: "确认",
  loading: "正在加载…",
  loadEarlier: "加载更早的内容",
  jumpLatest: "回到最新",
  newMessages: "{count} 条新消息",
  online: "在线",
  offline: "电脑离线",
  offlineLastSeen: "电脑离线 · 最后在线:{time}",
  linkLastSeen: "最后在线:{time}",
  linkRetryQuiet: "电脑上线后会自动连上。这期间可以用手机上的模型直接对话,并指挥已授权的执行端。",
  updatedAgo: "更新于 {time}",
  connecting: "正在连接…",
  reconnecting: "重新连接中…",
  suspended: "应用在后台,连接已暂停",
  reconnect: "重新连接",
  storageError: "无法读取或保存本机数据",
  failed: "操作失败,请重试",
  uncertain: "结果尚未确认,请刷新核对",
  unavailable: "远控连接组件尚未接入",
  stale: "记录已变化,请刷新后重试",
  busy: "正在处理,请稍候",
  invalid: "输入无效或二维码已失效",
  outboxFull: "待发队列已满,请等待消息发送后再试",
  actionsOffline: "电脑离线,这个操作不会排队",
  unsupported: "电脑上的 Pi Bot 还不支持这个操作,请先更新电脑端",
  forgetFailed: "本机资料未完全删除,请重试解除配对",
  denied: "未获得权限或本机验证没有通过",
  unlockUnavailable:
    "这台手机没有设置锁屏密码,也没有录入面容或指纹,无法验证身份,操作没有执行。请先在系统设置里设置锁屏密码",
  unlockLocked: "验证失败次数过多,请稍后再试,或先用锁屏密码解锁手机",
  notifyDenied: "通知权限被关闭,请在系统设置里允许 Pi Bot 发送通知",
  nativeUnavailable: "手机的系统功能暂时不可用,请重试",
  pushUnavailable: "推送尚未配置或当前设备不支持",
  invalidTime: "请选择未来的时间",
  deviceLimit: "最多配对 16 台电脑",
  unlock: "解锁以继续",
  today: "今天",
  yesterday: "昨天",
  justNow: "刚刚",
  minutesAgo: "{count} 分钟前",
  hoursAgo: "{count} 小时前",
  seconds: "{s} 秒",
  minutes: "{m} 分 {s} 秒",
  hours: "{h} 小时 {m} 分",
  runQueued: "排队中",
  runRunning: "运行中",
  runWaiting: "等待中",
  runDone: "完成",
  runFailed: "失败",
  runStopped: "已停止",
  runInterrupted: "已中断",
  runStopping: "正在停止",
  runScheduled: "待运行",
  runMissed: "已错过",
  runCancelled: "已取消",
  runSkipped: "已跳过",
  runExpired: "已过期",
  status: "状态",
} as const;
export const baseEn: Record<keyof typeof baseZh, string> = {
  chat: "Chats",
  tasks: "Tasks",
  approvals: "Approvals",
  devices: "Devices",
  back: "Back",
  more: "More",
  close: "Close",
  cancel: "Cancel",
  confirm: "Confirm",
  loading: "Loading…",
  loadEarlier: "Load earlier",
  jumpLatest: "Jump to latest",
  newMessages: "{count} new messages",
  online: "Online",
  offline: "Computer offline",
  offlineLastSeen: "Computer offline · last seen: {time}",
  linkLastSeen: "Last seen: {time}",
  linkRetryQuiet:
    "Connects again by itself when the computer is back. Meanwhile, chat with the phone's own model and direct authorized runners.",
  updatedAgo: "Updated: {time}",
  connecting: "Connecting…",
  reconnecting: "Reconnecting…",
  suspended: "Connection paused in background",
  reconnect: "Reconnect",
  storageError: "Cannot read or save local data",
  failed: "Something went wrong. Try again",
  uncertain: "Outcome unconfirmed. Refresh to check",
  unavailable: "Remote transport is not integrated yet",
  stale: "This changed. Refresh and try again",
  busy: "Still working on it",
  invalid: "Invalid input or expired pairing code",
  outboxFull: "Outbox full. Wait for pending messages to send",
  actionsOffline: "Computer offline. This action is not queued",
  unsupported: "Pi Bot on your computer does not support this yet. Update it first",
  forgetFailed: "Local removal is incomplete. Retry unpairing",
  denied: "Permission denied or verification failed",
  unlockUnavailable:
    "This phone has no screen lock and no face or fingerprint enrolled, so it cannot verify you. Nothing was done. Set a screen lock in system settings first",
  unlockLocked:
    "Too many failed attempts. Try again later, or unlock the phone with its passcode first",
  notifyDenied:
    "Notifications are turned off. Allow Pi Bot to send notifications in system settings",
  nativeUnavailable: "A phone system feature is unavailable right now. Try again",
  pushUnavailable: "Push is not configured or unavailable on this device",
  invalidTime: "Choose a time in the future",
  deviceLimit: "Up to 16 paired computers",
  unlock: "Unlock to continue",
  today: "Today",
  yesterday: "Yesterday",
  justNow: "Just now",
  minutesAgo: "{count} min ago",
  hoursAgo: "{count} h ago",
  seconds: "{s}s",
  minutes: "{m}m {s}s",
  hours: "{h}h {m}m",
  runQueued: "Queued",
  runRunning: "Running",
  runWaiting: "Waiting",
  runDone: "Done",
  runFailed: "Failed",
  runStopped: "Stopped",
  runInterrupted: "Interrupted",
  runStopping: "Stopping",
  runScheduled: "Scheduled",
  runMissed: "Missed",
  runCancelled: "Cancelled",
  runSkipped: "Skipped",
  runExpired: "Expired",
  status: "Status",
};