Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repaired Google Translate Integration #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Google Translate.alfredworkflow
Binary file not shown.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
Alfred Google Translate Workflow
==================================
# Alfred Google Translate Workflow

![Alfred Google Translate Workflow](https://lh3.googleusercontent.com/-XJcRtJIlkYY/U1X8d5_HqdI/AAAAAAAAnpo/fHlNbNwEgig/w1245-h819-no/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2014-04-22+%25E4%25B8%258B%25E5%258D%25881.20.31.png)

This is the enhanced version of [Florian Pellet's Google Translate Workflow](http://florianpellet.com/alfred/), with additional features such as:
To make translations (based on Google Translate) without leaving your keyboard. It provides:

* Multiple definitions support
* Providing input suggestions

## Download

[Download It Here](https://github.com/zetavg/alfred-google-translate-workflow/blob/master/Google%20Translate.alfredworkflow?raw=true)
[Download It Here](https://github.com/rogiervandenberg/alfred-google-translate-workflow/blob/master/Google%20Translate.alfredworkflow?raw=true)

## Usage

Open alfred then

```
```plain
tr anything_you_want
```

## Configuration

Just look into the workflow and edit the *Script Filters* to meet your needs.
Just look into the workflow and edit the *Script Filters* to meet your needs:

* Inside a 'translation set' you can make adjustments (e.g. make the set translate to Spanish)
* Or you can make a copy of a translation set, to create additional definitions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
},
"homepage": "https://github.com/zetavg/alfred-google-translate-workflow#readme",
"dependencies": {
"google-translate-api": "^2.2.2"
"@vitalets/google-translate-api": "^3.0.0"
}
}
2 changes: 1 addition & 1 deletion translate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!./node
var translate = require('google-translate-api');
const translate = require('@vitalets/google-translate-api');

var source = process.argv[2]
var target = process.argv[3]
Expand Down