Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yandex.Translate translation service client
JavaScript
branch: master
Failed to load latest commit information.
.gitignore Initial commit
.travis.yml add travis
README.md Update README.md
index.js pass api key as module parameter
package.json 2.0.1

README.md

yandex-translate

Yandex.Translate API client for node.js

Please use API key request form to obtain key.

var translate = require('yandex-translate')(key);

translate('You can burn my house, steal my car, drink my liquor from an old fruitjar.', { to: 'ru' }, function(err, res) {
  console.log(res.text);
});

translate.detect('Граждане Российской Федерации имеют право собираться мирно без оружия, проводить собрания, митинги и демонстрации, шествия и пикетирование', function(err, res) {
   // res.lang -> 'ru'
});

License

MIT.

Yandex.Translate terms of service: http://legal.yandex.com/translate_api/

See also

Something went wrong with that request. Please try again.