yandex-translate

Yandex.Translate API client


Keywords
translate, yandex
License
MIT
Install
npm install yandex-translate@2.1.3

Documentation

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