bezhanSalleh / filament-language-switch

A versatile and user-friendly plugin designed for Filament Panels.
MIT License
226 stars 44 forks source link

It does not work on filament v3 #46

Closed aymanalhattami closed 1 year ago

aymanalhattami commented 1 year ago

In AdminPanelProvider

->plugins([
    FilamentLanguageSwitchPlugin::make()
])

and nothing appear in the admin panel

image

bezhanSalleh commented 1 year ago

Make sure you have imported the class BezhanSalleh\FilamentLanguageSwitch\FilamentLanguageSwitchPlugin; and if multiple panels it will only show for which you have registered it. Clear your view cache and if you have published filament views republish them.

aymanalhattami commented 1 year ago

It worked with me when I changed the hook to panels::user-menu.before

->plugins([
    FilamentLanguageSwitchPlugin::make()->renderHookName('panels::user-menu.before'),
])