name: translate-deep
about: Deep two-stage translation using local drafting and cloud polishing
clipboard: true
notify: true
args:
- name: text
short: 't'
expect: string
default: '{system_clipboard}'
help: Text to translate
- name: file
short: 'f'
expect: string
default: ''
help: File to translate
- name: to
short: 'l'
expect: string
help: Target language (e.g., Russian, English, Chinese)
default: Russian
actions:
- tag: tag_content
run: cmd
expect: string
check: .+
action:
- when: '{file|empty}'
then: echo "{text}"
- when: '{file|empty:not}'
then: cat "{file|resolve}"
- tag: tag_draft
run: llm_small
expect: string
action: |
[Task]
Translate the entire [Text] to the language specified in [User].
Do not translate proper names, code, or comments inside code blocks.
Reply with the full raw translated text.
[User]
{to}
[Text]
{tag_content}
- tag: tag_translated
run: llm_large
expect: string
action: |
[Task]
Act as an expert native editor and senior technical writer.
Review, polish, and fix the IT slang and phrasing in this rough draft translated into the language specified in [User].
Keep formatting, code blocks, and proper names intact. Output ONLY the polished final text.
[User]
{to}
[Rough Draft]
{tag_draft}