bezhanSalleh / filament-language-switch

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

Feature Request: Hook to do more when switching language #33

Closed ziming closed 1 year ago

ziming commented 1 year ago

Sometimes after doing an action, i want to send some notifications in the user preferred locale. However notifications are typically delayed queue jobs.

So it will be good if you provide hooks such that when switch locale, i can set the auth user locale value in the database to the new value.

See: https://laravel.com/docs/10.x/notifications#user-preferred-locales

bezhanSalleh commented 1 year ago

nice, right now not possible but you can PR it and I will merge.