To use google translate api
npm install googleapi-translate```
npm install googleapi-translate
let googleApi = require("googleapi-translate")let googleTranslation = new googleApi({token: 'this is token'})
`
- default hostname is ''translation.googleapis.com'' and you can also pass hostname like this :
`
let googleTranslation = new googleApi({token: 'this is token', hostname: 'this is hostname'})
`
$3
`
googleTranslation.translate("hello", "en", "ja").then((res)=>{
console.log(res);
})
`$3
`
googleTranslation.detect("hello").then((res)=>{
console.log(res);
})
`
$3
`
googleTranslation.getLanguages().then((res)=>{
console.log(res);
})
``If you discover any security related issues, please email them to waithawoocw@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see the License File for more information.