Files
librefang-registry/workflows/translate-polish.toml
T
Evan 492faabd57 feat: update minimax default to M2.7, add zh i18n to workflow templates (#19)
- aliases: minimax default → MiniMax-M2.7, minimax-highspeed → MiniMax-M2.7-highspeed
- workflow templates: add [i18n.zh] section with Chinese name/description
2026-03-24 13:00:20 +09:00

25 lines
1.1 KiB
TOML

id = "translate-polish"
name = "Translation & Polish"
description = "Auto-detect language, translate, and review for naturalness"
category = "language"
tags = ["translation", "language", "localization"]
[i18n.zh]
name = "翻译与润色"
description = "自动检测语言,翻译文本,并审校译文的自然度"
[[parameters]]
name = "source_text"
description = "The text to translate"
param_type = "string"
required = true
[[steps]]
name = "translator"
prompt_template = "You are an expert translator. Translate the following text. Auto-detect the source language: if it's Chinese, translate to English; if it's English, translate to Chinese; for other languages, translate to both Chinese and English. Preserve the original tone, style, and formatting.\n\nText:\n{{source_text}}"
[[steps]]
name = "reviewer"
prompt_template = "You are a bilingual language expert. Review the following translation for accuracy and naturalness. Check for: 1) Mistranslations or meaning shifts 2) Awkward phrasing that sounds translated 3) Cultural context issues. Output the improved final translation only.\n\nTranslation to review:\n{{translator}}"
depends_on = ["translator"]