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
* For the general form and interpretation of the locales argument,
276
274
* see the [`Intl` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
277
275
*
278
-
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters)
279
-
* with some or all of options of the locale.
276
+
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
* @param code The `code` to provide depends on the `type` passed to display name during creation:
299
+
* - 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),
300
+
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
301
+
* - If the type is `"script"`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
302
+
* - If the type is `"language"`, code should be a `languageCode` ["-" `scriptCode`] ["-" `regionCode` ] *("-" `variant` )
303
+
* 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).
304
+
* `languageCode` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
305
+
* - If the type is `"currency"`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
* @param locales A string with a BCP 47 language tag, or an array of such strings.
330
+
* 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)
331
+
* page.
332
+
*
333
+
* @param options An object for setting up a display name.
* 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.
341
+
*
342
+
* @param locales A string with a BCP 47 language tag, or an array of such strings.
343
+
* 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)
344
+
* page.
345
+
*
346
+
* @param options An object with a locale matcher.
347
+
*
348
+
* @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