translate-cn-to-en
Installation
SKILL.md
Task Objective
Translate and replace all Chinese characters (comments, strings, documentation, etc.) within specified files or project scope into English.
Execution Principles
- Accurate Translation: Ensure the translated English accurately conveys the original Chinese meaning and fits the technical context.
- Preserve Formatting: Maintain original code indentation, line breaks, punctuation (unless Chinese punctuation needs conversion to English), and documentation structure.
- Code Safety:
- STRICTLY PROHIBITED: Modifying identifiers like variable names or function names, unless they are essentially Chinese (not recommended but possible).
- STRICTLY PROHIBITED: Breaking code logic.
- Pay attention to Chinese in strings. If it's text for display, it can be translated; if it's a Key or specific protocol content, verify carefully before modification. Usually, UI display text and comments are translated by default.
- Comment Processing: Translate all Chinese comments.
- Documentation Processing: Translate Chinese content in Markdown and other documentation.