Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Yandex.Translate translation service client
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.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.