RemafoX icon indicating copy to clipboard operation
RemafoX copied to clipboard

[Feat] Gracefully keep translated texts in the transaction where API limits exceeded

Open ConfusedVorlon opened this issue 1 year ago • 4 comments

Steps to Reproduce:

translating a large batch of strings using Microsoft Translator request limit exceeded

Expected Behavior:

the succesfull translations should be inserted in my Strings

Current Behavior:

error shown, Remafox gives up

Environment

ConfusedVorlon avatar Apr 03 '23 18:04 ConfusedVorlon

The batch was about 308 translations for 5 languages

ConfusedVorlon avatar Apr 03 '23 19:04 ConfusedVorlon

@ConfusedVorlon Thank you for reporting this.

To make me fully understand the issue here, can you please explain how you did the "batch translation"? Did you use the build script? Did you start it from the Config file? If the latter, did you use "empty only" or "override all"?

Also, what you're trying to say is that if of those 308 translation keys, say 100 could be translated and the others failed, RemafoX should at least insert the 100 and can still error with "not all translations could be translated" after that, right?

Jeehut avatar Apr 04 '23 00:04 Jeehut

I clicked "translate empty strings" in the app

yes, if 100 were translated. Then save those. That way there are fewer next attempt, and it won't hit the request limit for ever

ConfusedVorlon avatar Apr 04 '23 00:04 ConfusedVorlon

Thank you for the clarification. Of course, it makes sense to keep what has been successfully translated!

Jeehut avatar Apr 04 '23 00:04 Jeehut