|
1 | 1 | declare namespace Intl {
|
2 | 2 |
|
3 | 3 | /**
|
4 |
| - * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition. |
| 4 | + * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition. |
5 | 5 | *
|
6 | 6 | * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
7 | 7 | *
|
8 |
| - * [Wikipedia](https://en.wikipedia.org/wiki/IETF_language_tag). |
9 | 8 | */
|
10 |
| - type BCP47LanguageTag = string; |
| 9 | + type UnicodeBCP47LocaleIdentifier = string; |
11 | 10 |
|
12 | 11 | /**
|
13 | 12 | * Unit to use in the relative time internationalized message.
|
@@ -311,7 +310,7 @@ declare namespace Intl {
|
311 | 310 | * [Specification](https://tc39.es/ecma402/#table-relativetimeformat-resolvedoptions-properties)
|
312 | 311 | */
|
313 | 312 | interface ResolvedRelativeTimeFormatOptions {
|
314 |
| - locale: BCP47LanguageTag; |
| 313 | + locale: UnicodeBCP47LocaleIdentifier; |
315 | 314 | style: RelativeTimeFormatStyle;
|
316 | 315 | numeric: RelativeTimeFormatNumeric;
|
317 | 316 | numberingSystem: string;
|
@@ -454,7 +453,7 @@ declare namespace Intl {
|
454 | 453 | * [Specification](https://tc39.es/ecma402/#sec-intl-relativetimeformat-constructor).
|
455 | 454 | */
|
456 | 455 | new(
|
457 |
| - locales?: BCP47LanguageTag | BCP47LanguageTag[], |
| 456 | + locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], |
458 | 457 | options?: RelativeTimeFormatOptions,
|
459 | 458 | ): RelativeTimeFormat;
|
460 | 459 |
|
@@ -490,9 +489,9 @@ declare namespace Intl {
|
490 | 489 | * [Specification](https://tc39.es/ecma402/#sec-Intl.RelativeTimeFormat.supportedLocalesOf).
|
491 | 490 | */
|
492 | 491 | supportedLocalesOf(
|
493 |
| - locales: BCP47LanguageTag | BCP47LanguageTag[], |
| 492 | + locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[], |
494 | 493 | options?: RelativeTimeFormatOptions,
|
495 |
| - ): BCP47LanguageTag[]; |
| 494 | + ): UnicodeBCP47LocaleIdentifier[]; |
496 | 495 | };
|
497 | 496 |
|
498 | 497 | interface NumberFormatOptions {
|
|
0 commit comments