macaroni

translate

Description:
The translate executor translates text from one language to another language using the Translator service.

Parent: execute, then, else

Value (simple form): string specifying the text to be translated
Value (key/value form):

# simple form
- translate: (string)

# simple example
- translate: '{clipboard.text}'

# key/value form
- translate: (string, required)
  from: (string, optional)
  to: (string, optional)

# key/value example
- translate: '{clipboard.text}'
  to: 'en'
  from: 'de'

EXAMPLE

# translate the selected text to english
commands:
- name: translate SELECTED TEXT to english
  triggers:
  - phrase: translate that
  - phrase: translate that to english
  execute:
  - sendKeys: '{200 wait}{ctrl-c}{200 wait}'
  - translate: '{clipboard.text}'
    to: 'en'
  - display: '{translate.text}'
  - clipboard: '{translate.text}'

Additional information:

Status: ✅ IMPLEMENTED