martinroob / ngx-i18nsupport

Some tooling to be used for Angular i18n workflows
MIT License
283 stars 69 forks source link

Arabic auto translate problem with xliffmerge #179

Open or334 opened 3 years ago

or334 commented 3 years ago

Hello,

I use this tool to auto-translate with my Google Translate API key for 9 different languages. I wanted to add a new translation, to Arabic, and I'm facing a weird issue. After making a new Angular project, I found the problem.

In HTML files, if I we have an attribute, for example \

\ or \

\ inside \
\, with the i18n tag inside the \
\, like in the picture below: image

I get the following error: image

But when I put the i18n tag at the \

\, then delete the current .xlf files, it does manage to translate the files just fine. image image

This problem only happens when I try to translate it into Arabic. In other languages, including Asian languages, automatic translation works great.

The code representation for Arabic is ar . You can download the .xlf files of my project from here: https://easyupload.io/m/j2g6rb

If more details are needed, please let me know. Thanks!