I want to be able to obtain this:
<p>Agree with the company's <a href="#" _target="blank">Terms and Conditions</a>.</p>
but without placing any HTML in the translation text.
My translation file should contain the following keys:
{
"agreement": "Agree with company's {tc}"
"terms": "Terms and Conditions"
}
What I'm trying to achieve is similar with Vue I18n's component interpolation where I would do something like this:
<i18n path="agreement" tag="p">
<a place="tc" _target="blank">{{ translate('terms') }}</a>
</i18n>
Is this possible with ngx-translate?
Thanks.
{{ 'agreement' | translate }} {{ 'terms' | translate }}
– RTYX Oct 23 '19 at 15:55