- Created by dennis-tra
- 🗓 Last Updated: 23/10/22 17:04:44
- 🌟 Stars on GitHub: 125
- Please consider supporting the creator by Starring or Sponsoring them on GitHub!
- Get Latest Release
- Get Source Code
From their README
Alfred dict.cc workflow
If you like the workflow give this repo a star ⭐
And if it saves you time you may consider to
Table of Contents
- Table of Contents
- Supported Languages
- Default Language Pair
- Other Projects
Click here and download
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:
Give execute permissions to the included binaries
Open the workflow directory
Right click on the
dictcc_* binary for your platform (Intel Macs
dictcc_amd64, M1 Macs
dictcc_arm64) and select
Open in the pop up.
This will open a Terminal window and you should see an error message. However, you have now indicated to MacOS that it's okay to run the binary.
Close all windows and you're good to go.
Give execute permissions to Alfred in general
Beware that the following configuration applies to all workflows you have currently installed and all future ones.
Why do I need to do that?
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
lang2 to just translate between german and english (both directions!). See below to customise the default language pair.
Possible values for
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
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:
Assign both variables one of the above abbreviations (either the two letter or three letter form). In the screenshot above the configuration says
to translate between french and english by default.
Note: Although the variables are named
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:
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.
nebula-crawler- A libp2p DHT crawler that also monitors the liveness and availability of peers. 🏆 Winner of the DI2F Workshop Hackathon 🏆
Apache License Version 2.0 © Dennis Trautwein