5

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.

13
  • Translation plugin?
    – JBis
    Jun 13, 2018 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 Jun 13, 2018 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, 2018 at 15:47
  • @Josh that property is read-only Jun 13, 2018 at 15:48
  • Or change example.com/en/ to example.com/es
    – JBis
    Jun 13, 2018 at 15:49

1 Answer 1

4

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

2
  • 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. Jun 13, 2018 at 19:11
  • That would still change the whole Safari language. Not specifically asked for in the original post, but the idea would be to set the preferred language per website. I'm looking for that option right now.
    – Johan
    May 3 at 11:17

You must log in to answer this question.

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