Normative: Intl Locale API proposal for Stage 4#942
Conversation
|
Ready to be review for merging if Intl Locale Info advanced to Stage 4. Still need to merge tc39/proposal-intl-locale-info#92 into this PR first if TC39 approve both |
946cbe2 to
a110431
Compare
|
@ben-allen @gibson042 @ryzokuken will be nice if you can voice your concern or support about this PR from the editor's view ASAP before the TG1. Thanks |
gibson042
left a comment
There was a problem hiding this comment.
A few things to fix before approval.
spec/locale.html
Outdated
| 1. Let _region_ be GetLocaleRegion(_loc_.[[Locale]]). | ||
| 1. If _region_ is *undefined*, return *undefined*. |
There was a problem hiding this comment.
This logic seems like it belongs in TimeZonesOfLocale, replacing the assertion and bringing it in better alignment with LocaleDirection.
1. Let _region_ be GetLocaleRegion(_loc_.[[Locale]]).
- 1. Assert: _region_ is not *undefined*.
+ 1. If _region_ is *undefined*, return *undefined*.
1. Let _list_ be a List of unique canonical time zone identifiers, which must be String values indicating a canonical Zone name of the IANA Time Zone Database, of those in common use in _region_. The list is empty if no time zones are commonly used in _region_. The list is sorted according to lexicographic code unit order.
1. Return CreateArrayFromList( _list_ ).| 1. Let _region_ be GetLocaleRegion(_loc_.[[Locale]]). | |
| 1. If _region_ is *undefined*, return *undefined*. |
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
|
PTAL and in 2025-11-18 TC39 this stage 4 proposal is advanced to stage 4 |
|
PTAL |
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
|
TG1 approval for Stage 4: https://github.com/tc39/notes/blob/main/meetings/2025-11/november-18.md#intl-locale-info-api-for-stage-4 (should merge PR 92) |
There was a problem hiding this comment.
There are a few editorial nits that I'd be happy to address myself, but this PR cannot merge until we resolve the getTextInfo output question.
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
|
PTAL |
The spec text change for https://github.com/tc39/proposal-intl-locale-info
We should discuss this once Intl Locale Info API is ready to move to stage 4.
This is one of the require task.