// web:本机界面接口(src/web/server.ts)的报错。zh 与 en 的键必须一一对应(en 的类型由 zh 推出)。 import type { Catalog } from "../types.js"; export const zh = { needJson: "需要 application/json", bodyTooLarge: "请求体过大", needToken: "需要访问令牌:打开 /?token=<令牌>", externalNoConnection: "外部模型端点模式下不管理 Modelflare 连接", externalNoAccount: "外部模型端点模式下不管理 Modelflare 账户", officialBadKey: "Key 不能为空,也不能有空格", lowBalanceRange: "提醒线要在 0 到 1000 美元之间", badZoom: "不支持的缩放比例", badReasoningEffort: "不认识的推理强度", badLang: "不支持的语言", badSearchProvider: "不支持的搜索接口", badSearchUrl: "SearXNG 地址要以 http:// 或 https:// 开头", notionTokenRejected: "Notion 拒绝了这个令牌,请检查后重新填写", feishuAppIncomplete: "App ID 和 App Secret 要一起填", badAccountName: "名字不能为空,也不能只有数字", accountNameTaken: "这个名字已经有账号在用了,换一个吧", oauthDone: "已连接", oauthClose: "可以关闭这个页面,回到 AnyModelBot 了。", oauthFailed: "没有连接成功", oauthFailedRetry: "请回到 AnyModelBot 重新授权。", noAutostart: "当前环境不支持开机自启", desktopOnly: "仅桌面版可用", unknownGuideStep: "未知的引导步骤", botNotFound: "机器人不存在", requestNotFound: "请求不存在", notApproval: "不是审批请求", requestDone: "请求已处理或已过期", submitFailed: "提交失败", conversationNotFound: "会话不存在", messageNotFound: "消息已不存在或不在可见的聊天记录中", badMessageSearch: "搜索条件无效,请检查关键词、时间范围或重新搜索", fileNotFound: "找不到这个文件", nameRequired: "名称不能为空", budgetRange: "预算要在 0 到 100000 美元之间", groupNotOwned: "群不属于该机器人", groupNotFound: "群聊不存在", groupTooFew: "群聊至少要有两个机器人", groupRelayLimit: "机器人之间接力了 {n} 次,先停在这里。想继续就发一句话。", emptyText: "内容为空", alreadyHandled: "已经处理过了", unsupportedAction: "不支持这个操作", couldntComplete: "没能完成,可能已经处理过了", taskNotFound: "任务不存在", runNotFound: "没有这次运行", taskAlreadyStopped: "任务已经停止了", badGroup: "分组只能是 working、needs 或 ended", windowsOnly: "只在 Windows 上需要", recordNotFound: "记录不存在", requestAlreadyHandled: "这个请求已经处理过了", noSuchChannel: "没有这个渠道", weixinOwnerRescan: "微信主人要重新扫码才能更换", } satisfies Catalog; export const en: Catalog = { needJson: "Expected application/json", bodyTooLarge: "Request body too large", needToken: "Access token required: open /?token=", externalNoConnection: "The Modelflare connection isn't managed in external endpoint mode", externalNoAccount: "The Modelflare account isn't managed in external endpoint mode", officialBadKey: "The key can't be empty or contain spaces", lowBalanceRange: "The alert threshold must be between $0 and $1,000", badZoom: "Unsupported zoom level", badReasoningEffort: "Unknown reasoning effort", badLang: "Unsupported language", badSearchProvider: "Unsupported search provider", badSearchUrl: "The SearXNG address must start with http:// or https://", notionTokenRejected: "Notion rejected this token. Check it and try again.", feishuAppIncomplete: "Enter both the App ID and the App Secret", badAccountName: "The name can't be empty or only numbers", accountNameTaken: "Another account already uses this name. Pick a different one.", oauthDone: "Connected", oauthClose: "You can close this page and go back to AnyModelBot.", oauthFailed: "Couldn't connect", oauthFailedRetry: "Go back to AnyModelBot and authorize again.", noAutostart: "Launch at login isn't supported here", desktopOnly: "Only available in the desktop app", unknownGuideStep: "Unknown checklist step", botNotFound: "Bot not found", requestNotFound: "Request not found", notApproval: "Not an approval request", requestDone: "This request was already handled or has expired", submitFailed: "Couldn't submit", conversationNotFound: "Conversation not found", messageNotFound: "This message no longer exists or is not in visible chat history", badMessageSearch: "Invalid search. Check the query and date range, or start a new search", fileNotFound: "File not found", nameRequired: "Name can't be empty", budgetRange: "The budget must be between $0 and $100,000", groupNotOwned: "This group doesn't belong to this bot", groupNotFound: "Group chat not found", groupTooFew: "A group chat needs at least two bots", groupRelayLimit: "The bots handed off to each other {n} times, so they stopped here. Send a message to continue.", emptyText: "Message is empty", alreadyHandled: "Already handled", unsupportedAction: "This action isn't supported", couldntComplete: "Couldn't complete it; it may already have been handled", taskNotFound: "Task not found", runNotFound: "Run not found", taskAlreadyStopped: "The task has already stopped", badGroup: "group must be working, needs or ended", windowsOnly: "Only needed on Windows", recordNotFound: "Record not found", requestAlreadyHandled: "This request has already been handled", noSuchChannel: "No such channel", weixinOwnerRescan: "To change the WeChat owner, scan the QR code again", };