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

Slow translate on bigger JSON files #2

Closed
ParvinEyvazov opened this issue Mar 14, 2022 · 6 comments
Closed

Slow translate on bigger JSON files #2

ParvinEyvazov opened this issue Mar 14, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ParvinEyvazov
Copy link
Member

When translating bigger JSON files, Google API response times get higher. I am planning to fix that issue by using the proxy.

(I would appreciate it if anybody can be a contributor to that problem.)

@ParvinEyvazov ParvinEyvazov added the bug Something isn't working label Mar 14, 2022
@ParvinEyvazov ParvinEyvazov self-assigned this Mar 14, 2022
@henriquecustodia
Copy link

Hey there! I've found this package after making some research and I really liked how it works.

Well, I've made json translator repository some time ago that uses proxies to call google-translate-api. I think I can contribute with this solution.

Check out the project website: https://json-translator-app.herokuapp.com/

@ParvinEyvazov
Copy link
Member Author

That would be an awesome contribution to this project. This solution will fix the biggest issue of this project (latency & unexpected load errors by Google Translate API).

Checked the mentioned project and it works super fast, it is awesome. Please feel free to ask about anything.

Thank you!

@henriquecustodia
Copy link

No problems! I'll check the codebase as soon as possible :)

@henriquecustodia
Copy link

Hey @ParvinEyvazov, this week I did some tests on this app and I got stuck trying to use several proxies to translate keys.

I'm using this package to get a proxy list with thousands ips (at around 34k), but I saw the delay to translate simple messages was greater than 15 seconds (a lot of time). Maybe because the most of proxies server has a big latency. Well, I don't know if the proxy approach can still work.

What about trying to use another translate api? There are many appearently. I did a quick research and I found a few options:

Maybe toggle among theses apis we can achieve good results

@ParvinEyvazov
Copy link
Member Author

Thank you for the comment @henriquecustodia . I was AFK for a couple of weeks.

I also tried some proxy lists before and faced the same problem as you. I will investigate the packages and will try to find a better solution. I will try to share my progress via this comment.

@ParvinEyvazov
Copy link
Member Author

I added a translation request queue which will prevent high loads to the translation servers. Tried with big JSON files and works fine. Also added two more translation APIs (Libre Translate and Argos Translate) for more choices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants