Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

2.8 KB
Raw Blame
// approvals:zh 与 en 的键必须一一对应(en 的类型由 zh 推出,少一个多一个都过不了类型检查)。
import type { Catalog } from "../types.js";

export const zh = {
  noSuchCode: "⚠️ 没有编号为 {code} 的待批准请求(可能已过期或已处理)",
  needCode: "有 {count} 个待批准请求,请带上编号回复,例如 y {code}",
  expiredOrDone: "⚠️ 请求 {code} 已过期或已处理",
  approved: "✅ 已批准 {code}(仅本次)",
  rejected: "❌ 已拒绝 {code}",
  prompt: "需批准: {tool}{cmd}{why} — 回复 y {code} / n {code}",
  promptWhy: "({reason})",
  hintMulti: "(每行回答一个问题:回复编号或直接写答案)",
  hintOptions: "(回复编号{multi},或直接写答案)",
  hintOptionsMulti: ",可多选用逗号分隔",
  hintFree: "(直接回复答案)",
  replyYesNo: "回复 y {code} 批准,n {code} 拒绝",
  quoteNeedsAnswer: "引用时写上你的回答",
  alreadyAnswered: "这个问题已经回答过了",
  taskApproval: "需批准(任务「{title}」):{what} — 回复 y {code} / n {code}",
  taskQuestion: "❓「{title}」想问你:{question}",
  taskHintOptions: "(回复编号{multi},或引用这条消息回答)",
  taskHintMulti: ",可多选",
  taskHintQuote: "(引用这条消息回答)",
  taskDefault: "不回复就按{answer}做",
  allowOnce: "允许(仅本次)",
  deny: "拒绝",
} satisfies Catalog;

export const en: Catalog<typeof zh> = {
  noSuchCode: "⚠️ No request {code} is awaiting approval (it may have expired or been handled)",
  needCode: "{count} requests are awaiting approval; reply with the code, e.g. y {code}",
  expiredOrDone: "⚠️ Request {code} has expired or was already handled",
  approved: "✅ Approved {code} (this time only)",
  rejected: "❌ Denied {code}",
  prompt: "Approval needed: {tool}{cmd}{why} — reply y {code} / n {code}",
  promptWhy: " ({reason})",
  hintMulti: "(Answer one question per line: reply with an option number or type your answer)",
  hintOptions: "(Reply with an option number{multi}, or type your answer)",
  hintOptionsMulti: " or several separated by commas",
  hintFree: "(Type your answer)",
  replyYesNo: "Reply y {code} to approve or n {code} to deny",
  quoteNeedsAnswer: "Write your answer when you quote the message",
  alreadyAnswered: "This question has already been answered",
  taskApproval: "Approval needed (task \"{title}\"): {what} — reply y {code} / n {code}",
  taskQuestion: "❓ \"{title}\" asks: {question}",
  taskHintOptions: "(reply with a number{multi}, or quote this message to answer)",
  taskHintMulti: "; you can pick several",
  taskHintQuote: "(quote this message to answer)",
  taskDefault: "If you don't reply, it goes with {answer}",
  allowOnce: "Allow (once)",
  deny: "Deny",
};