google-translate-api icon indicating copy to clipboard operation
google-translate-api copied to clipboard

Add region options

Open LittleSheep2Code opened this issue 3 years ago • 1 comments

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

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

PS. I delete my fork repo, so I recreate a pull request XD

LittleSheep2Code avatar Nov 24 '21 14:11 LittleSheep2Code

google-translate-api-cn may you need.

ZiuChen avatar Jul 29 '22 06:07 ZiuChen

I think this change is useless now. Because google just stop service in china mainland. So translate.google.cn domain is doesn't work. And in other country, I think they didn't need to access google's other domain. Just use the google.com is OK.

LittleSheep2Code avatar Jan 30 '23 11:01 LittleSheep2Code