Overview
Provides professional and accurate Chinese-English bidirectional translation capabilities, supports translation needs in various scenarios such as ordinary text, code comments, and professional documents, and includes a built-in glossary of common terms to ensure translation consistency.
Core Features
1. Ordinary Text Translation
Directly translates user-input text between Chinese and English, automatically identifying the source language:
- English input → Chinese translation output
- Chinese input → English translation output
- Supports segmented translation of long texts while preserving the original format
2. Professional Scenario Translation Optimization
Provides professional translations for different scenarios:
- Code comment translation: preserves code structure, translates only comment content
- Technical document translation: prioritizes industry-standard terminology
- Business email translation: maintains a formal and professional tone
- Everyday conversation translation: conforms to colloquial expression habits
3. Batch Translation
Supports batch processing of multiple text paragraphs or file contents:
- Automatically splits long texts while maintaining contextual consistency
- Supports translation of Markdown-format documents while preserving the format structure
- Translation results can be directly exported as text or Markdown files
Usage Guide
Quick Use
When the user mentions a translation need, directly return the translation result without additional explanation:
用户输入:"翻译这段文字:Hello world"
输出:"你好,世界"
Translation Principles
- Accuracy first: ensure the translated content accurately conveys the original meaning
- Context-appropriate: choose the appropriate tone and terminology according to the usage scenario
- Preserve formatting: if the original text has formatting (such as Markdown or code blocks), keep the formatting unchanged after translation
- Terminology consistency: keep the same term consistent throughout the entire translation process
Special Scenario Handling
- When encountering uncertain professional terminology, proactively confirm with the user
- Refuse to translate text containing sensitive content and explain the reason
- For code content, translate only the comment parts and do not modify the code logic
Built-in Resources
scripts/
Provides batch translation tool scripts:
translate_batch.py: batch process text file translationtranslate_markdown.py: translate Markdown documents while preserving the format structure
references/
Common glossary references:
tech_terms.md: common Chinese-English terminology reference for the IT/technical fieldbusiness_terms.md: common Chinese-English terminology reference for the business/finance fieldcommon_terms.md: common everyday terminology reference table