0

Lets say i have mat tam created like this

<mat-tab-group>
    <mat-tab label="nameToBeTranslated">
    </mat-tab>
</mat-tab-group>

How can i translate that label?

1 Answers1

1

You can use :

<mat-tab-group>
    <mat-tab label="{{'nameToBeTranslated' | translate}}">
    </mat-tab>
</mat-tab-group>

or

<mat-tab-group>
    <mat-tab [label]=" 'now you can use pipes here' | anyPipeForTranslation">
    </mat-tab>
</mat-tab-group>
Ashot Aleqsanyan
  • 4,252
  • 1
  • 15
  • 27
DEV
  • 1,607
  • 6
  • 19
  • Thank you but i am not sure if it is for same version my normal translates looks like this Text Yeah i mistaken names of packs this is angular localize sorry. –  Nov 10 '21 at 12:30