translate

Translate English content under raw/ into Chinese while preserving frontmatter, code blocks, and URLs.

33|6|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/freeman5860/KnowledgeBase --skill translate-freeman5860
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate
Source: https://github.com/freeman5860/KnowledgeBase/tree/main/.claude/skills/translate
Command: npx skills add https://github.com/freeman5860/KnowledgeBase --skill translate-freeman5860

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

将 raw/ 中的英文素材翻译为中文,帮助团队在多语言环境中保持文档一致性与可访问性。

Core Features & Use Cases

  • 自动翻译未翻译的英文内容,同时跳过已是中文的文本;保留 YAML frontmatter、代码块、链接、API 端点以及图片引用等不变。
  • 提供模式化的翻译策略,确保术语翻译在同一项目中保持一致,并保留技术词汇的原文首次出现。
  • 使用场景示例:将 raw/ 下的新素材翻译成中文后直接写入对应的 wiki 节点,确保中文用户可读性。

Quick Start

请将待翻译的英文素材提交给AI,AI 将就地覆盖原文件正文部分并保留元数据与结构。

Frequently Asked Questions about translate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate markdown documentation to Chinese while preserving code blocks and frontmatter?

To translate markdown documentation safely, submit your English raw content to the AI. It translates text to Chinese while preserving YAML frontmatter, code blocks, URLs, and API endpoints in place. The workflow is non-destructive and maintains the original file structure.

Does the localization process skip text that is already translated?

Yes, the localization process automatically skips text that is already in Chinese. It identifies untranslated English content within your raw files and translates only those sections, ensuring efficient and non-destructive updates to your multilingual knowledge base.

Can I use this to audit untranslated files across a wiki?

Yes, you can use this workflow to audit untranslated files across a wiki. It validates existing translations and scans for remaining English content in your raw directory, helping teams maintain consistent multilingual documentation coverage.

How does this translation workflow handle technical terms and API endpoints?

The translation workflow handles technical terms by preserving the original English text upon first appearance to maintain consistency. It also explicitly avoids altering API endpoints, image references, and links during the Chinese translation process.

What is the best way to unify multilingual documentation during ingestion?

The best way to unify multilingual documentation during ingestion is to translate new English material from the raw directory into Chinese and write it directly to the corresponding wiki node. This ensures immediate accessibility for Chinese users.

Will translating raw content overwrite my original file metadata?

No, translating raw content will not overwrite your original file metadata. The process overwrites only the body text of the English source file while explicitly preserving the structural elements and YAML frontmatter.