You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to Auto Translate the $localize of my application. The problem is that when translating $localize the variables are erased.
Example:
$localize'El campo tiene muy pocos caracteres. Mínimo ${o.requiredLength} caracteres. (${o.actualLength})'
Default XLF (messages.xlf Original defaultLanguage: es)
<trans-unit id="854483955309547493" datatype="html">
<source>El campo tiene muy pocos caracteres. Mínimo <x id="PH"/> caracteres. (<x id="PH_1"/>)</source>
<target>El campo tiene muy pocos caracteres. Mínimo <x id="PH"/> caracteres. (<x id="PH_1"/>)</target>
</trans-unit>
Then i run xliffmerge --profile apps/web/xliffmerge.json and generate: (messages.en.xlf):
<trans-unit id="854483955309547493" datatype="html">
<source>El campo tiene muy pocos caracteres. Mínimo <x id="PH"/> caracteres. (<x id="PH_1"/>)</source>
<target state="translated">The field has very few characters. Minimum characters. ()</target>
</trans-unit>
As you can see, the element <x id = "PH" /> and <x id="PH_1"/> is removed.
It is necessary that it is not deleted, since my application has 17 languages and it is very laborious to add it manually
Any idea how to make the element <x id = "PH" /> not be deleted?
I am trying to Auto Translate the $localize of my application. The problem is that when translating $localize the variables are erased.
Example:
$localize'El campo tiene muy pocos caracteres. Mínimo ${o.requiredLength} caracteres. (${o.actualLength})'
Default XLF (messages.xlf Original defaultLanguage: es)
Then i run
xliffmerge --profile apps/web/xliffmerge.json
and generate: (messages.en.xlf):As you can see, the element
<x id = "PH" />
and<x id="PH_1"/>
is removed.It is necessary that it is not deleted, since my application has 17 languages and it is very laborious to add it manually
Any idea how to make the element
<x id = "PH" />
not be deleted?My xliffmerge.json:
The text was updated successfully, but these errors were encountered: