@formatjs/intl-locale 5.3.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +105 -102
- package/index.js +4304 -230
- package/index.js.map +1 -0
- package/package.json +3 -4
- package/polyfill-force.d.ts +1 -1
- package/polyfill-force.js +4669 -1
- package/polyfill-force.js.map +1 -0
- package/polyfill.d.ts +1 -1
- package/polyfill.iife.js +13818 -21603
- package/polyfill.js +4716 -5
- package/polyfill.js.map +1 -0
- package/should-polyfill.d.ts +5 -1
- package/should-polyfill.js +9 -13
- package/should-polyfill.js.map +1 -0
- package/calendars.generated.d.ts +0 -55
- package/calendars.generated.js +0 -260
- package/character-orders.generated.d.ts +0 -770
- package/character-orders.generated.js +0 -770
- package/get_internal_slots.d.ts +0 -3
- package/get_internal_slots.js +0 -17
- package/hour-cycles.generated.d.ts +0 -279
- package/hour-cycles.generated.js +0 -284
- package/numbering-systems.generated.d.ts +0 -769
- package/numbering-systems.generated.js +0 -865
- package/preference-data.d.ts +0 -6
- package/preference-data.js +0 -42
- package/timezones.generated.d.ts +0 -250
- package/timezones.generated.js +0 -508
- package/week-data.generated.d.ts +0 -1299
- package/week-data.generated.js +0 -1299
package/index.d.ts
CHANGED
|
@@ -1,105 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
//#region packages/intl-locale/index.d.ts
|
|
2
|
+
interface IntlLocaleOptions {
|
|
3
|
+
language?: string;
|
|
4
|
+
script?: string;
|
|
5
|
+
region?: string;
|
|
6
|
+
calendar?: string;
|
|
7
|
+
collation?: string;
|
|
8
|
+
hourCycle?: "h11" | "h12" | "h23" | "h24";
|
|
9
|
+
caseFirst?: "upper" | "lower" | "false";
|
|
10
|
+
numberingSystem?: string;
|
|
11
|
+
numeric?: boolean;
|
|
12
|
+
firstDayOfWeek?: string;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
interface IntlLocaleInternal extends IntlLocaleOptions {
|
|
15
|
+
locale: string;
|
|
16
|
+
initializedLocale: boolean;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
18
|
+
declare class Locale {
|
|
19
|
+
constructor(tag: string | Locale, opts?: IntlLocaleOptions);
|
|
20
|
+
/**
|
|
21
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
22
|
+
*/
|
|
23
|
+
maximize(): Locale;
|
|
24
|
+
/**
|
|
25
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
26
|
+
*/
|
|
27
|
+
minimize(): Locale;
|
|
28
|
+
toString(): string;
|
|
29
|
+
get baseName(): string;
|
|
30
|
+
get calendar(): string | undefined;
|
|
31
|
+
get collation(): string | undefined;
|
|
32
|
+
get caseFirst(): "upper" | "lower" | "false" | undefined;
|
|
33
|
+
get numeric(): boolean | undefined;
|
|
34
|
+
get numberingSystem(): string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.language
|
|
37
|
+
*/
|
|
38
|
+
get language(): string;
|
|
39
|
+
/**
|
|
40
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script
|
|
41
|
+
*/
|
|
42
|
+
get script(): string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
|
|
45
|
+
*/
|
|
46
|
+
get region(): string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the variant subtags of the locale, or undefined if none exist.
|
|
49
|
+
* Multiple variants are joined with hyphens in alphabetical order.
|
|
50
|
+
*
|
|
51
|
+
* Added in ECMA-402 via PR #960 to align with other subtag accessors.
|
|
52
|
+
* @see https://tc39.es/ecma402/#sec-Intl.Locale.prototype.variants
|
|
53
|
+
* @see https://github.com/tc39/ecma402/pull/960
|
|
54
|
+
* @see https://github.com/tc39/ecma402/issues/900
|
|
55
|
+
*/
|
|
56
|
+
get variants(): string | undefined;
|
|
57
|
+
get firstDayOfWeek(): string | undefined;
|
|
58
|
+
get hourCycle(): "h11" | "h12" | "h23" | "h24" | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
|
|
61
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
|
|
62
|
+
*/
|
|
63
|
+
getCalendars(): string[];
|
|
64
|
+
/**
|
|
65
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
|
|
66
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
|
|
67
|
+
*/
|
|
68
|
+
getCollations(): string[];
|
|
69
|
+
/**
|
|
70
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
|
|
71
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
|
|
72
|
+
*/
|
|
73
|
+
getHourCycles(): string[];
|
|
74
|
+
/**
|
|
75
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
|
|
76
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
|
|
77
|
+
*/
|
|
78
|
+
getNumberingSystems(): string[];
|
|
79
|
+
/**
|
|
80
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
|
|
81
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
|
|
82
|
+
*/
|
|
83
|
+
getTimeZones(): string[] | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
|
|
86
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
|
|
87
|
+
*/
|
|
88
|
+
getTextInfo(): {
|
|
89
|
+
direction: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
|
|
93
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
|
|
94
|
+
*/
|
|
95
|
+
getWeekInfo(): {
|
|
96
|
+
firstDay: string;
|
|
97
|
+
weekend: {
|
|
98
|
+
start: string;
|
|
99
|
+
end: string;
|
|
100
|
+
};
|
|
101
|
+
minimalDays: number;
|
|
102
|
+
};
|
|
103
|
+
static relevantExtensionKeys: readonly ["ca", "co", "hc", "kf", "kn", "nu", "fw"];
|
|
104
|
+
static readonly polyfilled = true;
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
+
//#endregion
|
|
107
|
+
export { IntlLocaleInternal, IntlLocaleOptions, Locale, Locale as default };
|
|
108
|
+
//# sourceMappingURL=index.d.ts.map
|