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

Handle the translate for the input characters more than 5000 #25

Open
venkatesh1007prasath opened this issue May 5, 2023 · 0 comments

Comments

@venkatesh1007prasath
Copy link

First, I appreciate the author and contributors for the great and cool work done here!
Out of a curious experiment, I tried to translate srt file (Movie subtitle file). Tried to translate English to Tamil
It is expected that the google translate will support the input up to 5000 characters, but the library could be

  1. enhanced to accept and handle the characters more than 5000 with internal split, process, append and return (or)
  2. can have a defensive approach with print statement about the acceptable string length and process the translate up to 5000 characters and return

Now the library is translating up to characters 5000 but if we tried to run more than 5000 (Even 5001), it returns None
I can handle the limitations as per my requirement locally, but I am just notifying here

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

No branches or pull requests

1 participant