F
Filament4w ago

Localization not working for MenuItem in the PanelProvider

Hello, I noticed that the localization for the label of a MenuItem does not work when the language is changed, it remains on the default translation. Here's my
->userMenuItems([
'menu_item' => MenuItem::make()
->url(function () {
return 'https://www.google.com';
})
->label(__('working.localization-path'))
->icon('heroicon-s-calendar'),
])
->userMenuItems([
'menu_item' => MenuItem::make()
->url(function () {
return 'https://www.google.com';
})
->label(__('working.localization-path'))
->icon('heroicon-s-calendar'),
])
1 Reply
ඞ
OP4w ago
Hmm, looks like I solved the issue.

Did you find this page helpful?