Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.js to fix translation requests originating from China #1

Closed
wants to merge 1 commit into from
Closed

Conversation

rawr51919
Copy link

@rawr51919 rawr51919 commented Mar 4, 2019

Updates the index.js to resolve an issue where the Chinese can't use this library nor it's parent to translate using code from an old PR to this library's parent repo. This is part of the PR from vitalets/google-translate-api#5 fixing issues vitalets/google-translate-api#4, matheuss/google-translate-api#59, matheuss/google-translate-api#60, matheuss/google-translate-api#62, matheuss/google-translate-api#68, and matheuss#10 over there, using code from an old PR sent to the unmaintained upstream (matheuss#11, to be exact).

Updates the index.js to resolve an issue where the Chinese can't use this library nor it's parent to translate using code from an old PR to this library's parent repo.
@vitalets
Copy link
Owner

vitalets commented Mar 6, 2019

Thanks! Have a look on comment here vitalets/google-translate-api#5 (comment)

@rawr51919
Copy link
Author

Seeing that your approach you specified there is the better approach, allowing for more URLs to be used than just translate.google.cn and translate.google.com, this PR will now be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants