© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
5 replies
Ashk

Navigation group translated label and sort

Hi, I have weird behavior that I can't understand at all, maybe someone here is able to explain it?

I define my navigation groups as follows

->navigationGroups([
    NavigationGroup::make(__('labels.third_parties'))
        ->collapsible(),
    NavigationGroup::make(__('labels.planning'))
        ->collapsible(),
    NavigationGroup::make(__('labels.commercial'))
        ->collapsible(),
])
->navigationGroups([
    NavigationGroup::make(__('labels.third_parties'))
        ->collapsible(),
    NavigationGroup::make(__('labels.planning'))
        ->collapsible(),
    NavigationGroup::make(__('labels.commercial'))
        ->collapsible(),
])


The order in English is good, but in French it changes (planning and commercial inverted)

Thanks for your help!
image.png
image.png
Solution
Put it like this, you need to wrap in fn()
NavigationGroup::make()
  ->label(fn (): string => __('labels.third_parties')),
NavigationGroup::make()
  ->label(fn (): string => __('labels.third_parties')),
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Navigation group without label
FilamentFFilament / ❓┊help
3y ago
How to sort navigation items within a navigation group?
FilamentFFilament / ❓┊help
12mo ago
Navigation Group
FilamentFFilament / ❓┊help
2y ago
group navigation
FilamentFFilament / ❓┊help
3y ago