Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Translate En Zh

  • 9 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

translate-en-zh is a Claude skill for bidirectional Chinese-English translation of text, code comments and documents, with bundled term glossaries for consistency.

About

This skill provides bidirectional Chinese-English translation for plain text, code comments and professional documents, auto-detecting the source language. It ships batch scripts (translate_batch.py, translate_markdown.py) and term glossaries for tech, business and common vocabulary to keep translations consistent. A developer uses it to translate documents, code comments or emails between Chinese and English at scale. It matters because it preserves markdown formatting and only translates comments inside code.

  • Bidirectional Chinese-English translation with automatic source-language detection
  • Batch file translation via translate_batch.py and translate_markdown.py, preserving markdown structure
  • Bundled tech, business and common terminology glossaries for consistent term alignment

Translate En Zh by the numbers

  • 9 all-time installs (skills.sh)
  • Ranked #2,218 of 3,280 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

translate-en-zh capabilities & compatibility

Free; runs local Python scripts with the model

Capabilities
translation · localization
Use cases
translation · documentation
Pricing
Free
From the docs

What translate-en-zh says it does

提供专业、准确的中英文双向翻译能力,支持普通文本、代码注释、专业文档等多种场景的翻译需求,内置常用术语库保证翻译一致性。
SKILL.md
**代码注释翻译**:保留代码结构,仅翻译注释内容
SKILL.md
`translate_markdown.py`:翻译Markdown文档,保留格式结构
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill translate-en-zh

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Translate text, documents and code comments between Chinese and English with consistent terminology.

Who is it for?

Translating between Chinese and English while keeping terminology consistent via built-in glossaries

Skip if: Languages other than Chinese and English; it is a dedicated zh-en tool

When should I use this skill?

The user needs Chinese-to-English or English-to-Chinese translation, or mentions 翻译, 英译中, 中译英 or 中英文转换

What you get

  • Translated text or Markdown files with preserved structure

By the numbers

  • 2 batch scripts (translate_batch.py, translate_markdown.py)
  • 3 bundled term glossaries (tech, business, common)

Files

SKILL.mdMarkdownGitHub ↗

中英文互转工具

Overview

提供专业、准确的中英文双向翻译能力,支持普通文本、代码注释、专业文档等多种场景的翻译需求,内置常用术语库保证翻译一致性。

核心功能

1. 普通文本翻译

直接对用户输入的文本进行中英文互译,自动识别源语言:

  • 输入英文 → 输出中文翻译
  • 输入中文 → 输出英文翻译
  • 支持长文本分段翻译,保持原有格式

2. 专业场景翻译优化

针对不同场景提供专业翻译:

  • 代码注释翻译:保留代码结构,仅翻译注释内容
  • 技术文档翻译:优先使用行业标准术语
  • 商务邮件翻译:保持正式、专业的语气
  • 日常对话翻译:符合口语化表达习惯

3. 批量翻译

支持批量处理多个文本段落或文件内容:

  • 自动分割长文本,保持上下文一致性
  • 支持Markdown格式文档翻译,保留格式结构
  • 翻译结果可直接导出为文本或Markdown文件

使用指南

快速使用

用户提到翻译需求时,直接返回翻译结果,无需额外说明:

用户输入:"翻译这段文字:Hello world"
输出:"你好,世界"

翻译原则

1. 准确性优先:保证翻译内容准确传达原意 2. 符合语境:根据使用场景选择合适的语气和术语 3. 保留格式:如果原文本有格式(如Markdown、代码块),翻译后保持格式不变 4. 术语一致:同一术语在整个翻译过程中保持统一

特殊场景处理

  • 遇到专业术语不确定时,主动向用户确认
  • 包含敏感内容的文本拒绝翻译,并说明原因
  • 代码内容仅翻译注释部分,不修改代码逻辑

内置资源

scripts/

提供批量翻译工具脚本:

  • translate_batch.py:批量处理文本文件翻译
  • translate_markdown.py:翻译Markdown文档,保留格式结构

references/

常用术语库参考:

  • tech_terms.md:IT/技术领域常用中英文术语对照
  • business_terms.md:商务/金融领域常用中英文术语对照
  • common_terms.md:日常通用术语对照表

Related skills

FAQ

How does translate-en-zh keep terms consistent?

It bundles glossaries (tech_terms.md, business_terms.md, common_terms.md) so the same term is translated the same way throughout.

Can it translate whole files?

Yes. It includes translate_batch.py for text files and translate_markdown.py that preserves markdown structure.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.