How to use ngx translate with primeNG Apollo menu and submenu

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vkk
Posts: 1
Joined: 15 Jun 2023, 16:01

12 Jul 2023, 12:41

Hi,
I am using ngx translate with primeNG apollo, and for translating menu, and submenu names/labels in AppMenuComponent, how to use ngx translate -

Code: Select all

{{'id' | translate}}

If i put it like this -

Code: Select all

{
                label: 'Company',
                icon: 'pi pi-home',
                items: [
                    {
                        label: {{'COMPANYCRUD' | translate}},
                        icon: 'pi pi-fw pi-home',
                        routerLink: ['/company']
                    }
            ]},
It's not working, can anyone suggest how to use ngx translate with primeNG Apollo menu and submenu.
Thanks.

Post Reply

Return to “Apollo - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests