13

In Firefox Accept-Language is set globally for the browser in the general preferences or via an extension like "Modify Headers" for more frequent changes.

But how to do that in Safari?

Safari. On OS X the language sent is that specified in the OS X system language preferences. To change those preferences go to System Preferences > Language & Region > Preferred Language, but be aware that it will change the language of your user interface, not just your browser language preferences. Make sure you know how to switch back to your normal language!

That is very inconvenient.

Is there a way to do the same with Safari, to simulate a different language/location, for example for web development purposes?

2
  • Does this solve it for you apple.stackexchange.com/questions/245/…
    – Mr R
    Mar 19, 2021 at 16:41
  • This might work, since he wants to run one app under a different language that the default macOS language. However, the link provided in the right answer is no longer working, the name is for sale and I suspect the app won't work anymore. Besides, we need to know if Safari will sent the HTTP header based on this parameter (app running language) or the OS default (will get from preferences). In Safari's case, an extension might be a better way, thought.
    – Gustavo
    Mar 21, 2021 at 13:53

2 Answers 2

1

One way to set the language for Safari without changing the language for the entire system, is to go into System Preferences > Language & Region > Apps. Here you can add a new entry to customise the language for Safari only.

3
  • Great! I haven't fully tested it yet, need to know if the server will assume I am using other language. This feature didn't exits when I opened this thread, nice addition to de OS. But be advised that might be a slow process since the OS will scan for all apps and languages.
    – Gustavo
    Aug 6, 2021 at 12:51
  • 1
    @Gustavo Do let us know if it works so that you actually get the right language websites from just changing the Safari interface language. Aug 6, 2021 at 13:55
  • Unfortunately this does not work, I just tried it. It changes the UI language of the Safari app to English, but it will still send whatever you have as "primary" language of the OS in the Accept-Language header. Apr 29 at 23:41
0

You can change the language of any website in any browser(Safari, Chrome, Firefox..) by creating a Modify Headers rule in Requestly

enter image description here

This will add the header Accept-Language in Safari for the URLs present in the rule. This is instantly reflected in your browser without changing any System Preferences

Disclaimer: I work at Requestly

1
  • This sound cool, but :) ...it requires a system wide proxy through which requests from ALL apps go through (AFAICS). Seems overkill for changing one header value in one app, and probably introduces more issues than it solves. Apr 29 at 23:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .