DeepLcom / deepl-api-issues

Issue tracking repository for the DeepL API.
MIT License
0 stars 0 forks source link

API incorrectly handle tag_handling=xml with ignore_tags #25

Open Ahmed-Aboud opened 3 months ago

Ahmed-Aboud commented 3 months 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

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?

Ahmed-Aboud commented 3 months ago

wrapping the ignored tag by another tag makes it work Wo befindet sich das <wrap><x>Event</x></wrap>