Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing the internationalization information #47

Open
ernestob opened this issue Feb 10, 2023 · 1 comment
Open

Missing the internationalization information #47

ernestob opened this issue Feb 10, 2023 · 1 comment

Comments

@ernestob
Copy link

Switching the language works, but is not mocking all the internationalization settings.

How to reproduce the issue?
Load https://browserleaks.com/javascript
Scroll down to the "Internationalization API" section

The internationalization API is still having the locale in the language of your OS.

@cas--
Copy link

cas-- commented Apr 18, 2023

Can also confirm in the console after switching to af in locale-switcher:

navigator.language
"af"
Intl.Collator().resolvedOptions().locale 
"en-GB"

However I found that the web app I was testing was caching the original language and not updating when switching language therefore this issue doesn't actually affect my use-case...

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

No branches or pull requests

2 participants