bezhanSalleh / filament-language-switch

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

LocaleChanged Event is not dispatched #87

Closed Jorn-S closed 5 months ago

Jorn-S commented 5 months ago

I tried listening for the LocaleChanged event to store the preferred language of the user in the database, but the event you provide is not dispatchable:

Could you add this to the event:

use Dispatchable, InteractsWithSockets, SerializesModels;

Thanks in advance!

Jorn-S commented 5 months ago

Got it to work, but maybe still handy to add to the event