Skip to content

Instantly share code, notes, and snippets.

@gynekolog
Forked from kentbrew/lang_chrome_osx.md
Last active August 14, 2022 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gynekolog/bc8656020884380e94325c0d427e641c to your computer and use it in GitHub Desktop.
Save gynekolog/bc8656020884380e94325c0d427e641c to your computer and use it in GitHub Desktop.
How to change the Chrome default language on OSX

How to Change your Chrome Default Language

Open up a Terminal window. (If you have never seen Terminal before, go to Spotlight Search and type "Terminal.")

In the Terminal box, try this:

defaults read com.google.Chrome AppleLanguages

If you see this:

The domain/default pair of (com.google.Chrome, AppleLanguages) does not exist

... don't panic. It just means that nobody else has used this method before. To change your language, do this:

defaults write com.google.Chrome AppleLanguages '(pt-BR)'

Capitalization of the language code you enter is unimportant; your system will normalize it to lower-lower-UPPER-UPPER.

Here I've chosen Portuguese as it is spoken in Brazil. Feel free to enter the IETF language code of your choice; some of my personal favorites are en-UK, fr-CA, and es-MX. For a complete list, see the Wikipedia entry.

Restart Chrome.

If Chrome knows the language you entered, the top menu will immediately switch; mine says Arquivo, Editar, and Visualizar when I switch to pt-BR.

To switch back to the default state, run: defaults delte com.google.Chrome AppleLanguages

And if you're ever confused about what language has been selected, do this:

defaults read com.google.Chrome AppleLanguages

... or use a Web inspector to enter console mode on any page and type this:

window.navigator.language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment