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.

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

export const zh = {
  // 装在哪儿
  sourceProgramFiles: "安装目录",
  sourcePath: "PATH",
  sourcePreview: "预览版",
  sourceStore: "Microsoft Store",
  sourcePrivate: "应用内置",
  // 应用内置 PowerShell 7 的安装进度
  installWaiting: "准备中",
  installDownloading: "下载 {received} / {total} MB{pct}",
  installPct: "({n}%)",
  installExtracting: "解压",
  installVerifying: "核对签名",
  installTesting: "试运行",
  installDone: "已装好",
  installFailed: "没装上:{error}",
  unknownReason: "未知原因",
  slow: "代理执行命令用的是系统自带的 Windows PowerShell 5.1,每条可能要二三十秒",
  // 聊天里 /status 的一行
  statusChecking: "PowerShell:检测中",
  statusFallback: ";之前用的 {from} 起不来({reason}),已自动换掉",
  statusOk: "PowerShell:{version}(代理用它执行命令)",
  statusOkPrivate: "PowerShell:{version}(应用内置,代理用它执行命令)",
  statusInstalling: "PowerShell:正在为代理安装 PowerShell 7…{progress}。装好之前命令照常用 Windows PowerShell 5.1",
  statusPrivateBad: "PowerShell:应用内置的 PowerShell 7 用不了({reason}),{slow}。在 设置 → 故障排查 里可以一键重新安装",
  statusInstallFailed: "PowerShell:为代理安装 PowerShell 7 没有成功({error}),{slow}。在 设置 → 故障排查 里可以重试,或者自己安装:{winget}",
  statusUnsupported: "PowerShell:{reason},{slow}",
  statusSystemIssue: "系统里的 PowerShell 7 用不了({issue}),{slow}",
  statusOld: "PowerShell {version} 版本较旧,{slow}",
  statusNone: "没有安装 PowerShell 7,{slow}",
  adviceInstall: "装上 PowerShell 7,命令执行快得多,也更稳定:{winget}(或打开 {url})",
  advicePrivate: "应用可以自己装一份(不需要管理员权限):设置 → 故障排查 → 安装;或者:{winget}",
  statusAdvice: "PowerShell:{now}。{how}",
  // 诊断报告里的几行
  reportChecking: "[PowerShell] 检测中",
  reportWhere: " · {path}({source})",
  reportUnknownVersion: "7(版本未知)",
  reportOk: "[PowerShell] {version}{where} · 代理用它执行命令",
  reportSystemIssue: "[PowerShell] 系统里的 PowerShell 7 用不了{where} · {issue} · 代理用 {using}",
  reportDshDefault51: "Windows PowerShell 5.1(DSH 默认)",
  reportOld: "[PowerShell] {version} 版本较旧{where} · 建议安装 PowerShell 7",
  reportNone: "[PowerShell] 未安装 PowerShell 7:代理用 Windows PowerShell 5.1 执行命令(经沙箱每条约 25 秒,7 约 1 秒){forced}",
  reportForced: " · AMB_PWSH_FORCE 模拟",
  reportFallback: "  自动退回 {at}:{from} → {to} · {reason}",
  reportDshDefault: "DSH 默认",
  privateUnsupported: "不能装:{reason}",
  privateReady: "已就绪 · 试运行通过{test}",
  privateTest: "({ms} ms,{at})",
  privateBad: "用不了:{reason}",
  privateUntested: "已装,还没试运行",
  privateNotInstalled: "未安装",
  privateInstall: " · 安装:{progress}",
  policySystem: "已改回系统默认",
  policyAuto: "缺 7 时自动安装",
  policyManual: "不自动安装",
  privateLine: "  内置 PowerShell {version}{arch} · {state}{inst}{dir} · {policy}{ignore}",
  whyMissing: "找不到 pwsh.exe(可能被杀毒软件删除或隔离)",
  whyDenied: "没有权限运行它(可能被安全软件拦截)",
  whyAntivirus: "被杀毒软件拦截",
  whyPolicy: "被系统策略禁止运行(AppLocker / 软件限制策略)",
  whyWdac: "被 Windows Defender 应用程序控制拦截",
  whyBadExe: "文件损坏,或不是这台电脑能运行的程序",
  whyCorrupt: "文件已损坏",
  whyCantStart: "拉不起来",
  whyLine: "{why}({detail})",
  agentCantStart: "代理拉不起它:{reason}",
  testFailed: "试运行没通过:{error}",
  noticeInstalled: "已为代理装好 PowerShell {version}(应用内置,不影响你自己的 PowerShell),代理执行命令会快很多。",
  noticeInstallFailed: "为代理安装 PowerShell 7 没有成功:{error}。代理照常用 Windows PowerShell 5.1 执行命令;可在 设置 → 故障排查 里重试。",
  noticeSystemTestFailed: "系统里的 PowerShell({path})试运行没通过:{error}。代理改用{to}执行命令。",
  noticeFellBack: "代理用的 PowerShell 起不来({exe}:{reason}),已自动改用{to},代理空闲时生效。可在 设置 → 故障排查 里重新安装或重新检测。",
  descSystem51: "系统自带的 Windows PowerShell 5.1",
  descPrivate7: "应用内置的 PowerShell 7",
  privTimeout: "{s} 秒内没有跑完",
  privCantStart: "拉不起来:{error}",
  privUnexpected: "没有得到预期输出(退出码 {code}){out}",
  privColon: ":{text}",
  privRwFailed: "读写临时文件失败",
  privExtFailed: "拉起外部程序失败",
  privNot7: "版本是 {v},不是 PowerShell 7",
  privWrongVersion: "版本是 {v},应为 {want}",
  privSigTimeout: "Windows PowerShell 3 分钟内没有给出签名结果",
  privSigFailed: "Windows PowerShell 核对签名失败:{error}",
  privExitCode: "退出码 {code}",
  privSigUnreadable: "看不懂签名结果:{out}",
  privSigCount: "签名结果数目不对",
  privSigInvalid: "{name} 的签名无效({status})",
  privNoSig: "无签名",
  privNotMs: "{name} 不是 Microsoft 签名的({subject})",
  privUnzipFailed: "解压失败:{error}",
  privTimedOut: "超时",
  privOldWindows: "这台电脑的 Windows 版本较旧({release}),PowerShell {version} 需要 Windows 10 1607 / Windows Server 2016 或更新的系统",
  privStall: "{s} 秒没有收到数据",
  privDownloadTimeout: "下载超时",
  privSizeWrong: "文件大小不对({len} 字节,应为 {size})",
  privTooBig: "文件比预期大(超过 {size} 字节)",
  privHash: "SHA256 不符({got}…,应为 {want}…)",
  privWindowsOnly: "只在 Windows 上需要",
  privNoArch: "这台电脑的处理器架构没有对应的 PowerShell 7 安装包",
  privFileMissing: "文件 {file} 不见了(可能被杀毒软件删除或隔离)",
  privSigNotPassed: "签名核对没通过:{error}",
  privArchUnsupported: "不支持的处理器架构",
  privInstalling: "正在安装",
  privBadCopy: "已装的副本用不了({reason}),需要手动重新安装",
  privAlreadyInstalled: "已经装好",
  privAutoFailedN: "自动安装已经失败 {n} 次",
  privAutoBackoff: "上次自动安装失败,稍后再试",
  privCantInstall: "这台电脑装不了",
  privMkdir: "建不了安装目录 {dir}:{error}",
  privOtherInstalling: "另一个 AnyModelBot 一直在安装 PowerShell 7,稍后再试",
  privOtherWaiting: "另一个 AnyModelBot 正在安装 PowerShell 7,等它装完",
  privDiscarded: "下载的文件校验失败,已丢弃:{error}",
  privDownloadFailed: "下载失败({url}):{error}",
  privExtractedVersion: "解压出来的版本是 {v},应为 {want}",
  privUnknown: "未知",
  privMissingAfterExtract: "解压后缺少 {file}(可能被杀毒软件拦下)",
  privInUse: "旧的副本正在使用,换不下来({error}),请稍后再试",
  privCantPlace: "放不到安装目录:{error}",
} satisfies Catalog;

