i18n language auto detection not working

I have users telling me my site doesn't automatically detect their language. I tried switching my browser and browser language to spanish, and it doesn't work (on ANY site, even google?). My Accept-Language header is es-ES,en-US;q=0.7,en;q=0.3 My navigator.language is es-ES But no matter what when I delete the i18n_redirected cookie, it recreates it en "en". What setting do I need to change on chrome for a site to auto detect my language?
4 Replies
brunomgmateus
brunomgmateus2mo ago
Are you using "prefix_except_default" strategy? There's currently a pending issue that may be affecting you. https://github.com/nuxt-modules/i18n/issues/3039
GitHub
DetectBrowserLanguage rollback to default locale when using `prefix...
Environment Operating System: Linux Node Version: v18.20.3 Nuxt Version: 3.12.4 CLI Version: 3.12.0 Nitro Version: - Package Manager: [email protected] Builder: - User Config: modules, runtimeConfig, i18...
Bobakanoosh
BobakanooshOP2mo ago
Thanks for the link @brunomgmateus I am using prefix_except_default, though in that issue’s reproduction, he actually has detectBrowserLanguage off, while I have mine off, so seems unrelated? Unless I’m misunderstanding
hz2222
hz22222mo ago
Did u solve it?
Bobakanoosh
BobakanooshOP2mo ago
I made a workaround, I manually check their navigator.language, set their locale, and set a cookie so this only happens once
Want results from more Discord servers?
Add your server