#Localize does not detect the browser language

9 messages · Page 1 of 1 (latest)

elfin vortex
#

Hello everyone,
I'm writing to you about a problem I had with Localize. I've updated my example to the latest version of Qwik (v1.2.11). But I've noticed that I can't detect the browser language, it always sets the value to DEFAULT_LOCALE. No matter how many times I change the browser language, I always end up with the same one. I'd like to know if I've forgotten anything for this to work?

Repo example : https://github.com/skhiter/qwik-localize

GitHub

Contribute to skhiter/qwik-localize development by creating an account on GitHub.

torn inlet
#

did you inspect the header of your request to inspect the Accept-Language ?

elfin vortex
torn inlet
#

So it's an order of priority : the first order of priority here is English, so you should be redirected to /en/

#

Did you try a curl request with a header that only contains fr-Fr;q=1 in the header to your project app at the root to see where it gets redirected ?

elfin vortex
torn inlet
#

Argh, that must be frustrating. I'm trying to debug something on my side for a project, is it ok if I give it more time later today ? I'll clone your project to see how it behaves on my side (my browser is also in french by default, I'm french)

#

don't hesitate to up this conversation if I forget or send me a personal message, sorry I can't give it time right now

elfin vortex
#

I'm French too 😁