-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Make a call to the API per keyword #58
Comments
You can change This will make an API call for every line in the file you want to translate. |
In case of a key with 3 lines of text, will it do 3 call for this key or just one? |
Just one. The value of the key doesn't matter here, it can be multiple lines. |
Thanks for the answers! |
I'm re-opening it, because I've encountered an error when setting the
It seems that this part of the code in translate.js:
Is sending all the request at once. Is there a way to maybe add a delay or to send them sequentially instead? |
Yea, you are right. I just added a delay of 500ms after each request is made. New version |
I changed the default behavior, and now the default delay is 250ms, but it can be overridden by FYI: I faced Closing this issue now, if you find anything else, feel free to reopen, or create a new issue. |
Hello,
Is it possible to make a call per keyword instead of all the keywords at once?
This is because when we add context in DeepL it doesn't work with too many keywords. And we aren't billed for the number of requests, just the number of characters.
The text was updated successfully, but these errors were encountered: