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 MaximeOP14mo 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
MohamedSabil8314mo ago
Use callback like ->label(fn() => __('Your translation key'))
Solution
Becker Maxime
Becker Maxime14mo ago
thanks, it works properly
MohamedSabil83
MohamedSabil8314mo ago
You're welcome
Want results from more Discord servers?
Add your server