-
Notifications
You must be signed in to change notification settings - Fork 106
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
Allow for different default locale per category #257
Comments
As someone who would benefit from this change, this doesn't concern me that much, since my |
What if we permit extension keys related to these concepts, and return them from navigator.locales? |
Related Chrome bugs are: https://bugs.chromium.org/p/chromium/issues/detail?id=162173 |
BTW, I'm not sure what @littledan meant :-). |
@jungshik I was thinking of the Region Override key, but maybe I'm misunderstanding what that does. |
Closing this issue per consensus: |
Is the idea here, we'll follow up in |
My understanding is that once we get movement on |
ECMA402 currently uses the notion of
defaultLocale
per JS context. https://tc39.github.io/ecma402/#sec-defaultlocaleThis concept allows implementations to pick a default locale from places like - default locale used by the browser, or from the operating system - and use it for all intl formatters unless a different locale is provided to the function/constructor.
Unfortunately that does not apply well onto a scenario where the user separates the localization locale set from the internationalization locale set:
In both cases, we could provide better defaults for each Intl API if we could use different default locale per it. Clearly in a POSIX world, the default locale of
Intl.Collator
should come fromLC_COLLATE
, whileIntl.DateTime
should come fromLC_TIME
.The only reason not to do that I can see is that it potentially increases the fingerprinting vector, but for multilingual users, who consciously chose to separate their UI locale from their intl locale, it seems like that's their expectation. (based on feedback I received from multilingual users of Firefox who are surprised to find that the browser ignores that)
The text was updated successfully, but these errors were encountered: