-
Notifications
You must be signed in to change notification settings - Fork 12
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
Normative: Add firstDayOfWeek and consider "-u-fw" #70
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
Question: Do we need to do anything else to clarify that the value of the extension keyword can change the outcome of WeekInfoOfLocale, or is that already covered by the hand-wavy
Return a record whose fields are defined by <emu-xref href="#table-locale-weekinfo-record"></emu-xref>, with values based on _locale_.
I think it should be clarified in more detail → #30. |
This is also changing
So we have to decide if it's more important to keep the values returned from See also #73 for another case where Unicode extension values and values returned from Edit: Also mentioned in #68 (comment). |
I totally agree we need to discuss the issue about the return value (string vs number) more. |
Another ref https://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Week_Data
|
https://tc39.es/ecma262/#sec-week-day
so the question is which representation should be used for Intl.Locale.getWeekInfo().firstDay and Intl.Locale.getWeekInfo().weekend |
TG2 agree that we should keep using 1-7 for value inside getWeekInfo() sync w/ Temporal |
Just to make it clear. that part of changes is already reverted and removed from this PR after our last TG2 meeting. |
@anba I added some more changes to make it sure if we have -u-fw- we will override it. |
hum... one issue need to be clearify by Mark in https://unicode-org.atlassian.net/browse/CLDR-16839 |
The changes to WeekInfoOfLocale may be invalid - depending on the answer on https://unicode-org.atlassian.net/browse/CLDR-16839 |
v8 tracking bug https://bugs.chromium.org/p/v8/issues/detail?id=14159 |
The PR in the current state does not reach consensus in TC39 during July 12, 2023 meeting I put down 4 new proposals in #68 (comment) Let's discuss the option there |
The topic has no enough time to be discussed during last TG2 but a big group of people share their opion within 10 minutes of the official end of TG2 and favor Option C (Also mentioned in the TC39)I. Intl.Locale.prototype.firstDayOfWeek returns: <<undefined, 1, 2, 3, 4, 5, 6, 7>> I will change this PR to reflect that opinion soon and discuss that in TG1 |
9e90ce2
to
4ff7bad
Compare
Also change the return value of getWeekInfo() to use string instead of integer.
f1db5e6
to
f03a814
Compare
PTAL |
This PR is ready to review. Be aware it handle the "fw" keyword in the locale and return firstDayOfWeek in the set of <1 .. 7> |
Please review and give me your feedback before the TC39 Sept 2023 in 9/26. I would like to get consensus to merge that in TG1 |
Test for enhancement in tc39/proposal-intl-locale-info#70
test tc39/test262#3924 |
Consensus reach in 2023-09-26 TC39 meeting. |
Hello - I'm implementing this change over in Serenity's LibJS and had a question. Do the AO definitions of |
It also seems like it's possible to hit the For example, if the user provides
Then |
That is a good point. File a different issue #78 Let's move the discussion to that issue. |
Test for enhancement in tc39/proposal-intl-locale-info#70
Test for enhancement in tc39/proposal-intl-locale-info#70
Test for enhancement in tc39/proposal-intl-locale-info#70
Also change the return value of getWeekInfo()
to use string instead of integer.