Standard built-ins
Intl.NumberFormat.supportedLocalesOf()
Return requested locales that this service can support without falling back to default locale. Does not report every possible locale.
Formal Syntax & Structure
javascript syntaxjavascript
Intl.NumberFormat.supportedLocalesOf([locales], [options])Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| locales | String | Array | Requested locale tag or prioritized locale list. |
| options | Object | Formatting options. |
Return Value
Array<String>
Supported requested tags.
Working Example
Example Snippetjavascript
console.log(Intl.NumberFormat.supportedLocalesOf(["en-US"]).length);