diff --git a/Google Translate.alfredworkflow b/Google Translate.alfredworkflow index dc882a3..f317a20 100644 Binary files a/Google Translate.alfredworkflow and b/Google Translate.alfredworkflow differ diff --git a/README.md b/README.md index f18222d..48dce44 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index ea0f902..7a074dc 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/translate.js b/translate.js index a5f18dd..c862669 100755 --- a/translate.js +++ b/translate.js @@ -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]