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.
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.
Other suggestions does not work in Debian Jessie. What works for me is:
LANGUAGE=de google-chrome
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
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
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.
For latest chrome versions below command should work.
path_to_chrome.exe --accept-lang=en-GB
Need to follow protocol language[-country]. Refer https://peter.sh/experiments/chromium-command-line-switches/#accept-lang
Can even give multiple languages using comma as delimeter.
path_to_chrome.exe --accept-lang=en-GB,en-US
Note: If you have chrome already open it'll open new window in same session and hence changes you might not see locales reflecting. Either close existing sessions else use --user-data-dir=/path
(refer) to start an isolated session.
I know this is a very old post but I was searching for a solution to define language for chrome without even starting it or update the exe shortcut.
It is possible to force a language and a locale for chrome with the registry on windows.
You need 2 keys to be changed WITH ADMIN RIGHTS :
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Google\Chrome]
"ApplicationLocaleValue"="fr"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Google\Chrome\ForcedLanguages]
"1"="fr-FR"
This is forcing the language so all users will not be able to update it with the Chorme UI.
If you need to force a language and be able to modify it with the UI, maybe there is a solution on the official Documentation linked below.
Official Documentation :
Best regards.