-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Intl.NumberFormat - flyby fixes #18258
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
Changes from 11 commits
b9446d3
bb388ae
fb5ad81
870407e
5341b2c
311069d
1e0c7e8
339a747
ee1e843
35bb2b4
ea804f0
b2712f5
600c399
3d5fcca
14a16d4
51cfe41
fb6033b
efc0a37
d1477d4
3306d17
1e9a580
a55b388
a87bcb3
6c4971c
273d63c
a7feb57
62729c4
558cd4e
87f9adf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,9 +14,7 @@ browser-compat: javascript.builtins.Intl.NumberFormat.resolvedOptions | |
| --- | ||
| {{JSRef}} | ||
|
|
||
| The **`Intl.NumberFormat.prototype.resolvedOptions()`** method | ||
| returns a new object with properties reflecting the locale and number formatting | ||
| options computed during initialization of this {{jsxref("Intl.NumberFormat")}} object. | ||
| The **`Intl.NumberFormat.prototype.resolvedOptions()`** method returns a new object with properties reflecting the [locale and number formatting options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters) computed during initialization of this {{jsxref("Intl.NumberFormat")}} object. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI This is the main change to this doc - it adds a link to the actual formatting options (as well as the final object - which isn't all that interesting when you're wondering what the options it might return are) |
||
|
|
||
| {{EmbedInteractiveExample("pages/js/intl-numberformat-prototype-resolvedoptions.html")}} | ||
|
|
||
|
|
@@ -30,8 +28,7 @@ resolvedOptions() | |
|
|
||
| ### Return value | ||
|
|
||
| A new object with properties reflecting the locale and number formatting options | ||
| computed during the initialization of the given {{jsxref("Intl.NumberFormat")}} object. | ||
| A new object with properties reflecting the [locale and number formatting options](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters) computed during the construction of the given {{jsxref("Intl.NumberFormat")}} object. | ||
|
|
||
| ## Description | ||
|
|
||
|
|
@@ -67,14 +64,10 @@ The resulting object has the following properties: | |
| Only one of the following two groups of properties is included: | ||
|
|
||
| - `minimumIntegerDigits`, `minimumFractionDigits`, `maximumFractionDigits` | ||
| - : The values provided for these properties in the `options` argument or | ||
| filled in as defaults. These properties are present only if neither | ||
| `minimumSignificantDigits` nor `maximumSignificantDigits` | ||
| was provided in the `options` argument. | ||
| - : The values provided for these properties in the `options` argument or filled in as defaults. These properties are present only if neither `minimumSignificantDigits` nor `maximumSignificantDigits` was provided in the `options` argument. | ||
| - `minimumSignificantDigits`, `maximumSignificantDigits` | ||
| - : The values provided for these properties in the `options` argument or | ||
| filled in as defaults. These properties are present only if at least one of them | ||
| was provided in the `options` argument. | ||
| - : The values provided for these properties in the `options` argument or filled in as defaults. | ||
| These properties are present only if at least one of them was provided in the `options` argument. | ||
|
|
||
| ## Examples | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ The **`Intl.PluralRules`** object enables plural-sensitive formatting and plural | |
| - : Returns a new object with properties reflecting the locale and collation options computed during initialization of the object. | ||
| - {{jsxref("Intl/PluralRules/select", "Intl.PluralRules.prototype.select()")}} | ||
| - : Returns a string indicating which plural rule to use for locale-aware formatting. | ||
| - {{jsxref("Intl/PluralRules/selectRange", "Intl.PluralRules.prototype.selectRange()")}} | ||
| - {{jsxref("Intl/PluralRules/selectRange", "Intl.PluralRules.prototype.selectRange()")}} {{experimental_inline}} | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note, I'm querying this in mdn/browser-compat-data#16923 - it looks like having FF in preview "counts" as support, in which case this would no longer be experimental.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But I wouldn't block this for merging, as it is true until that BCD goes in, at which point I will revert this if needed |
||
| - : This method receives two values and returns a string indicating which plural rule to use for locale-aware formatting. | ||
|
|
||
| ## Examples | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.