Conversation
Contributor
This PR does the following
-
Refactor Intl initialization — Move logic from
JavaScriptEngineintoIntl.init(), making the Intl module self-contained and enabling static function registration (forgetCanonicalLocales()in the later commit) -
Implement
Intl.Locale -
Implement
Intl.getCanonicalLocales() -
Add
supportedLocalesOf()toIntl.NumberFormatandIntl.DateTimeFormat
Member
@duonglaiquang this looks great, looking forward to the things you like to do on top of this.
Member
@duonglaiquang looks like my latest cleanup has borken something, working on that
Member
@duonglaiquang have fixed the toString stuff and switched to array-like support. this is a bit closer to the spec. Maybe you like to backport that to your branch