@ioclaudio wrote:
Hi,
In an Ionic4 app I’d like to translate strings with parameters like these:
<ion-label>I accept <a href="#" routerLink="/terms_conditions"> terms and conditions</a></ion-label>
<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
Posts: 2
Participants: 2