Skip to content
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 Intl.Collator option for collation #8471

Merged
merged 2 commits into from
Jan 4, 2021

Conversation

hamishwillee
Copy link
Contributor

@hamishwillee hamishwillee commented Dec 31, 2020

Support for a collation option was added to the Intl.Collator constructor.

From spec and testing verify that this is in FF85, Chrome 87. Also tested that it is in nodejs 15. Have applied to various android builds based on that. Note - Opera android and samsung android are false because they don't yet have builds.

Not sure about Webkit. I know it is present from safari 114 but not sure how this maps to BCD builds - search on collation under https://developer.apple.com/safari/technology-preview/release-notes/#r114

My test code for this is as below - on supported builds the collation will be shown as 'phonebk'

var options = Intl.Collator('de',{collation: 'phonebk'}).resolvedOptions();
for (var property in options) {
  console.log(property + ': ' + options[property]);
}

@ddbeck FYI

@github-actions github-actions bot added the data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Dec 31, 2020
@sideshowbarker sideshowbarker merged commit 67d128d into mdn:master Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants