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 Maxime10mo 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
MohamedSabil8310mo ago
Use callback like ->label(fn() => __('Your translation key'))
Solution
Becker Maxime
Becker Maxime9mo ago
thanks, it works properly
MohamedSabil83
MohamedSabil839mo ago
You're welcome