traducteur

A simple Node.js client for Google's Translation API.

A super simple Google Translation API client for Node.js.

var traducteur = require('traducteur')('API key');
 
traducteur.translate({
    q: 'Bonjour',
    target: 'en'
}, callback);

options is an object that follows Google's REST documentation. callback is a function that returns with an error if exists, otherwise a body. callback(err, body)

options is an object that follows Google's REST documentation. callback is a function that returns with an error if exists, otherwise a body. callback(err, body)

callback is a function that returns with an error if exists, otherwise a body. callback(err, body)

Because Google Translate's API is paid only, to have your tests pass you will have to add your API key to test/index.js. Once done, just run:

npm test