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

Also change navigator.languages #15

Open
ygoe opened this issue Jun 30, 2023 · 0 comments
Open

Also change navigator.languages #15

ygoe opened this issue Jun 30, 2023 · 0 comments

Comments

@ygoe
Copy link

ygoe commented Jun 30, 2023

This extension sets the accept-language HTTP header but has no effect on JavaScript navigator.languages. That must be updated, too, or the effect will not be complete. For example the Mapbox GL API with the mapbox-gl-language plugin only considers navigator.languages but ignores the header so the map language cannot be changed with this extension. I have to change the browser language settings instead, which this extension aims to avoid.

Might be related to #14, they didn't provide any information about their problem.

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

1 participant