Intl Enumeration API�[Stage 2]
April 2021 Update
Frank Yung-Fong Tang / 譚永鋒� ftang@google.com
April 19-22, 2021
https://github.com/tc39/proposal-intl-enumeration
Spec text: https://tc39.es/proposal-intl-enumeration/
Charter of “Intl Enumeration API”
List supported values of options in pre-existing ECMA 402 API.
Motivation / Background / History
Privacy / Fingerprinting Concerns
“Mozilla does not believe that Intl.Enumeration proposal opens up any new fingerprinting vector and thus we do not believe it should be blocked on that ground.”
“Intl.Enumeration Privacy Implications Mozilla’s Recommendation”. �Tom Ritter, Anne van Kesteren, Steven Englehardt, Zibi Braniecki, Feb 4, 2021.�https://docs.google.com/document/d/1Zw6cYNJpL69HtQfA4-S7bKlCPywhhmoF6Mja-qy-JpU
Delegate from Apple agreed with the privacy analysis from Mozilla during 2021-04-08 ECMA 402 meeting.
A
Resolved!
Scope
API - one method in Intl object
// Find out the supported calendars
for (const calendar of Intl.supportedValuesOf("calendar")) {
// 'buddhist', 'chinese', ... 'islamicc'
}
// Find out the supported currencies
for (const currency of Intl.supportedValuesOf("currency")) {
// 'AED', 'AFN', 'ALL', ... 'ZWL'
}
// Find out the supported numbering systems
for (const numberingSystem of � Intl.supportedValuesOf("numberingSystem")) {
// 'adlm', 'ahom', 'arab', ... 'wara', 'wcho'
}
// Find out the supported time zones
for (const timeZone of Intl.supportedValuesOf("timeZone")) {
// 'Africa/Abidjan', 'Africa/Accra', ... 'Pacific/Wallis'
}
// Find out the supported units
for (const unit of Intl.supportedValuesOf("unit") {
// 'acre', 'bit', 'byte', ... 'year'
}
Options
// Find out the supported time zones of region "US"
for (const timeZoneInUS of � Intl.supportedValuesOf("timeZone", {region: "US")) {
// "America/Adak", "America/Anchorage", ... � // "America/Yakutat", "Pacific/Honolulu"
}
Spec Text
Request to TC39
Need one or two additional Stage 3 Reviewers