0.0.6 • Published 6 years ago

google-translation v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

google-translate

Just Google translator module for node.js

Installation

$ npm install google-translation

API

var authObj = {
  apiKey: GOOGLE_TRANSLATE_API_KEY,
  jwtEmail: GOOGLE_SERVICE_ACCOUNT_EMAIL,
  jwtKey: GOOGLE_SERIVCE_ACCOUNT_PRIVATE_KEY
};
var translator = require('google-translation.js').init(GOOGLE_TRANSLATE_API_KEY);
var obj = {
	text: '독도는 대한민국 영토 입니다.'
	target: 'en',
	model: 'nmt' // enum nmt|smt
};
translator.translate(obj, function(err, res) {
  console.log(err, res);
});

Reference

Please refer to this link for the more information.

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago