Skip to content

Instantly share code, notes, and snippets.

@kentbrew
Last active November 4, 2025 09:40
Show Gist options
  • Select an option

  • Save kentbrew/e9449acd12c1ef2d78b5b473f615d23b to your computer and use it in GitHub Desktop.

Select an option

Save kentbrew/e9449acd12c1ef2d78b5b473f615d23b 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, run the same Terminal command with your preferred language. 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

@avalanche1

avalanche1 commented Mar 8, 2021

Copy link
Copy Markdown

Doesn't seem to work for chrome 89. Crashes on open.

@kentbrew

Copy link
Copy Markdown
Author

It's working for me right now on Chrome 90.0.4430.85, no crash. Sorry about that!

@wolfey

wolfey commented Aug 3, 2021

Copy link
Copy Markdown

To remove the setting, execute:

defaults delete com.google.Chrome AppleLanguages

@kloparov

Copy link
Copy Markdown

God bless you man!

@unsalkorkmaz

Copy link
Copy Markdown

@pohy

pohy commented Dec 2, 2022

Copy link
Copy Markdown

Dammit, you are the best!

@tiancihe

Copy link
Copy Markdown

it works, thanks a lot

@a90120411

Copy link
Copy Markdown

Thanks !

@user20161119

Copy link
Copy Markdown

Thanks,It's work

@haspadarZ-padMensku

Copy link
Copy Markdown

best

@k-yle

k-yle commented Mar 6, 2025

Copy link
Copy Markdown

This also works for edge by using com.microsoft.edgemac or com.microsoft.edgemac.Beta instead of com.google.Chrome

@oturan233

Copy link
Copy Markdown

thanks,

@yorkxin

yorkxin commented May 30, 2025

Copy link
Copy Markdown

Thanks, it works.

For the Chrome for Testing app, use com.google.chrome.for.testing.

And if you are running Selenium Python:

            if sys.platform == 'darwin':
                # run a command to set the language to English
                subprocess.run(["defaults", "write", "com.google.chrome.for.testing", "AppleLanguages", "-array", "en"])

@tuananhlai

Copy link
Copy Markdown

God bless you :D

@someone83474

someone83474 commented Jul 1, 2025

Copy link
Copy Markdown

And for Chromium use org.chromium.Chromium

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