A nifty way of translating plain text using Google Translator and Apple Automator on MacOS.
- Install JSON Helper: http:https://www.mousedown.net/mouseware/JSONHelper.html
- Install Translate.workflow script via Automator.app
- Generate Google Translate API key from Google Cloud. Replace
YOUR_GOOGLE_TRANSLATE_API_KEY
with generated key. - Set MacOS shortcut (optional): System Preferences > Keyboard > Shortcuts > Services > Translate (under Text header).
- Trigger Translate service by highlighting any text, right click > Services > Translate. Or Highlight text + shortcut.