0.0.7 • Published 6 years ago
translation1 v0.0.7
translation1
Easy translations with using yandex api. Just enter the language you want to translate the text into. The source language is automatically determined.
USAGE
var translate = require('translation1');
var text = 'hey guys, whats up?';
var to = 'ru';
translate(text, to).then(function(translation) {
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']