How to translate multiselect options?

UI Components for Angular
Post Reply
MoxxiManagarm
Posts: 5
Joined: 09 Jan 2019, 11:14

09 Jan 2019, 11:28

Hi,

I have a turboTable with multiSelect filter.

Code: Select all

<p-multiSelect [options]="typeOptions" appendTo="body" [filter]="false"
            defaultLabel="{{'TYPE-HEADER' | translate }}" (onChange)="dt.filter($event.value, col.field, 'in')">

Code: Select all

typeOptions: SelectItem[];

this.typeOptions = [
      { label: 'Error', value: 'ERROR' },
      { label: 'Warning', value: 'WARNING' },
      { label: 'Info', value: 'INFO'}
    ];
What is the best way to translate those labels? I have trouble to figure it out. Please help.


Bets regards
MM

MoxxiManagarm
Posts: 5
Joined: 09 Jan 2019, 11:14

17 Jan 2019, 11:10

Can be closed, translation was done with templating.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests