loki icon indicating copy to clipboard operation
loki copied to clipboard

Negotiating the language from the browser

Open f-liva opened this issue 5 years ago • 8 comments

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?

f-liva avatar Jun 27 '19 10:06 f-liva

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?

mabasic avatar Jun 30 '19 23:06 mabasic

Yes thank you!

f-liva avatar Jul 01 '19 07:07 f-liva

I subscribed to this issue, so the ping will be automatic.

meduzen avatar Jul 10 '19 19:07 meduzen

any news here?

f-liva avatar Sep 03 '19 08:09 f-liva

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

mabasic avatar Sep 03 '19 09:09 mabasic

I think we can use a middleware to negotiate the language... could be?

f-liva avatar Oct 19 '19 08:10 f-liva

Yes, I'll try doing that.

mabasic avatar Oct 21 '19 08:10 mabasic

Great news! 🎉

f-liva avatar Nov 08 '19 12:11 f-liva