Translate is not working on only NavigationItem in AdminpanelProvider
->navigationItems( [
NavigationItem::make('Booking List')
->label( ('sidebar.Booking List') )
->url( fn (): string => Dashboard::getUrl().'/bookings/listing' )
->icon( 'heroicon-o-presentation-chart-line' )
->activeIcon( 'heroicon-s-presentation-chart-line' )
->isActiveWhen( fn (): bool => Str::contains( url()->current(), 'bookings/listing' ) )
->group( ('sidebar.Booking') )
->sort( 3 )
->visible(fn(): bool => Auth::user()?->can('Booking Read')),
how to fix this issue?I used language switcher plugin
4 Replies