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

Update toLocaleString notes for NodeJS to match Intl API notes #6252

Merged
merged 1 commit into from Jun 8, 2020
Merged

Update toLocaleString notes for NodeJS to match Intl API notes #6252

merged 1 commit into from Jun 8, 2020

Conversation

gilmoreorless
Copy link
Contributor

This is a follow-up to the discussion in #6202. That PR added notes about varying locale support in Node for the Intl APIs. The wording was tweaked a few times based on feedback and testing.

This PR updates all the other locale-focused notes to the same wording. Specifically this corrects some mistakes in the original wording:

  • The canonical locale string is en-US, not en-us.
  • A RangeError is only thrown when an invalid locale format is provided, not for valid locales other than English.
  • As pointed out by @ddbeck, the name of the compile-time flag was incorrect.

@ghost ghost added the data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Jun 6, 2020
Copy link
Collaborator

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very tidy. Thank you! 🎉

@ddbeck ddbeck merged commit 87181a1 into mdn:master Jun 8, 2020
@gilmoreorless gilmoreorless deleted the update-toLocaleString-notes branch June 9, 2020 00:15
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.

None yet

2 participants