-
Notifications
You must be signed in to change notification settings - Fork 4
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
What use cases is this intended to support? #3
Comments
Maybe I've misunderstood, but would this be equivalent to a weighted list of locales with everything having the same weight? |
Well actually, I would love to have this functionality. Here is a practical example:
Calling => 'fr.json' in the case of our French Canadian |
yes that's the primary use case we're proposing to support. |
Then why Intl.LocaleMatcher.match requestedLocales doesn't take (also) a string? Do we have to manually parse HTTP header Accept-Language or navigator.languages string? (e.g. |
Yeah you should parse it |
A relevant observation about how users don't really have locale preference rankings, at least not in many cases: https://twitter.com/hsivonen/status/1301456494534234117
The ECMA-402 algorithms are not necessarily well-adapted to support that.
The text was updated successfully, but these errors were encountered: