You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param code The `code` to provide depends on the `type`:
312
+
* - If the type is "region", code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
313
+
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
314
+
* - If the type is "script", code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
315
+
* - If the type is "language", code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )
316
+
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
317
+
* `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
318
+
* - If the type is "currency", code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
* objects that enable the consistent translation of language, region and script display names.
356
+
*
357
+
* @param locales A string with a BCP 47 language tag, or an array of such strings.
358
+
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
359
+
* page. The following Unicode extension key is allowed:
360
+
* - `nu` The numbering system to be used. Possible values include: `"arab"`, `"arabext"`, `"bali"`, `"beng"`, `"deva"`, `"fullwide"`, `"gujr"`, `"guru"`, `"hanidec"`, `"khmr"`, `"knda"`, `"laoo"`, `"latn"`, `"limb"`, `"mlym"`, `"mong"`, `"mymr"`, `"orya"`, `"tamldec"`, `"telu"`, `"thai"`, `"tibt"`.
361
+
*
362
+
* @param options An object with some or all of the following properties:
363
+
* - `localeMatcher` The locale matching algorithm to use. Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
364
+
* For information about this option, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
365
+
* - `style` The formatting style to use, the default is `"long"`. `"narrow"` `"short"` `"long"`
366
+
* - `type` The type to use. `"language"` `"region"` `"script"` `"currency"`
367
+
* - `fallback` The fallback to use, the default is `"code"`. `"code"` `"none"`
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
379
+
*
380
+
* @param locales A string with a BCP 47 language tag, or an array of such strings.
381
+
* For the general form and interpretation of the `locales` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
382
+
* page.
383
+
*
384
+
* @param options An object that may have the following property:
385
+
* - `localeMatcher` The locale matching algorithm to use. Possible values are `"lookup"` and `"best fit"`; the default is `"best fit"`.
386
+
* For information about this option, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.
387
+
*
388
+
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
0 commit comments