Awesome Open Source
Awesome Open Source

Alfred dict.cc workflow

Github All Releases

Alfred workflow to get bidirectional translations from dict.cc.

If you like the workflow give this repo a star ⭐

Example animation

And if it saves you time you may consider to

Buy Me A Coffee

Download

Click here and download Dict.cc.alfredworkflow

Supported Languages

English, German, French, Swedish, Spanish, Bulgarian, Romanian, Italian, Portuguese, Russian

Command

dict lang1 lang2 word_to_translate

You can omit lang1 and lang2 to just translate between german and english (both directions!). See below to customise the default language pair.

Possible values for lang1 and lang2:

Abbreviation Language
en, eng english
de, ger german
fr, fra french
sv, swe swedish
es, esp spanish
bg, bul bulgarian
ro, rom romanian
it, ita italian
pt, por portuguese
ru, rus russian

Default Language Pair

You may not want the translations to be between english and german by default. To change this behaviour open the Alfred preferences, go to Workflows, select Dict.cc and click on the Configure workflow and variables button in the top right corner.

Default language setup step 1

You should find the following two workflow environment variables:

  1. from_language
  2. to_language

Default language setup step 2

Assign both variables one of the above abbreviations (either the two letter or three letter form). In the screenshot above the configuration says

  • from_language - fra
  • to_language - en

to translate between french and english by default.

Note: Although the variables are named from_ and to_ the translations will be bidirectional, so the order shouldn't really matter.

Acknowledgement

The dict.cc website parser is based on rbarons work. Thanks for that!


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (1,125,371
Translation (2,549
Workflow (2,284
Alfred (765
German (285
Dict (142
Related Projects