ecma402
ecma402 copied to clipboard
Get current locale by new Intl.Locale() without tag.
Is there any reason I need to do
new Intl.Locale(new Intl.DateTimeFormat().resolvedOptions().locale).weekInfo.firstDay
instead of just
new Intl.Locale().weekInfo.firstDay
to get the current locale?
How would you like to handle a situation where because of available data your datetimeformat resolved locale is different from your numberformat resolved locale?
This is requesting that new Intl.Locale() without a tag to return the DefaultLocale() . I think this is different from what this proposal intend to do - accessing information in a determined locale. Move to ECMA402 for discussion
Previous discussions:
- https://github.com/tc39/proposal-intl-locale/issues/15
- https://github.com/tc39/proposal-intl-locale/issues/84