export const en: Catalog<typeof zh> = {
  sourceProgramFiles: "install folder",
  sourcePath: "PATH",
  sourcePreview: "preview",
  sourceStore: "Microsoft Store",
  sourcePrivate: "app-managed",
  installWaiting: "preparing",
  installDownloading: "downloading {received} / {total} MB{pct}",
  installPct: " ({n}%)",
  installExtracting: "extracting",
  installVerifying: "verifying the signature",
  installTesting: "test run",
  installDone: "installed",
  installFailed: "not installed: {error}",
  unknownReason: "unknown reason",
  slow: "the agent runs commands with the built-in Windows PowerShell 5.1, which can take 20–30 seconds each",
  statusChecking: "PowerShell: checking",
  statusFallback: "; {from} wouldn't start ({reason}), so it was replaced automatically",
  statusOk: "PowerShell: {version} (the agent runs commands with it)",
  statusOkPrivate: "PowerShell: {version} (app-managed; the agent runs commands with it)",
  statusInstalling: "PowerShell: installing PowerShell 7 for the agent… {progress}. Until it's ready, commands keep using Windows PowerShell 5.1",
  statusPrivateBad: "PowerShell: the app-managed PowerShell 7 can't be used ({reason}), so {slow}. Reinstall it in one click in Settings → Troubleshooting",
  statusInstallFailed: "PowerShell: installing PowerShell 7 for the agent didn't work ({error}), so {slow}. Retry in Settings → Troubleshooting, or install it yourself: {winget}",
  statusUnsupported: "PowerShell: {reason}, so {slow}",
  statusSystemIssue: "the PowerShell 7 on this system can't be used ({issue}), so {slow}",
  statusOld: "PowerShell {version} is outdated, so {slow}",
  statusNone: "PowerShell 7 isn't installed, so {slow}",
  adviceInstall: "Install PowerShell 7 for much faster, more reliable commands: {winget} (or open {url})",
  advicePrivate: "The app can install its own copy (no admin rights needed): Settings → Troubleshooting → Install; or: {winget}",
  statusAdvice: "PowerShell: {now}. {how}",
  reportChecking: "[PowerShell] checking",
  reportWhere: " · {path} ({source})",
  reportUnknownVersion: "7 (version unknown)",
  reportOk: "[PowerShell] {version}{where} · the agent runs commands with it",
  reportSystemIssue: "[PowerShell] the PowerShell 7 on this system can't be used{where} · {issue} · the agent uses {using}",
  reportDshDefault51: "Windows PowerShell 5.1 (DSH default)",
  reportOld: "[PowerShell] {version} is outdated{where} · installing PowerShell 7 is recommended",
  reportNone: "[PowerShell] PowerShell 7 not installed: the agent runs commands with Windows PowerShell 5.1 (about 25 s per command in the sandbox vs. about 1 s with 7){forced}",
  reportForced: " · simulated by AMB_PWSH_FORCE",
  reportFallback: "  fell back automatically at {at}: {from} → {to} · {reason}",
  reportDshDefault: "DSH default",
  privateUnsupported: "can't be installed: {reason}",
  privateReady: "ready · test run passed{test}",
  privateTest: " ({ms} ms, {at})",
  privateBad: "can't be used: {reason}",
  privateUntested: "installed, not test-run yet",
  privateNotInstalled: "not installed",
  privateInstall: " · install: {progress}",
  policySystem: "switched back to the system default",
  policyAuto: "installs automatically when 7 is missing",
  policyManual: "no automatic install",
  privateLine: "  app-managed PowerShell {version}{arch} · {state}{inst}{dir} · {policy}{ignore}",
  whyMissing: "pwsh.exe not found (it may have been deleted or quarantined by antivirus)",
  whyDenied: "no permission to run it (it may have been blocked by security software)",
  whyAntivirus: "blocked by antivirus",
  whyPolicy: "blocked by system policy (AppLocker / software restriction policies)",
  whyWdac: "blocked by Windows Defender Application Control",
  whyBadExe: "the file is damaged, or isn't a program this computer can run",
  whyCorrupt: "the file is corrupted",
  whyCantStart: "couldn't start",
  whyLine: "{why} ({detail})",
  agentCantStart: "the agent couldn't start it: {reason}",
  testFailed: "test run failed: {error}",
  noticeInstalled: "PowerShell {version} is installed for the agent (app-managed; your own PowerShell isn't touched). Commands will run much faster.",
  noticeInstallFailed: "Installing PowerShell 7 for the agent didn't work: {error}. The agent keeps running commands with Windows PowerShell 5.1; you can retry in Settings → Troubleshooting.",
  noticeSystemTestFailed: "The PowerShell on this system ({path}) failed its test run: {error}. The agent now runs commands with {to}.",
  noticeFellBack: "The agent's PowerShell wouldn't start ({exe}: {reason}), so it switched to {to} automatically; this takes effect when the agent is idle. You can reinstall or check again in Settings → Troubleshooting.",
  descSystem51: "the built-in Windows PowerShell 5.1",
  descPrivate7: "the app-managed PowerShell 7",
  privTimeout: "didn't finish within {s}s",
  privCantStart: "couldn't start: {error}",
  privUnexpected: "unexpected output (exit code {code}){out}",
  privColon: ": {text}",
  privRwFailed: "couldn't read and write a temp file",
  privExtFailed: "couldn't start an external program",
  privNot7: "version is {v}, not PowerShell 7",
  privWrongVersion: "version is {v}, expected {want}",
  privSigTimeout: "Windows PowerShell didn't return a signature result within 3 minutes",
  privSigFailed: "Windows PowerShell couldn't verify the signature: {error}",
  privExitCode: "exit code {code}",
  privSigUnreadable: "couldn't read the signature result: {out}",
  privSigCount: "wrong number of signature results",
  privSigInvalid: "{name} has an invalid signature ({status})",
  privNoSig: "unsigned",
  privNotMs: "{name} isn't signed by Microsoft ({subject})",
  privUnzipFailed: "couldn't extract: {error}",
  privTimedOut: "timed out",
  privOldWindows: "this computer's Windows is too old ({release}); PowerShell {version} needs Windows 10 1607 / Windows Server 2016 or later",
  privStall: "no data received for {s}s",
  privDownloadTimeout: "download timed out",
  privSizeWrong: "wrong file size ({len} bytes, expected {size})",
  privTooBig: "the file is larger than expected (over {size} bytes)",
  privHash: "SHA256 mismatch ({got}…, expected {want}…)",
  privWindowsOnly: "only needed on Windows",
  privNoArch: "there's no PowerShell 7 package for this computer's processor architecture",
  privFileMissing: "the file {file} is gone (it may have been deleted or quarantined by antivirus)",
  privSigNotPassed: "signature check failed: {error}",
  privArchUnsupported: "unsupported processor architecture",
  privInstalling: "installing",
  privBadCopy: "the installed copy can't be used ({reason}); reinstall it manually",
  privAlreadyInstalled: "already installed",
  privAutoFailedN: "automatic install has failed {n} times",
  privAutoBackoff: "the last automatic install failed; it will try again later",
  privCantInstall: "it can't be installed on this computer",
  privMkdir: "couldn't create the install folder {dir}: {error}",
  privOtherInstalling: "another AnyModelBot has been installing PowerShell 7 for a while; try again later",
  privOtherWaiting: "another AnyModelBot is installing PowerShell 7; waiting for it to finish",
  privDiscarded: "the downloaded file failed verification and was discarded: {error}",
  privDownloadFailed: "download failed ({url}): {error}",
  privExtractedVersion: "the extracted version is {v}, expected {want}",
  privUnknown: "unknown",
  privMissingAfterExtract: "{file} is missing after extraction (antivirus may have blocked it)",
  privInUse: "the old copy is in use and can't be replaced ({error}); try again later",
  privCantPlace: "couldn't move it into the install folder: {error}",
};