Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rsify/alfred-polyglot
🈚️ Translate text using Google Translate in Alfred
https://github.com/rsify/alfred-polyglot
alfred alfy google javascript translate
Last synced: about 2 months ago
JSON representation
🈚️ Translate text using Google Translate in Alfred
- Host: GitHub
- URL: https://github.com/rsify/alfred-polyglot
- Owner: rsify
- License: mit
- Created: 2018-02-14T11:17:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-09T04:13:16.000Z (over 2 years ago)
- Last Synced: 2024-09-25T09:26:50.251Z (3 months ago)
- Topics: alfred, alfy, google, javascript, translate
- Language: JavaScript
- Homepage:
- Size: 6.65 MB
- Stars: 174
- Watchers: 6
- Forks: 12
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# alfred-polyglot [![npm](https://img.shields.io/npm/v/alfred-polyglot.svg)](https://npmjs.org/package/alfred-polyglot)
> Translate text using Google Translate in Alfred
![Preview gif](media/preview.gif)
[Alfred forum thread](https://www.alfredforum.com/topic/11235-polyglot-yet-another-google-translate-workflow/)
## Install
```
$ npm install --global alfred-polyglot
```*Requires [Node.js](https://nodejs.org) 7.6+ and the Alfred [Powerpack](https://www.alfredapp.com/powerpack/).*
## Setup
1. Set the default language text will get translated to if `to` parameter is not specified.
```
trans !set default-language (language)
```2. Remove the default translate workflow. Navigate to
`Alfred Preferences -> Features -> Web Search`
...search for `translate`, and unset the tickbox under `Enabled`.
## Usage
```
trans (text) [from (language)] [to (language)]
```The output will be translated `text`. Both `from` and `to` parameters are optional, and can be used anywhere in input.
## Examples
![1](media/1.png)
![2](media/2.png)
![3](media/3.png)
![4](media/4.png)
## License
MIT © [nikersify](https://nikerino.com)