Alfred workflow to get bidirectional translations from dict.cc.
If you like the workflow give this repo a star β
And if it saves you time you may consider to
Click here and download Dict.cc.alfredworkflow
.
Just double click the Dict.cc.alfredworkflow
file and Alfred should pick it up automatically.
Since Catalina, you need to tell MacOS that it's okay to run the included binaries. For that, you have the following two options:
Since MacOS Catalina Apple does not allow running arbitrary binaries unless they are notarized. Developers can notarize their binaries if they enroll for the Apple Developer Program which is around $100 per year. Since I am not enrolled, I can't notarize the binaries, and we need to live with the above inconvenience :/
English, German, French, Swedish, Spanish, Bulgarian, Romanian, Italian, Portuguese, Russian
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 |
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.
You should find the following two workflow environment variables:
from_language
to_language
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.
Build the workflow:
GOOS=darwin GOARCH=arm64 go build -o dictcc_arm64 main.go
GOOS=darwin GOARCH=amd64 go build -o dictcc_amd64 main.go
Move both binaries to the workflow folder. For development I'd recommend symlinking them.
Feel free to dive in! Open an issue or submit PRs.
It would really make my day if you supported this project through Buy Me A Coffee.
You may be interested in one of my other projects:
nebula
- A libp2p DHT crawler that also monitors the liveness and availability of peers. π Winner of the DI2F Workshop Hackathon πpcp
- Command line peer-to-peer data transfer tool based on libp2p.image-stego
- A novel way to image manipulation detection. Steganography-based image integrity - Merkle tree nodes embedded into image chunks so that each chunk's integrity can be verified on its own.Apache License Version 2.0 Β© Dennis Trautwein