Let's say I have to translations in my angular app xliff @@field-is-required
which has a string interpolation and @@lastname
which is a normal translation.
<trans-unit id="field-is-required" datatype="html">
<source><x id="INTERPOLATION" equiv-text="{{ fieldName }}"/> is required</source>
<target><x id="INTERPOLATION" equiv-text="{{ fieldName }}"/> ist Pflichtfeld</target>
</trans-unit>
<trans-unit id="lastname" datatype="html">
<source>Lastname</source>
<target>Nachname</target>
</trans-unit>
Is there any way to combine @@field-is-required
with the value of @@lastname
in a template?
I'm imagining something like:
<div i18n="@@field-is-required">
{{ '@@lastname' }} is required
</div>
I've tried a few combination but nothing worked for me. And the online documentation of Angular i18n is very lacking ($localize
isn't even explained in depth).