yandex-translate-api

Node module allowing to use the Yandex Translate API

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
yandex-translate-api
601.0.19 years ago9 years agoMinified + gzip package size for yandex-translate-api in KB

Readme

yandex-translate-api
Yandex.Translate API client for node.js
Please use API key request form to obtain key.

Install

npm install yandex-translate-api --save

Use the client

var translate = require('yandex-translate-api')(YOUR_API_KEY);
translate('I like fresh baked bread', { to: 'ru'}, function(err, res) {
  console.log(res.text);
});

translate.detect('J\'aime le pain frais', function(err, res) {
   console.log(res.lang)
});
License
MIT.
Yandex.Translate terms of service: http://legal.yandex.com/translateapi/
See also
Inspired by yandex-translate
by @sidorares