Is it possible to make Safari open a web page in a different language without having to change the whole system language?

I need to test if the Angular translations come out right but changing system language every time is really annoying.

  • Translation plugin? – JBis Jun 13 '18 at 15:41
  • No, I don’t need to translate, just load the page as if the system language was different - but without actually changing the system language – Fabio Cionini Jun 13 '18 at 15:45
  • Take a look at this w3schools.com/jsref/prop_nav_language.asp. I would suggest JavaScript injection of some sort. – JBis Jun 13 '18 at 15:47
  • @Josh that property is read-only – Fabio Cionini Jun 13 '18 at 15:48
  • Or change example.com/en/ to example.com/es – JBis Jun 13 '18 at 15:49

I'm not sure it's possible to independently change Safari’s accept-language, but try this terminal command, replacing ’en-AU’ depending on what language you would like:

/Applications/Safari.app/Contents/MacOS/Safari -AppleLanguages '(en-AU)'

You should be able to do it with Firefox, via Preferences/General/Language

  • Thanks, I did not try that safari "hack" yet, I'm a bit afraid of messing things up ;) but Firefox did the trick. I'll wait if someone comes up with a little less hacky solution for Safari otherwise I will accept this. – Fabio Cionini Jun 13 '18 at 19:11

You must log in to answer this question.

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