Skip to content

Add "collation" option to Intl.Collator #380

@FrankYFTang

Description

@FrankYFTang

#175
add "calendar" and "numberingSystem" option to Intl.DateTimeFormat and Intl.NumberFormat
Also notice "numberingSystem" is already an option in Intl.RelativeTimeFormat.

We should also consider add "collation" to Intl.Collator.

Notes by @littledan in #175 stated
"This patch leaves out "collation" because of a lack
of clear use cases."

Not sure what does that mean.

I think it is useful. For example, in Chinese, we may construct the following collator

var pinyin = new Intl.Collator("zh", {collator: "pinyin"});
var zhuyin = new Intl.Collator("zh", {collator: "zhuyin"});
var stroke = new Intl.Collator("zh", {collator: "stroke"});

Metadata

Metadata

Assignees

Labels

SmallSmaller change solvable in a Pull Requestc: localeComponent: locale identifierss: discussStatus: TG2 must discuss to move forward

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions