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 does not.
Just right-click the shortcut, locate Google Chrome there, right-click on it and select Properties. The Shortcut tab should open up automatically. It displays the load path of the browser in the target field. At the end of the field, after the closing ", add a space, and then the command line switch you want to use.
Open Chrome Using Command Prompt You can also do the same thing from the “Run” window. Open Run by typing “Run” in the Windows 10 search bar and selecting the “Run” application. Here, type Chrome and then select the “OK” button. The web browser will now open.
Other suggestions does not work in Debian Jessie. What works for me is:
LANGUAGE=de google-chrome
In my case anyway, I had to specify both en-US
and en
to get everything setup correctly.
This was my command-line argument:
--lang=en-US,en
UPDATE: You might also try:
--lang=en_US
path_to_chrome.exe --lang=locale
(notice the =
sign)
Comprehensive instricution on how to set your browser's locale: https://developer.chrome.com/extensions/i18n#locales-testing
List of supported locales: https://developer.chrome.com/webstore/i18n#localeTable
On Windows, it's just working with
chrome.exe --lang=en_US
Important: You need to close all other chrome windows! Otherwise the locale of the current opened chrome process will be taken.
Alternative: Is to choose a different user-data-dir. With --user-data-dir=tmp
you can keep your chrome open.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With