bezhanSalleh / filament-language-switch

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

V2 Switch Not work #37

Closed mstfkhazaal closed 1 year ago

mstfkhazaal commented 1 year ago

i install v2 in filament 3 but thw switch not exist in header

bezhanSalleh commented 1 year ago

look into the configure section of the readme or the plugin dev on the filamentphp docs

mstfkhazaal commented 1 year ago

I searched and found the problem with the hooks I tried all the hooks in the documentation but they didn't show up at the beginning of the search https://beta.filamentphp.com/docs/3.x/support/render-hooks

     FilamentLanguageSwitchPlugin::make()
                        ->renderHookName('panels::global-search.start'),
bezhanSalleh commented 1 year ago

the render hooks names have been changed since this was implemented to properly align with the new panels system filament offers. just update and everything will be fine.