I am trying to use ngx-translate for attribute values like p-messages text, p-column header, p-tabPanel header
<p-message text="text"></p-message>
<p-column header="text"></p-column>
<p-tabPanel header="text">
I tried the following but it doesn't work:
<p-tabPanel header="'key' | translate">
<p-tabPanel header="{{'key' | translate}}">
<p-tabPanel [attr.header]="'key' | translate">
Is there any way to use ngx-translate for these?