Skip to content

Allow using Locale constants for setting language level#945

Open
skyhirider wants to merge 1 commit intoHtmlUnit:masterfrom
skyhirider:master
Open

Allow using Locale constants for setting language level#945
skyhirider wants to merge 1 commit intoHtmlUnit:masterfrom
skyhirider:master

Conversation

@skyhirider
Copy link
Contributor

I am wondering if setAcceptLanguageHeader should also inherit the value set in language level by default, as I believe Chrome switches the value when you set the browser itself to run in another language.

@skyhirider
Copy link
Contributor Author

skyhirider commented Mar 16, 2025

yup, when I set

ChromeOptions chOptions = new ChromeOptions();
chOptions.addArguments("--lang=de");

I can see de-DE,de in accept-language

image

Think its worth adding this to the pull as well?

Time zone does not change with this setting thou.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant