-
安装albert最新版 参考 https://albertlauncher.github.io/docs/installing/
-
执行以下命令
git clone https://github.com/rectcircle/albert-plugin-translation.git
mv albert-plugin-translation/* ~/.local/share/albert/org.albert.extension.python/modules/
- 打开albert设置,Extensions标签,勾选
Python
,勾选中英翻译
- 触发字符串
tr
- 支持google翻译、百度翻译
- 自动检测输入文本语言
例子
tr hello world!
tr 你好 世界