@val-istar-guo/alfred-google-translate
Alfred google translate workflow. Inspired by alfred-google-translate.
Install
npm install -g @val-istar-guo/alfred-google-translate
Usage
Before using this workflow, You must config the language pair. see alfred-language-configuration.
Operation of the items
- press enter to copy the item.
- press alt + enter to read the item.
- press shift + enter to open the translate website at your browser.
- press cmd + L to see the full content.
Environment Variables
name | default value | description |
---|---|---|
domain | https://translate.google.com | if you cannot access the default domain, you can config this. 大陆访问不了默认域名,所以如果使用2.x版本需要将这个变量设置为https://translate.google.cn. 或者还是使用1.x版本 |
voice | remote | avaliable values: remote: fetch voice from google, local: use macOS local voice (notice: maybe only works on English), none: dont use voice |
save_count | 20 | limit the translation history, see alfred-translate-history. a value of 0 will keep no history |
Sponsor
Support code development on patron.
Contributing & Development
If there is any doubt, it is very welcome to discuss the issue together. Please read Contributor Covenant Code of Conduct and CONTRIBUTING.