Skip to content

Test language preference in Intl.Locale.p.getHourCycles - #5091

Merged
ptomato merged 1 commit into
tc39:mainfrom
ptomato:ecma402-1086-language-preference-locale-gethourcycles
Jul 23, 2026
Merged

Test language preference in Intl.Locale.p.getHourCycles#5091
ptomato merged 1 commit into
tc39:mainfrom
ptomato:ecma402-1086-language-preference-locale-gethourcycles

Conversation

@ptomato

@ptomato ptomato commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This test is for the normative PR tc39/ecma402#1086, where getHourCycles() and getCalendars() are changing to use language-region data if available, instead of just region-specific.

It is not possible to write a test for getCalendars() since currently there are no known implementations where language-region-specific calendar preferences exist.

LLM disclosure: I used a bot to search for suitable input locale candidates. I also used the same bot for a first draft of the test file, although I basically discarded the result.

@ptomato
ptomato requested a review from a team as a code owner July 21, 2026 22:11
@ptomato ptomato added needs review awaiting consensus This needs committee consensus before it can be eligible to be merged. labels Jul 21, 2026
@ptomato
ptomato marked this pull request as draft July 21, 2026 22:13
@ptomato

ptomato commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

This normative PR is up for consensus in the TC39 meeting on Wednesday; draft until then.

Comment thread test/intl402/Locale/prototype/getHourCycles/language-priority.js Outdated
This test is for the normative PR
tc39/ecma402#1086, where getHourCycles() and
getCalendars() are changing to use language-region data if available,
instead of just region-specific.

It is not possible to write a test for getCalendars() since currently
there are no known implementations where language-region-specific
calendar preferences exist.

LLM disclosure: I used a bot to search for suitable input locale
candidates. I also used the same bot for a first draft of the test
file, although I basically discarded the result.
@ptomato
ptomato force-pushed the ecma402-1086-language-preference-locale-gethourcycles branch from 97107ca to 64a7136 Compare July 23, 2026 00:42
@ptomato
ptomato marked this pull request as ready for review July 23, 2026 00:43
@ptomato ptomato added has consensus This has committee consensus and removed awaiting consensus This needs committee consensus before it can be eligible to be merged. needs review labels Jul 23, 2026
@ptomato
ptomato merged commit ac6134b into tc39:main Jul 23, 2026
14 checks passed
@ptomato
ptomato deleted the ecma402-1086-language-preference-locale-gethourcycles branch July 23, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has consensus This has committee consensus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants