Fast Alfred workflow for English-Chinese translation with word origins and memory aids.
| Feature | Description |
|---|---|
| Fast | ~0.3s response time |
| Pronunciation | 自动朗读查询的单词 |
| Word History | 自动记录查询单词到文件, 方便复习 |
| Etymology | 词源词根记忆 (word roots) |
| Inflections | 词形变化 (comparative, tenses) |
| Derivatives | 派生词 (noun, adverb forms) |
| Collocations | 常用搭配 |
| Discrimination | 词义辨析 (word comparison) |
yd happy
├── adj. 快乐的;幸福的;满意的...
├── 词源: 来自hap,发生,运气,机会。即运气好的,引申词义高兴的。
├── vs glad: 高兴,只能做表语
├── be happy to do sth. (很高兴做某事)
├── 比较级: happier | 最高级: happiest
├── adv. happily (快乐地)
└── n. happiness (幸福)
- Download
MyTranslator.alfredworkflowfrom Releases - Double-click to install
git clone https://github.com/baotiao/MyTranslator.git
cd MyTranslator
zip -r MyTranslator.alfredworkflow info.plist translate.py icon.png
# Double-click MyTranslator.alfredworkflow to install- Open Alfred (
Cmd + Space) - Type
yd+ space + word/phrase - Press
Enterto copy result
| Input | Output |
|---|---|
yd happy |
Translation + word origins + forms |
yd 你好 |
hello; hi; how do you do |
yd remember |
Translation + etymology + verb forms |
每次查询的单词会自动追加记录到 ~/mydic.txt, 方便日后复习. 可通过环境变量自定义文件路径:
export MYDIC_FILE="~/my_vocabulary.txt"记录格式: 时间戳\t单词, 例如:
2026-03-29 10:30:00 happy
2026-03-29 10:31:00 remember
For higher quality translations with official Youdao API:
- Register at Youdao AI Open Platform
- Create a text translation application
- In Alfred: Workflows → MyTranslator → Configure Workflow
- Enter your App Key and App Secret
Without credentials, the workflow uses free Youdao Dictionary API which works great for most cases.
- macOS
- Alfred 4 or 5 (Powerpack license required for workflows)
- Python 3 (pre-installed on macOS)
MIT License