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

List of browser languages #61

Closed
playpirates opened this issue Sep 5, 2019 · 1 comment
Closed

List of browser languages #61

playpirates opened this issue Sep 5, 2019 · 1 comment

Comments

@playpirates
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

getBrowserLang() and getBrowserCultureLang() returns only the first language in the list.

Expected behavior

There should be methods which returns the complete lists of configured languages.

What is the motivation / use case for changing the behavior?

The user's native language is German, but he also knows Spanish.
The user has multiple configured languages in browser in order [German, Spanish].
The app supports English and Spanish languages.

Because there is no German translation, English is selected as fallback instead of Spanish, even if the user knows Spanish.

@itayod
Copy link
Contributor

itayod commented Sep 5, 2019

@playpirates thanks for your input,

There is no point to add it to our API. You can accomplish that by using the browser's navigator.languages API, but consider that it is not fully browser supported.

@itayod itayod closed this as completed Sep 5, 2019
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