Negotiating the language from the browser
Opened this issue · 8 comments
f-liva commented
With mcamara/laravel-localization you can get the default language trough the browser when the URL does not explicitly state it.
How can I do that with Loki?
mabasic commented
Currently Loki does not support that feature. I'm planning on creating a new version in which I will maybe include this.
Do you want me to ping you if I implement it?
f-liva commented
Yes thank you!
meduzen commented
I subscribed to this issue, so the ping will be automatic.
f-liva commented
any news here?
mabasic commented
Not yet. I was trying to create a new version of loki which would tightly integrate with Laravel routing, but I failed. I'll give it another go, once I recover from the fail xD
f-liva commented
I think we can use a middleware to negotiate the language... could be?
mabasic commented
Yes, I'll try doing that.
f-liva commented
Great news! 🎉