0.0.9 • Published 6 years ago

translation-ms v0.0.9

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

translation-ms

Easy translations with using yandex api. Just enter the language you want to translate the text into. The source language is automatically determined. If you wish, you can determine source language.

USAGE

var translate = require('translation-ms');
var text = 'hey guys, whats up?';
var to = 'ru';
//you can use promises
translate(text, to).then(function(translation) {
    console.log(translation);
});

//or callback
translate(text, to, function(err, translation) {
    if (err) throw err;
    console.log(translation);
})

//languages
//['az', 'be', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es', 'et', 'fi', 'fr', 'hr', 'hu', 'hy', 'it', 'lt', 'lv', 'mk', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sq', 'sr', 'sv', 'tr', 'uk']
0.0.9

6 years ago

0.0.8

6 years ago