Home

Awesome

Linguee Workflow for Alfred

<p align="center"> <a href="https://www.alfredapp.com/"> <img src="https://img.shields.io/badge/Alfred-4-blueviolet" /> </a> <img src="https://img.shields.io/badge/macOS-10.15%20|%2011+-blue" /> <a href="https://github.com/sigito/Linguee-Workflow-for-Alfred/releases/latest"> <img src="https://img.shields.io/github/v/release/sigito/Linguee-Workflow-for-Alfred?color=important" /> </a> <a href="https://mastodon.social/@sigito"> <img src="https://img.shields.io/badge/Contact-%40sigito%40mastodon.social-lightgrey" /> </a> </p> <p align="center"><img src="demo.gif" alt="Demo"/></p>

Linguee Search is an Alfred workflow that lets you search for translations on Linguee.com.

Download the workflow

⚠️ This workflow requires Alfred app with Powerpack.

The latest version of the workflow can be downloaded from GitHub releases.

Manually install the workflow

You can also build and install the workflow yourself. Just clone the repository and run the next command in Terminal from the directory with the cloned project:

make install

A new Linguee.Search.alfredworkflow workflow would be built from source and opened in Alfred.

Features

Setting translation language pair

source_language and destination_language define the language pair used for the translation.

Default pair is English + German. To override this behavior, set the variables to a desired pair. For a full list of available language pairs please visit https://www.linguee.com/?moreLanguages=1#moreLanguages. The values of the variables must be a lowercased language name in English. E.g., "english", "german", "french".

Setting a global keyboard shortcut

There is an option to trigger the Linguee Search from anywhere, skipping typing of the command prefix (l in our case) in the shared Alfred search window. Unfortunately, Alfred does not import the hotkeys, thus a manual setup is necessary.

The workflow already contains an empty global keyboard shortcut configuration. You should:

  1. Open the workflows panel in Alfred settings.
  2. Select this workflow.
  3. Double-click on the "Hotkey" box in the workflow (alternatively right click and choose "Configure Object...").
  4. Press the key combination that should be used as a system-wide shortcut. E.g., ⇧ ⌘ L (Shift-Command-L).
  5. Click "Save".

By default the shortcut would searched for the selected text, or open a ready-to-go Linguee search in Alfred.

To change the assigned key combination, just repeat the steps described above.

More about hotkeys in Alfred available here.

Copy behavior

By default all of the translation information, including the initial search text, translations, and the results link, would be copied as a result of ⌘ C (Command-C) action.

Use copy_behavior variable to change default behavior. There are a few possible values it can be set to:

Miscellaneous flags

Known issues

LingueeOnAlfred will damage your computer and you should remove it to the trash (#13)

The workflow binary is not verified by Apple. Thus macOS would not recognize the binary and suggest to move it to trash.

In order to work this around, go to System Preferences > Security & Privacy, switch to General tab. In the Allow apps downloaded from: section select App Store and identified developers and then to the right of it tap an Open Anyway button.

On the next attempt to search with Linguee, a dialog would pop. Select Open and you are good to go!

License