Currently, I am in the process of developing an application using ABP framework version 4.4 and integrating the Nebular theme as opposed to the default basic theme. Amidst various challenges faced during this migration, one particular issue stands out - localizing menu items. In typical HTML, we utilize
{{'::Menu:Home' | abpLocalization }}
for localization purposes. However, this approach proves inefficient when working with Nebular. For instance:
import { NbMenuItem } from '@nebular/theme';
export const MENU_ITEMS: NbMenuItem[] = [
{
title: '"::Menu:Home" | abpLocalization',
icon: 'home-outline',
link: '/',
home: true,
},
];
Despite incorporating the ABP localization pipe into the title property, the UI displays plain text instead of the localized content. It is worth noting that Nebular's menu title property exclusively accepts string values, posing a challenge on how to effectively localize menu items. Any suggestions or workarounds would be greatly appreciated.