navigationGroups translate

Hello, I'd like to sort my groups by adding my translation. Is this possible?
Solution:
thanks, it works properly
Jump to solution
4 Replies
Becker Maxime
Becker MaximeOP2y ago

return $panel
->navigationGroups([
NavigationGroup::make()
->label(__('quote-resource.nav.group')),

return $panel
->navigationGroups([
NavigationGroup::make()
->label(__('quote-resource.nav.group')),
error : Target class [translator] does not exist.
MohamedSabil83
Use callback like ->label(fn() => __('Your translation key'))
Solution
Becker Maxime
Becker Maxime2y ago
thanks, it works properly
MohamedSabil83
You're welcome

Did you find this page helpful?