againest1

Bilingual View — Development skill for Claude Code

Development community

Chinese-English translation plugin (Mod) for Claude Code.

How to install Bilingual View

This entry records only its repository, not the path inside it, so there is no exact command to give. Open againest1/bilingual-view and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Bilingual View does

Chinese-English translation plugin (Mod) for Claude Code. Write prompts in Chinese, send them in English, and read replies in Chinese. Switch to the original text anytime. 中文提问,英文发送,中文阅读,随时核对原文。

Alternatives in Development

  • Hapi — App for Claude Code / Codex / Gemini / OpenCode, vibe coding anytime, anywhere 3.6k ★
  • Nexting — Remote control for Claude Code, Codex, Grok, and Cursor on Mac or PC 1.3k ★
  • Translation Detect — 同步原版更新、检测翻译状态、制定同步计划, 完成后自动建议执行翻译 695 ★

README

Bilingual View — Claude Code 中英双语翻译插件

**中文输入,中文阅读,随时核对原文。**

Claude Code 的双语翻译插件(Mod)。用中文提问,自动译成英文发送;
用中文阅读回答,需要时切回原文。

A Chinese-English translation plugin (Mod) for Claude Code.
Write prompts in Chinese, send them in English, and read replies in Chinese. Switch to the original text anytime.

[为什么需要它](#为什么需要它) · [快速开始](#快速开始) · [日常使用](#日常使用) · [常见问题](#常见问题) · [完整指南](USAGE.md)

![翻译流程示意:你输入「解释这段代码」,Claude 收到「Explain this code.」;Claude 回答「This function reads the config.」,你看到「这个函数会读取配置。」](assets/translation-flow.svg)

纯自然语言的翻译示例,实际措辞由你选择的翻译模型决定。

  • 用中文交流:中文提示词和提问对话框中自行输入的中文回答会先译成英文;Claude 的英文回答可显示中文译文。
  • 译好再发送:需要翻译的输入,译文通过检查才提交;失败时不会自动改发中文原文。
  • 随时对照原文:查看提示词实际发送的版本,或切回 Claude 的原始回答。
  • 自选翻译服务:使用兼容 OpenAI Chat Completions 接口的服务,不改变 Claude 会话使用的模型。

命令、思考过程和普通工具输出不翻译;代码、路径等内容保持原样。详见[翻译范围](#翻译范围)。

为什么需要它

1 · 你懂的

2 · 更省 token

同一内容在不同语言下的 token 数相对英文的倍数:Anthropic 的中文为 1.65×

点击图片查看原图。

上图比较了同一内容的不同语言版本,经各模型的 tokenizer 分词后,token 数相对英文版本的倍数(英文为 1×)。在这组测试中,**Anthropic(Claude)的中文 token 数约为英文的 1.65×**,也就是多约 65%。

图表来源:[Aran Komatsuzaki 的原帖](https://x.com/arankomatsuzaki/status/2049177688402022730)。

把中文提示词译成英文再发送,就是为了降低这部分输入的 token 开销,同时保留中文输入和阅读体验。实际节省量取决于文本和模型,翻译服务本身也会产生用量。

快速开始

你需要一个**支持 Mods 的 Claude Code 交互式终端或 Desktop 会话**,以及可用的翻译服务、模型和 API 密钥(如需)。

1 · 安装插件

在系统终端运行:

claude plugin marketplace add againest1/bilingual-view
claude plugin install bilingual-view@bilingual-view

启动新的 Claude Code 会话;已打开的终端会话也可以运行 `/reload-plugins`。输入框上方出现 **Bilingual View** 设置栏,即可继续配置。

也可以[手动安装](USAGE.md#手动安装)。

2 · 开启自动更新(推荐)

**建议通过 Marketplace 安装后开启自动更新,以便及时获得本 Mod 的修复和改进。** 第三方市场默认不会自动更新,需要手动开启:

  1. 在 Claude Code 会话中运行 /plugin,打开插件管理器。
  2. 切换到 Marketplaces 页面,选择 bilingual-view