{"id":41128627,"url":"https://github.com/1186258278/opencodechinesetranslation","last_synced_at":"2026-03-10T20:01:58.909Z","repository":{"id":331789838,"uuid":"1130806101","full_name":"1186258278/OpenCodeChineseTranslation","owner":"1186258278","description":"🚀 OpenCode 汉化发行版 | ⚡️ 每日自动同步官方最新版 | 全自动构建三端安装包 (Win/Mac/Linux) | 您的 OpenCode 中文版首选下载站","archived":false,"fork":false,"pushed_at":"2026-02-02T03:21:14.000Z","size":2318,"stargazers_count":200,"open_issues_count":1,"forks_count":24,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-02T03:55:59.036Z","etag":null,"topics":["ai-coding","automated-builds","daily-builds","developer-tools","i18n","linux","macos","opencode","opencode-chinese","translation","windows","zh-cn"],"latest_commit_sha":null,"homepage":"https://1186258278.github.io/OpenCodeChineseTranslation/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1186258278.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-09T03:27:46.000Z","updated_at":"2026-02-02T03:21:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/1186258278/OpenCodeChineseTranslation","commit_stats":null,"previous_names":["1186258278/opencodechinesetranslation"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/1186258278/OpenCodeChineseTranslation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1186258278%2FOpenCodeChineseTranslation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1186258278%2FOpenCodeChineseTranslation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1186258278%2FOpenCodeChineseTranslation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1186258278%2FOpenCodeChineseTranslation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1186258278","download_url":"https://codeload.github.com/1186258278/OpenCodeChineseTranslation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1186258278%2FOpenCodeChineseTranslation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29113188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:44:17.043Z","status":"ssl_error","status_checked_at":"2026-02-05T03:44:12.077Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-coding","automated-builds","daily-builds","developer-tools","i18n","linux","macos","opencode","opencode-chinese","translation","windows","zh-cn"],"created_at":"2026-01-22T18:16:16.571Z","updated_at":"2026-03-07T00:13:04.464Z","avatar_url":"https://github.com/1186258278.png","language":"JavaScript","readme":"# OpenCode 中文汉化发行版\n\n[![Release](https://img.shields.io/github/v/release/1186258278/OpenCodeChineseTranslation?label=最新正式版\u0026style=flat-square\u0026color=blue)](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest)\n[![Nightly](https://img.shields.io/badge/Nightly-自动构建-orange?style=flat-square)](https://github.com/1186258278/OpenCodeChineseTranslation/releases/tag/nightly)\n[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg?style=flat-square)](#)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/1186258278/OpenCodeChineseTranslation/release.yml?label=构建状态\u0026style=flat-square)](https://github.com/1186258278/OpenCodeChineseTranslation/actions)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n\n\u003e 🚀 **OpenCode 汉化发行版** | ⚡️ **每小时自动同步官方更新** | 全自动构建三端安装包 (Win/Mac/Linux)\n\u003e \n\u003e 🔥 **每日构建 (Nightly)**：[点击下载最新开发版](https://github.com/1186258278/OpenCodeChineseTranslation/releases/tag/nightly) (每小时更新 · 推荐开发者)\n\u003e \n\u003e 🎉 **访问官方网站**：[https://1186258278.github.io/OpenCodeChineseTranslation/](https://1186258278.github.io/OpenCodeChineseTranslation/)\n\n---\n\n## 项目简介\n\n**OpenCode 汉化发行版** 是一个全自动化的 OpenCode 本地化项目。我们基于 GitHub Actions 构建了一套完整的自动化流水线：\n\n- **🕐 每小时检测** 官方仓库更新\n- **📊 智能触发** 累计 ≥5 个新 commit 时自动构建\n- **📝 完整日志** Release Notes 自动包含官方更新日志\n\n**主要特性：**\n*   ⚡️ **实时跟进**：每小时检测上游更新，第一时间体验新特性\n*   📦 **全平台支持**：提供 Windows、macOS (Apple Silicon)、Linux 二进制包\n*   🚀 **一键安装**：Go 语言编写的管理工具，无需任何运行时依赖\n*   🔧 **完整汉化**：覆盖 TUI、对话框及核心交互流程\n\n### 📊 汉化统计\n\n| 指标 | 数量 | 说明 |\n|------|------|------|\n| 📁 翻译文件 | **41** 个 | 模块化 JSON 配置 |\n| 📝 翻译规则 | **397** 条 | 精准字符串替换 |\n| 🎯 覆盖模块 | **5** 个 | dialogs/routes/components/common/root |\n| ✅ 测试覆盖 | **100%** | 18 个单元测试用例 |\n\n\u003cdetails\u003e\n\u003csummary\u003e📂 模块分布详情\u003c/summary\u003e\n\n| 分类 | 文件数 | 说明 |\n|------|--------|------|\n| **dialogs** | 21 | 对话框 (Agent/Model/MCP/Session 等) |\n| **routes** | 6 | 路由页面 (Home/Session/Sidebar 等) |\n| **components** | 6 | 组件 (Prompt/Question/Sidebar 等) |\n| **common** | 6 | 通用 (Toast/Error/Messages 等) |\n| **root** | 1 | 应用入口 |\n\n\u003c/details\u003e\n\n---\n\n## 界面预览\n\n### CLI 管理工具\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/01.png\" alt=\"OpenCode 汉化管理工具\" width=\"800\"\u003e\n\u003c/p\u003e\n\n**全功能 TUI 界面** - 一键完成更新、汉化、编译、部署\n\n### 汉化后的 OpenCode\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/02.png\" alt=\"OpenCode 主编辑器\" width=\"800\"\u003e\n\u003c/p\u003e\n\n**沉浸式中文编程体验** - 命令面板、侧边栏、对话框完整汉化\n\n### MCP 服务器配置\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/05.png\" alt=\"MCP 配置界面\" width=\"800\"\u003e\n\u003c/p\u003e\n\n**MCP 服务器管理** - 状态监控、工具配置、资源管理\n\n\u003e 📸 更多截图请查看 [功能演示文档](docs/SCREENSHOTS.md)\n\n---\n\n## 快速开始\n\n### 1. 一键安装 (推荐)\n\n全新的安装脚本会自动下载 **Go 版本 CLI 工具**，无需安装 Node.js 或 Bun。\n\n**Windows (PowerShell)**\n```powershell\npowershell -c \"irm https://cdn.jsdelivr.net/gh/1186258278/OpenCodeChineseTranslation@main/install.ps1 | iex\"\n```\n\n**Linux / macOS**\n```bash\ncurl -fsSL https://cdn.jsdelivr.net/gh/1186258278/OpenCodeChineseTranslation@main/install.sh | bash\n```\n\n\u003e 💡 使用 jsDelivr CDN 加速，解决国内网络问题\n\n### 2. 使用方法\n\n安装完成后，直接在终端运行：\n\n```bash\nopencode-cli\n```\n\n启动交互式菜单，通过方向键选择功能。\n\n### 3. 下载预编译版 (推荐新手)\n\n如果您已安装 `opencode-cli`，可以直接使用内置的下载功能：\n\n```bash\nopencode-cli download\n```\n\n此命令会自动从 GitHub Releases 下载最新的预编译汉化版 OpenCode，无需本地编译环境。\n\n### 4. 手动下载\n\n**稳定版 (Stable)** - 推荐普通用户使用：\n访问 [Releases 页面](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest) 下载最新 v8.x.x 版本。\n\n**每日构建 (Nightly)** - 推荐开发者/尝鲜用户：\n访问 [Nightly 页面](https://github.com/1186258278/OpenCodeChineseTranslation/releases/tag/nightly) 下载最新自动构建版本。\n\n| 平台 | 管理工具 (CLI) |\n|------|----------------|\n| Windows x64 | [opencode-cli-windows-amd64.exe](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-windows-amd64.exe) |\n| Windows ARM64 | [opencode-cli-windows-arm64.exe](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-windows-arm64.exe) |\n| macOS Apple Silicon | [opencode-cli-darwin-arm64](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-darwin-arm64) |\n| macOS Intel | [opencode-cli-darwin-amd64](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-darwin-amd64) |\n| Linux x64 | [opencode-cli-linux-amd64](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-linux-amd64) |\n| Linux ARM64 | [opencode-cli-linux-arm64](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest/download/opencode-cli-linux-arm64) |\n\n\u003e 💡 **提示**: 汉化版 OpenCode 请在 [Releases 页面](https://github.com/1186258278/OpenCodeChineseTranslation/releases/latest) 下载 ZIP 包。[Nightly 构建](https://github.com/1186258278/OpenCodeChineseTranslation/releases/tag/nightly) 每小时更新。\n\n---\n\n## 版本说明\n\n本项目提供两种版本：\n\n| 版本 | Tag | 说明 | 推荐用户 |\n|------|-----|------|----------|\n| **正式版** | `v8.x.x` | 经过测试的稳定版本 | 普通用户 |\n| **Nightly** | `nightly` | 每小时自动跟进上游更新 | 开发者/测试者 |\n\n**Nightly 版本特点：**\n- 每小时检测上游更新，累计 ≥5 个 commit 时自动构建\n- Release Notes 包含 OpenCode 官方更新日志\n- 固定 `nightly` tag，下载链接始终指向最新构建\n\n---\n\n## CLI 工具功能\n\n| 命令 | 说明 |\n|------|------|\n| `opencode-cli` | 启动交互式管理菜单 |\n| `opencode-cli download` | 下载预编译汉化版，无需本地编译环境 |\n| `opencode-cli env-install` | 一键安装编译环境 (Git/Node.js/Bun) |\n| `opencode-cli update` | 更新 OpenCode 源码 |\n| `opencode-cli apply` | 应用汉化补丁 |\n| `opencode-cli verify` | 验证汉化配置完整性 |\n| `opencode-cli build` | 编译构建 OpenCode |\n| `opencode-cli deploy` | 部署到系统 PATH |\n| `opencode-cli diagnose` | **诊断修复** 版本冲突、环境问题 |\n| `opencode-cli uninstall` | 卸载清理，还原干净环境 |\n| `opencode-cli antigravity` | 配置 Antigravity 本地 AI 代理 |\n\n---\n\n## 相关文档\n\n| 文档 | 说明 |\n|------|------|\n| [📅 更新日志](CHANGELOG.md) | 版本更新记录 |\n| [📸 功能截图](docs/SCREENSHOTS.md) | 界面预览与演示 |\n| [🔧 贡献指南](CONTRIBUTING.md) | 开发者参与指南 |\n| [🚀 Antigravity 集成](docs/ANTIGRAVITY_INTEGRATION.md) | 本地 AI 网关配置 |\n| [🤖 AI 维护指南](docs/AI_MAINTENANCE.md) | AI 助手维护手册 |\n\n---\n\n## 环境要求\n\n**使用预编译版（推荐新手）**：无需任何环境，直接下载运行。\n\n**本地编译**：\n- Git (用于拉取源码)\n- Node.js 18+ (OpenCode 依赖)\n- Bun 1.3.8+ (构建工具，需与上游 OpenCode 版本匹配)\n\n\u003e 没装这些？运行 `opencode-cli env-install` 一键搞定。\n\n---\n\n## 常见问题 (FAQ)\n\n### 遇到问题？先运行诊断！\n```bash\nopencode-cli diagnose\n```\n自动检测版本冲突、环境缺失、PATH 问题，一键修复。\n\n---\n\n### Q: 运行 opencode 还是英文版？\n运行 `opencode-cli diagnose` 自动检测并清理冲突版本。\n\n手动处理：\n```bash\nnpm uninstall -g opencode          # 卸载 npm 版\nGet-Command opencode -All          # Windows 查看所有位置\nwhich -a opencode                  # macOS/Linux\n```\n\n### Q: 编译失败？\n```bash\nopencode-cli env-install    # 一键安装 Git/Node/Bun\nopencode-cli download       # 或直接下载预编译版（不用装环境）\n```\n\n### Q: 汉化失效了？\n下载 [Nightly 版本](https://github.com/1186258278/OpenCodeChineseTranslation/releases/tag/nightly)（每小时自动跟进官方更新）\n\n### Q: 安装目录在哪？\n三端统一目录结构 `~/.opencode-i18n/`：\n- `bin/` - CLI 工具和汉化版 OpenCode\n- `opencode/` - OpenCode 源码\n- `build/` - 编译输出\n\nWindows 实际路径: `%USERPROFILE%\\.opencode-i18n\\`\n\n### Q: 本地开发怎么配置？\n开发者可通过环境变量覆盖默认路径：\n```bash\nexport OPENCODE_SOURCE_DIR=/path/to/opencode   # 源码目录（覆盖 ~/.opencode-i18n/opencode）\nexport OPENCODE_BUILD_DIR=/path/to/bin         # 编译输出（覆盖 ~/.opencode-i18n/build）\n```\n不设置环境变量时，统一使用 `~/.opencode-i18n/` 目录。\n\n### Q: 想卸载干净？\n```bash\nopencode-cli uninstall --all\n```\n\n### Q: macOS 提示\"无法验证开发者\"？\n```bash\nxattr -cr /path/to/opencode\n```\n或运行 `opencode-cli diagnose --fix` 自动修复。\n\n---\n\n## 许可证\n\n本项目基于 [MIT License](LICENSE) 开源。\n\nOpenCode 原项目版权归 [Anomaly Company](https://anomaly.company/) 所有。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1186258278%2Fopencodechinesetranslation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1186258278%2Fopencodechinesetranslation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1186258278%2Fopencodechinesetranslation/lists"}