package i18n

var runtimeErrorsEN = map[string]string{
	"runtime.install_error.claude_npm_eacces":              "Claude Code install failed: the current system does not allow global npm installs (EACCES). This Mac may not have Node.js/npm global write permissions configured for the current user. Ask a technical teammate to install and configure Node.js first, or retry with an installation method that has permission.",
	"runtime.install_error.claude_homebrew_load_failed":    "Claude Code upgrade failed: Homebrew could not download or load the claude-code cask (Load failed). AgentTeam will try to keep or restore the previous claude binary. Run `brew update && brew upgrade --cask claude-code` in Terminal to see the full Homebrew error, then check your network or clear the Homebrew cache before retrying.",
	"runtime.install_error.opencode_homebrew_tap_required": "OpenCode upgrade failed: Homebrew needs the anomalyco/tap tap first. This AgentTeam version runs `brew tap anomalyco/tap` before upgrading; you can also run `brew tap anomalyco/tap` manually and retry.",
}

var runtimeErrorsZhCN = map[string]string{
	"runtime.install_error.claude_npm_eacces":              "Claude Code 安装失败：当前系统不允许直接执行全局 npm 安装（EACCES）。这台 Mac 可能没有为当前用户配置 Node.js/npm 全局写权限。请让技术同事先安装并配置 Node.js，或改用有权限的安装方式后重试。",
	"runtime.install_error.claude_homebrew_load_failed":    "Claude Code 升级失败：Homebrew cask 下载或加载 claude-code 失败（Load failed）。AgentTeam 将尝试保留/恢复原来的 claude binary；请在终端运行 `brew update && brew upgrade --cask claude-code` 查看 Homebrew 的完整错误，检查网络或清理 Homebrew 缓存后再重试。",
	"runtime.install_error.opencode_homebrew_tap_required": "OpenCode 升级失败：Homebrew 需要先启用 anomalyco/tap。新版 AgentTeam 会在升级前自动执行 `brew tap anomalyco/tap`；也可以手动执行 `brew tap anomalyco/tap` 后重试。",
}
