-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Intl resolved options order correction, normalize description #36056
Intl resolved options order correction, normalize description #36056
Conversation
files/en-us/web/javascript/reference/global_objects/intl/numberformat/resolvedoptions/index.md
Outdated
Show resolved
Hide resolved
Thanks! It has always been on my TODOs to fix the Intl options and reordering them was one of the goals. Will check this soon. |
…'s `resolvedOptions()` to match 402 spec
…layNames` objects
…tFormat's `resolvedOptions()` to match 402 spec
20f748d
to
95ab21e
Compare
This pull request has merge conflicts that must be resolved before it can be merged. |
…'s `resolvedOptions()` to match 402 spec
…tFormat's `resolvedOptions()` to match 402 spec
1434af4
to
c874c7d
Compare
rebased! |
…tions-order-correction' into intl-resolved-options-order-correction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've audited all pages, and also changed the descriptions to keep everything consistent. Thank you!
Thank you so much! |
* Added `"languageDisplay"` to `resolvedOptions()` of `Intl.DisplayNames` objects * Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Reordered `Intl.NumberFormat` `resolvedOptions` to reflect spec order. * Reordered `resolvedOptions` properties for `Intl.PluralRules` to reflect spec order * fixup! Added `"languageDisplay"` to `resolvedOptions()` of `Intl.DisplayNames` objects * fixup! Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Standardize format, first three * Fixes * Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Reordered `Intl.NumberFormat` `resolvedOptions` to reflect spec order. * Reordered `resolvedOptions` properties for `Intl.PluralRules` to reflect spec order * fixup! Swapped order of `"style"` and `"type"` properties in Intl.ListFormat's `resolvedOptions()` to match 402 spec * Fix others * numberformat --------- Co-authored-by: Joshua Chen <[email protected]>
Description
Reorders the
resolvedOptions
ofIntl
objects to the order in which properties are added in the spec. Adds a few properties that were previously left offresolvedOptions
return value.Motivation
Improve readability/consistency of
Intl
documentation.Additional details
See discussion here: #33340
Related issues and pull requests
Fixes #36055