Skip to content

z1nc0r3/google-translate-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-translate-api

The API from the official Google Translate Chrome extension.

  • Change the source language from the URL parameter - sl

  • Change the translated language from the URL query parameter - tl

  • To run the script: node app.js

eg: Translation of the word "mother" from EN to SI

Result:

{
  sentences: [ { trans: 'මව', orig: 'mother', backend: 1 } ],
  src: 'en',
  confidence: 1,
  spell: {},
  ld_result: {
    srclangs: [ 'en' ],
    srclangs_confidences: [ 1 ],
    extended_srclangs: [ 'en' ]
  }
}

About

The API from the official Google Translate Chrome extension.

Topics

Resources

License

Stars

Watchers

Forks