How to translate strings with parameters?

Hi,
In an Ionic4 app I’d like to translate strings with parameters like these:

  1. <ion-label>I accept <a href="#" routerLink="/terms_conditions"> terms and conditions</a></ion-label>

  2. <ion-label>Thank you [userName] for registering</ion-label>

Which is the syntax to translate these strings?

I know that <ion-label>Username</ion-label> becames <ion-label>{{ Username | translate }} </ion-label>

For the first I’ve tried this, but doesn’t work:

<ion-label color="primary">{{ 'I accept <a href="#" routerLink="/terms_conditions"> terms and conditions</a>' | translate }}</ion-label>

Thank you

cld

Maybe you could wrap that a bit differently, like

<a href="#" routerLink="/terms_conditions">
<ion-label color="primary">
{{'YOUR_KEY' | translate }}
</ion-label>
</a>

where

"YOUR_KEY": "I accept <strong>terms and conditions</strong>"

and then in scss tweak strong

strong {
    text-decoration: underline;
}