Standard built-ins

Intl.NumberFormat.supportedLocalesOf()

Try the free JavaScript compiler

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

NameTypeDescription
localesString | ArrayRequested locale tag or prioritized locale list.
optionsObjectFormatting options.

Return Value

Array<String>

Supported requested tags.

Working Example

Example Snippetjavascript
console.log(Intl.NumberFormat.supportedLocalesOf(["en-US"]).length);
JavaScript Reference