Launch Google Chrome with a specific locale (using the command line argument)

How to start Google Chrome with a specific locale using command line arguments?

According to http://peter.sh/experiments/chromium-command-line-switches/

chrome.exe --lang DE 

should work, however it is not.

+6
source share
3 answers

Other offers do not work in Debian Jessie. What works for me:

 LANGUAGE=de google-chrome 
+3
source

path_to_chrome.exe --lang=locale (note the = sign)

A comprehensive intrigue on how to set the language standard of your browser: https://developer.chrome.com/extensions/i18n#locales-testing

List of supported locales: https://developer.chrome.com/webstore/i18n#localeTable

+2
source

In any case, I needed to specify both en-US and en so that everything was configured correctly.

This was my command line argument:

 --lang=en-US,en 
+2
source

Source: https://habr.com/ru/post/972943/


All Articles