google-translate-api
google-translate-api copied to clipboard
Add region options
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
google-translate-api-cn
may you need.
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.