matheuss / google-translate-api

A free and unlimited API for Google Translate :dollar::no_entry_sign:
https://npmjs.com/package/google-translate-api
MIT License
2.9k stars 608 forks source link

Add custom region option #120

Closed LittleSheep2Code closed 3 years ago

LittleSheep2Code commented 3 years ago

I add a region option, let diffent region can get fast speed to access server. Example:

translate('Hello!', {to: 'en', region: 'cn'})
      .then(console.log);