Open Ahmed-Aboud opened 1 month ago
Update: same issue happens with tag_handling=html too
When calling the endpoint https://api.deepl.com/v2/translate?tag_handling=xml&ignore_tags=x
https://api.deepl.com/v2/translate?tag_handling=xml&ignore_tags=x
German Wo befindet sich das <x>Event</x>
Wo befindet sich das <x>Event</x>
Translated IT response Dove si trova il <x>Event</x>
Dove si trova il <x>Event</x>
but when it is followed by any character the ignored_tag is moved before the sentence for example German Wo befindet sich das <x>Event</x> ?
Wo befindet sich das <x>Event</x> ?
Translated IT response <x>Event</x> Dove si trova la sede?
<x>Event</x> Dove si trova la sede?
wrapping the ignored tag by another tag makes it work Wo befindet sich das <wrap><x>Event</x></wrap>
Wo befindet sich das <wrap><x>Event</x></wrap>
Update: same issue happens with tag_handling=html too
When calling the endpoint
https://api.deepl.com/v2/translate?tag_handling=xml&ignore_tags=x
German
Wo befindet sich das <x>Event</x>
Translated IT response
Dove si trova il <x>Event</x>
but when it is followed by any character the ignored_tag is moved before the sentence for example German
Wo befindet sich das <x>Event</x> ?
Translated IT response
<x>Event</x> Dove si trova la sede?