1.5.11 • Published 7 years ago

google-translate-api-nodejs-client v1.5.11

Weekly downloads
29
License
ISC
Repository
github
Last release
7 years ago

google-translate-api-nodejs-client

Just a client for Google Translate API

Compatible with NodeJS 6 (and with Google Cloud functions)

Usage

var GoogleTranslateApi=require('google-translate-api-nodejs-client');

new GoogleTranslateApi({
  API_KEY:'...'
})
  .translate({
    source:'en',
    target:'ge',
    text:'...text is here...'
  }, function(err,translation){
  
    // translation is a string representing the output translation
    // original response would be in html, this client converts the html to a proper text string	

  });

Check available language

cd google-translate-api-nodejs-client
GOOGLE_TRANSLATE_API_KEY=... node availableLanguages.js

TODO

  • support async/await style
  • validate input languages (according to List of supported languages) - extractable from API
  • add language detection in case 'from' language is not specified
1.5.11

7 years ago

1.5.10

7 years ago

1.5.9

8 years ago

1.5.8

8 years ago

1.5.7

8 years ago

1.5.6

8 years ago

1.5.5

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago