-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add support for more subtags #580
Comments
I think we need to have a high level guideline about what should be considered and what should not be. Currently, ECMA402 is very specific of the following are NOT allowed and the keys "kb", "kh", "kk", "kr", and "vt" are not allowed in this version of the Internationalization API. |
@FrankYFTang absolutely! Should we put this on the agenda for the next monthly meeting? I was alluding to the same thing in my review to #581. |
also, another two are "cf" and "ss" so I filed PR for adding "cf" in the same way as "cu" in #581 Another is "ss" I filed tc39/proposal-intl-segmenter#142 |
@FrankYFTang agreed on the segmenter. I generally feel that we should prefer subtags over options (since they can be best included in |
Is that a dupe of #105 ? |
I think #105 is about filling in the set between the locale and the options bags, whereas this issue is about adding support for new ones. |
TG2 discussion: https://github.com/tc39/ecma402/blob/master/meetings/notes-2022-12-08.md#add-support-for-more-subtags-580 Conclusion: Move forward with adding more locale keywords. Add any that are in UTS 35 that impact ECMA-402 formatters, no more, no less. |
Looking over the table in UTS 35: https://www.unicode.org/reports/tr35/tr35.html#Key_Type_Definitions It seems that there are 3 keywords that might be relevant (besides rg and sd):
Therefore, it seems that |
It is not clear to me why is rg difficult to support. |
This is blocked on |
Currently, a number of Unicode extension keywords are supported, including
nu
for numbering systems,ca
for calendaring systems,hc
for hour cycles, etc.This issue tracks all the BCP-47 subtags added by Unicode that we do not yet support. Feel free to add to the list below this:
rg
(Region override): see Region Override Support #370.fw
(First day of the week): see First day of the week -- Intl.getCalendarInfo() #6.The text was updated successfully, but these errors were encountered: