Safari locale doesn't match system locale

I noticed multiple sites pre-selecting the wrong country when I visit them: The Netherlands instead of Belgium. Today I checked this in the Javascript console and my navigator.language variable is set to "nl-nl". This of course explains why this is happening.


However, my system locale was left unchanged. It's still configured as Belgium - Dutch. And the Terminal environment is also correct: LANG=nl-BE.UTF-8.


I don't know when this came to be like that, but I suspect one of the last Mavericks updates. I'm running 10.9.4 with Safari 7.0.5 (9537.77.4). Anyone else also facing this issue and found a solution? I already tried trashing the Safari preferences but that didn't help.

Posted on Jul 10, 2014 2:51 PM

Reply
2 replies

Jul 11, 2014 12:15 PM in response to Linc Davis

Hi Linc,


Thanks for your reply.


I tried that, but it didn't help. We found out that Safari completely ignores the 'country' part of the system settings. If you select Belgium-French it sends "fr-fr" instead of "fr-be" as its Accept-Language header in HTTP (checked using Charles on multiple Macs). It also sends just 1 language instead of all languages set in System Preferences. Even worse: Safari on iOS shows the same behavior.


Chrome and Firefox do it correctly though. It's quite unfortunate that Apple doesn't send a correct Accept-Language header. Now we have to count on geo-IP to detect from which country or region a user is coming from.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari locale doesn't match system locale

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.