You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is how to most elegantly set current locale in js, based on currently used laravel (backend locale)?
I have tried different solutions like for example setting locale based on headers - accept language, but it is not working correctly under some circumstances.
Currently I have it working by including view partial on every page:
My question is how to most elegantly set current locale in js, based on currently used laravel (backend locale)?
I have tried different solutions like for example setting locale based on headers - accept language, but it is not working correctly under some circumstances.
Currently I have it working by including view partial on every page:
but it seems like terrible solution.
Any ideas how to deal with this respecting best practices?
The text was updated successfully, but these errors were encountered: