bezhanSalleh / filament-language-switch

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

Detect language from browser (if not logged in) #65

Closed wq9578 closed 8 months ago

wq9578 commented 8 months ago

It would be desirable to have the language detected from the browser setting, if not logged in, as done here.

If logged in, the user locale should be stored in the database, as somebody already suggested earlier.

bezhanSalleh commented 8 months ago

It already does, if the user locale is one of the locales you have enabled for the switch.

wq9578 commented 8 months ago

There is a bug, so it doesn't work in most cases: https://github.com/bezhanSalleh/filament-language-switch/issues/68