F
Filament7mo ago
Marcel

LocaleSwitcher label of locale

Hi, I'm trying to to change the label of the LocaleSwitcher. I have a custom language with the handle frl and I want to give it a custom label. Or change the label of the nl language. Does somebody know how to do that?
No description
1 Reply
Patrick Boivin
Patrick Boivin7mo ago
There's a method on the plugin class :
SpatieLaravelTranslatablePlugin::make()
->getLocaleLabelUsing(function ($locale) {
// return locale display name
})
SpatieLaravelTranslatablePlugin::make()
->getLocaleLabelUsing(function ($locale) {
// return locale display name
})
Want results from more Discord servers?
Add your server