bezhanSalleh / filament-language-switch

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

Change render hook #39

Closed lukas-frey closed 1 year ago

lukas-frey commented 1 year ago

Hi, you might want to change the default render hook to panels::user-menu.before instead.

If you don't use global search, which by default is not enabled in the filament panel, the language switch will not appear, due to panels::global-search.end working only if global search is enabled.

bezhanSalleh commented 1 year ago

the default hook for the plugin ispanels::global-search.after so if you are on the stable release there won't be any issue since this hook will work even if the global search is not enabled.