On Text Entry

  1. ;translate is typed with matching case.

Get, Translate, and Show Text

  1. Get selected text
  2. Translate Selected Text to English
  3. Show Translated Text in a Rulr panel

Translate text exposed by the frontmost app

Use this Rule as a base for checking a short passage in another language. It reads an application’s selected text, translates the retrieved value into English, and presents the result in Rulr rather than altering the original document.

When: The exact phrase ;translate is typed. Do: Get Selected Text, translate that Text output, and display the translated text. There is no If Condition. The default target language is English, and the supplied Trigger is typed text rather than a hotkey.

Configure and try it

  1. Import using Open this Rule in Rulr and review the Trigger phrase and target language.
  2. Grant Accessibility and System Events Automation for retrieving the selection. Complete the Translation Shortcut setup requested by Rulr for macOS System Translate.
  3. Test a short selection in a compatible application. Check whether typing ;translate changes the selection before Get Selected Text can read it.
  4. If the phrase replaces or disturbs selected text in your app, change the Trigger to Hotkey Pressed. Select the passage again, invoke the new shortcut, and compare the displayed translation with the intended source.

Requirements and limits

Text Typed requires Rulr Pro. Selection retrieval depends on the source app exposing text, and some apps may briefly use the clipboard. Translation also needs the configured macOS translation workflow and a supported language.

The Rule displays the result; it does not automatically replace the passage, copy the translation, or translate an entire document. Review important wording yourself, particularly after an empty or unexpected selection. For visible text that cannot be selected, use Translate Screen Text.