Translation Standards
Translation Strategy
- Has selection → Translate the selected text, replace the selection
- No selection → Translate the full text (requires user confirmation)
- Preserve formatting → Preserve the original paragraph structure and formatting as much as possible
Agent Mode Code Template
var sel = Application.Selection;
var originalText = sel.Text;
if (!originalText || originalText.trim().length === 0) {
return "请先选中要翻译的文本";
}
sel.Text = "翻译后的文本...";
return "已将选区文本翻译为目标语言";
Translation Quality Requirements
- Accurately convey the original meaning without omitting information
- Use natural expressions of the target language
- Keep professional terminology consistent
- Handle numbers, personal names, and brand names according to convention
- Avoid translationese in Chinese translations