@formatjs/intl-locale 5.1.1 → 5.1.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/calendars.generated.d.ts +54 -52
- package/calendars.generated.js +257 -289
- package/character-orders.generated.d.ts +769 -767
- package/character-orders.generated.js +767 -767
- package/get_internal_slots.d.ts +4 -1
- package/get_internal_slots.js +16 -18
- package/hour-cycles.generated.d.ts +278 -276
- package/hour-cycles.generated.js +281 -1045
- package/index.d.ts +88 -96
- package/index.js +545 -549
- package/numbering-systems.generated.d.ts +768 -766
- package/numbering-systems.generated.js +862 -2424
- package/package.json +4 -4
- package/polyfill-force.js +6 -6
- package/polyfill.iife.js +3076 -3035
- package/polyfill.js +8 -8
- package/preference-data.d.ts +2 -2
- package/preference-data.js +34 -38
- package/should-polyfill.js +29 -38
- package/timezones.generated.d.ts +249 -247
- package/timezones.generated.js +505 -964
- package/week-data.generated.d.ts +1297 -1295
- package/week-data.generated.js +1296 -2070
package/index.d.ts
CHANGED
|
@@ -1,103 +1,95 @@
|
|
|
1
1
|
export interface IntlLocaleOptions {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
language?: string;
|
|
3
|
+
script?: string;
|
|
4
|
+
region?: string;
|
|
5
|
+
calendar?: string;
|
|
6
|
+
collation?: string;
|
|
7
|
+
hourCycle?: "h11" | "h12" | "h23" | "h24";
|
|
8
|
+
caseFirst?: "upper" | "lower" | "false";
|
|
9
|
+
numberingSystem?: string;
|
|
10
|
+
numeric?: boolean;
|
|
11
|
+
firstDayOfWeek?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface IntlLocaleInternal extends IntlLocaleOptions {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
locale: string;
|
|
15
|
+
initializedLocale: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare class Locale {
|
|
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
|
-
'co',
|
|
95
|
-
'hc',
|
|
96
|
-
'kf',
|
|
97
|
-
'kn',
|
|
98
|
-
'nu',
|
|
99
|
-
'fw'
|
|
100
|
-
];
|
|
101
|
-
static readonly polyfilled = true;
|
|
18
|
+
constructor(tag: string | Locale, opts?: IntlLocaleOptions);
|
|
19
|
+
/**
|
|
20
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
21
|
+
*/
|
|
22
|
+
maximize(): Locale;
|
|
23
|
+
/**
|
|
24
|
+
* https://www.unicode.org/reports/tr35/#Likely_Subtags
|
|
25
|
+
*/
|
|
26
|
+
minimize(): Locale;
|
|
27
|
+
toString(): string;
|
|
28
|
+
get baseName(): string;
|
|
29
|
+
get calendar(): string | undefined;
|
|
30
|
+
get collation(): string | undefined;
|
|
31
|
+
get caseFirst(): "upper" | "lower" | "false" | undefined;
|
|
32
|
+
get numeric(): boolean | undefined;
|
|
33
|
+
get numberingSystem(): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.language
|
|
36
|
+
*/
|
|
37
|
+
get language(): string;
|
|
38
|
+
/**
|
|
39
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.script
|
|
40
|
+
*/
|
|
41
|
+
get script(): string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
|
|
44
|
+
*/
|
|
45
|
+
get region(): string | undefined;
|
|
46
|
+
get firstDayOfWeek(): string | undefined;
|
|
47
|
+
get hourCycle(): "h11" | "h12" | "h23" | "h24" | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
|
|
50
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
|
|
51
|
+
*/
|
|
52
|
+
getCalendars(): string[];
|
|
53
|
+
/**
|
|
54
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
|
|
55
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
|
|
56
|
+
*/
|
|
57
|
+
getCollations(): string[];
|
|
58
|
+
/**
|
|
59
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
|
|
60
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
|
|
61
|
+
*/
|
|
62
|
+
getHourCycles(): string[];
|
|
63
|
+
/**
|
|
64
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
|
|
65
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
|
|
66
|
+
*/
|
|
67
|
+
getNumberingSystems(): string[];
|
|
68
|
+
/**
|
|
69
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
|
|
70
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
|
|
71
|
+
*/
|
|
72
|
+
getTimeZones(): string[] | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
|
|
75
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
|
|
76
|
+
*/
|
|
77
|
+
getTextInfo(): {
|
|
78
|
+
direction: string;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
|
|
82
|
+
* https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
|
|
83
|
+
*/
|
|
84
|
+
getWeekInfo(): {
|
|
85
|
+
firstDay: string;
|
|
86
|
+
weekend: {
|
|
87
|
+
start: string;
|
|
88
|
+
end: string;
|
|
89
|
+
};
|
|
90
|
+
minimalDays: number;
|
|
91
|
+
};
|
|
92
|
+
static relevantExtensionKeys: readonly ["ca", "co", "hc", "kf", "kn", "nu", "fw"];
|
|
93
|
+
static readonly polyfilled: true;
|
|
102
94
|
}
|
|
103
95
|
export default Locale;
|