Details
-
Sub-task
-
Resolution: Fixed
-
None
-
Critical
-
manual translation button is now shown for each resource, if it's slow
-
Empty show more show less
Description
Currently, if a request takes longer than
runtimeOptions.InstantTranslate.maxRequestDuration
InstantTranslate switches automatically to "manual" mode, that means, the translation requests are not send automatically to the back-end, but only when a user clicks the "translate" button, that appears in manual mode.
The config should be kept, but moved to resource level.
That means, if one resource answers slow and the others fast, the others will still be triggered automatically in typing breaks, but for the slow one a "Trigger translation" button appears in the frame of the resource result.
Next to it an explaining text appears, why this button is there.
The current JS-message that tells the user "InstantTranslate is deactivated" is completely removed.
Texts for the UI:
DE: Übersetzung anfordern
Die Reaktionszeit [DeepL] ist langsamer als x Sekunden.
Daher wird die manuelle Auslösung der Übersetzung aktiviert.
EN: Trigger Translation
Response time [DeepL] is slower then x seconds.
Therefore manual translation triggering is activated.
Also runtimeOptions.InstantTranslate.maxRequestDuration should be set to a default of 10000 ms.
Please see screen dummy, how it should look: