Use LocaleSwitcher in userMenuItems

I have multilanguage content. Currently i loop over all my allowed locales and display standard links in userMenuItems. It gets pretty long (not the best UI/UX experience). I would like to use SpatieLaravelTranslatablePlugin widget (Livewire) LocaleSwitcher in AdminPanel userMenuItems to switch app locale rather to put this Widget in every Resource page and duplicate code. There is Theme Switcher working in user menu already. Is it doable to inject other Livewire widgets?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?