-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
[v5] batch-style still has a text limit of 5000 chars #65
Comments
It seems this is a restriction of Google translation API itself. |
Yes. Splitting text does solve the problem. The previous implementation allows only around 3000 characters. And the new one is 5000, which is also the one of web version. Seems reasonable. |
@songkeys I think we can only check differences on practice. As I didn't find any docs on this RPC API and current implementation was reverse engIneered in this article. Anyway, I've added note about maximum text length to readme. Thanks! |
In the website, there is a pagination system splitting each 5000 chars "5,000 character limit. Use the arrows to translate more" I think this is the hard limit. |
There is still a text limit in batch-style RPC mode from v5.
If the character length exceeds 5000 characters, an error will occur:
It happens with this line:
google-translate-api/index.js
Line 90 in bba1605
The text was updated successfully, but these errors were encountered: