Filament Language Switch not visible outside panels
Hello, I'm successfully using this language switcher in panels, but in the frontend -- outside of panels -- it's not displaying unless I manually add the component, like so:
<livewire:filament-language-switch key='fls-outside-panels' />
This causes the language switcher to show up in the bottom-right corner of the page, and it still works, but I want it to continue showing up in the Filament user menu, which I'm also rendering on my frontend outside of panels.
Here is how I've configured the plugin in the boot() method of AppServiceProvider.php:
I'm including the FIlament user menu like so in my frontend layout: <x-filament-panels::user-menu />
.
I've gotten other things working outside of panels, like dropdown menus and the light/dark mode switcher, but this language switcher eludes me.GitHub
GitHub - bezhanSalleh/filament-language-switch: A versatile and use...
A versatile and user-friendly plugin designed for Filament Panels. - bezhanSalleh/filament-language-switch
Solution:Jump to solution
Well, it turns out this is extremely simple with a direct include of the file as per my first post. With the following configuration, the language menu will show up wherever the component is included on the page:
```
LanguageSwitch::configureUsing(function (LanguageSwitch $switch) {
$switch...
1 Reply
Solution
Well, it turns out this is extremely simple with a direct include of the file as per my first post. With the following configuration, the language menu will show up wherever the component is included on the page: