SuperAPI AI Directory

translate-text

Writing & research

View repository

Updated 10-15 18:53

About this skill

Translation Standards

Translation Strategy

  1. Has selection → Translate the selected text, replace the selection
  2. No selection → Translate the full text (requires user confirmation)
  3. 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