@multisystemsuite/timezone-engine-world-data 1.0.0
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/dist/chunk-DRDF6QPV.cjs +225 -0
- package/dist/chunk-DRDF6QPV.cjs.map +1 -0
- package/dist/chunk-GA43RKAR.cjs +301 -0
- package/dist/chunk-GA43RKAR.cjs.map +1 -0
- package/dist/chunk-RQEQPR6L.js +218 -0
- package/dist/chunk-RQEQPR6L.js.map +1 -0
- package/dist/chunk-SGH7TEFO.cjs +261 -0
- package/dist/chunk-SGH7TEFO.cjs.map +1 -0
- package/dist/chunk-TNKJ4FJU.js +295 -0
- package/dist/chunk-TNKJ4FJU.js.map +1 -0
- package/dist/chunk-ZEM6FGFI.js +253 -0
- package/dist/chunk-ZEM6FGFI.js.map +1 -0
- package/dist/countries.cjs +32 -0
- package/dist/countries.cjs.map +1 -0
- package/dist/countries.d.cts +12 -0
- package/dist/countries.d.ts +12 -0
- package/dist/countries.js +3 -0
- package/dist/countries.js.map +1 -0
- package/dist/index.cjs +82 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/locales.cjs +36 -0
- package/dist/locales.cjs.map +1 -0
- package/dist/locales.d.cts +14 -0
- package/dist/locales.d.ts +14 -0
- package/dist/locales.js +3 -0
- package/dist/locales.js.map +1 -0
- package/dist/timezones.cjs +28 -0
- package/dist/timezones.cjs.map +1 -0
- package/dist/timezones.d.cts +10 -0
- package/dist/timezones.d.ts +10 -0
- package/dist/timezones.js +3 -0
- package/dist/timezones.js.map +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
// src/timezones.ts
|
|
2
|
+
var TIMEZONE_REGISTRY = {
|
|
3
|
+
UTC: {
|
|
4
|
+
timezone: "UTC",
|
|
5
|
+
country: "Universal",
|
|
6
|
+
countryCode: "XX",
|
|
7
|
+
utcOffset: "+00:00",
|
|
8
|
+
dst: false,
|
|
9
|
+
locale: "en-GB"
|
|
10
|
+
},
|
|
11
|
+
"Asia/Kolkata": {
|
|
12
|
+
timezone: "Asia/Kolkata",
|
|
13
|
+
country: "India",
|
|
14
|
+
countryCode: "IN",
|
|
15
|
+
city: "Kolkata",
|
|
16
|
+
utcOffset: "+05:30",
|
|
17
|
+
dst: false,
|
|
18
|
+
locale: "en-IN"
|
|
19
|
+
},
|
|
20
|
+
"America/New_York": {
|
|
21
|
+
timezone: "America/New_York",
|
|
22
|
+
country: "United States",
|
|
23
|
+
countryCode: "US",
|
|
24
|
+
city: "New York",
|
|
25
|
+
utcOffset: "-05:00",
|
|
26
|
+
dst: true,
|
|
27
|
+
locale: "en-US"
|
|
28
|
+
},
|
|
29
|
+
"Europe/London": {
|
|
30
|
+
timezone: "Europe/London",
|
|
31
|
+
country: "United Kingdom",
|
|
32
|
+
countryCode: "GB",
|
|
33
|
+
city: "London",
|
|
34
|
+
utcOffset: "+00:00",
|
|
35
|
+
dst: true,
|
|
36
|
+
locale: "en-GB"
|
|
37
|
+
},
|
|
38
|
+
"Asia/Tokyo": {
|
|
39
|
+
timezone: "Asia/Tokyo",
|
|
40
|
+
country: "Japan",
|
|
41
|
+
countryCode: "JP",
|
|
42
|
+
city: "Tokyo",
|
|
43
|
+
utcOffset: "+09:00",
|
|
44
|
+
dst: false,
|
|
45
|
+
locale: "ja-JP"
|
|
46
|
+
},
|
|
47
|
+
"Australia/Sydney": {
|
|
48
|
+
timezone: "Australia/Sydney",
|
|
49
|
+
country: "Australia",
|
|
50
|
+
countryCode: "AU",
|
|
51
|
+
city: "Sydney",
|
|
52
|
+
utcOffset: "+10:00",
|
|
53
|
+
dst: true,
|
|
54
|
+
locale: "en-AU"
|
|
55
|
+
},
|
|
56
|
+
"Europe/Paris": {
|
|
57
|
+
timezone: "Europe/Paris",
|
|
58
|
+
country: "France",
|
|
59
|
+
countryCode: "FR",
|
|
60
|
+
city: "Paris",
|
|
61
|
+
utcOffset: "+01:00",
|
|
62
|
+
dst: true,
|
|
63
|
+
locale: "fr-FR"
|
|
64
|
+
},
|
|
65
|
+
"America/Chicago": {
|
|
66
|
+
timezone: "America/Chicago",
|
|
67
|
+
country: "United States",
|
|
68
|
+
countryCode: "US",
|
|
69
|
+
city: "Chicago",
|
|
70
|
+
utcOffset: "-06:00",
|
|
71
|
+
dst: true,
|
|
72
|
+
locale: "en-US"
|
|
73
|
+
},
|
|
74
|
+
"America/Los_Angeles": {
|
|
75
|
+
timezone: "America/Los_Angeles",
|
|
76
|
+
country: "United States",
|
|
77
|
+
countryCode: "US",
|
|
78
|
+
city: "Los Angeles",
|
|
79
|
+
utcOffset: "-08:00",
|
|
80
|
+
dst: true,
|
|
81
|
+
locale: "en-US"
|
|
82
|
+
},
|
|
83
|
+
"America/Denver": {
|
|
84
|
+
timezone: "America/Denver",
|
|
85
|
+
country: "United States",
|
|
86
|
+
countryCode: "US",
|
|
87
|
+
city: "Denver",
|
|
88
|
+
utcOffset: "-07:00",
|
|
89
|
+
dst: true,
|
|
90
|
+
locale: "en-US"
|
|
91
|
+
},
|
|
92
|
+
"America/Toronto": {
|
|
93
|
+
timezone: "America/Toronto",
|
|
94
|
+
country: "Canada",
|
|
95
|
+
countryCode: "CA",
|
|
96
|
+
city: "Toronto",
|
|
97
|
+
utcOffset: "-05:00",
|
|
98
|
+
dst: true,
|
|
99
|
+
locale: "en-CA"
|
|
100
|
+
},
|
|
101
|
+
"America/Sao_Paulo": {
|
|
102
|
+
timezone: "America/Sao_Paulo",
|
|
103
|
+
country: "Brazil",
|
|
104
|
+
countryCode: "BR",
|
|
105
|
+
city: "S\xE3o Paulo",
|
|
106
|
+
utcOffset: "-03:00",
|
|
107
|
+
dst: false,
|
|
108
|
+
locale: "pt-BR"
|
|
109
|
+
},
|
|
110
|
+
"Europe/Berlin": {
|
|
111
|
+
timezone: "Europe/Berlin",
|
|
112
|
+
country: "Germany",
|
|
113
|
+
countryCode: "DE",
|
|
114
|
+
city: "Berlin",
|
|
115
|
+
utcOffset: "+01:00",
|
|
116
|
+
dst: true,
|
|
117
|
+
locale: "de-DE"
|
|
118
|
+
},
|
|
119
|
+
"Europe/Moscow": {
|
|
120
|
+
timezone: "Europe/Moscow",
|
|
121
|
+
country: "Russia",
|
|
122
|
+
countryCode: "RU",
|
|
123
|
+
city: "Moscow",
|
|
124
|
+
utcOffset: "+03:00",
|
|
125
|
+
dst: false,
|
|
126
|
+
locale: "ru-RU"
|
|
127
|
+
},
|
|
128
|
+
"Asia/Dubai": {
|
|
129
|
+
timezone: "Asia/Dubai",
|
|
130
|
+
country: "United Arab Emirates",
|
|
131
|
+
countryCode: "AE",
|
|
132
|
+
city: "Dubai",
|
|
133
|
+
utcOffset: "+04:00",
|
|
134
|
+
dst: false,
|
|
135
|
+
locale: "ar-AE"
|
|
136
|
+
},
|
|
137
|
+
"Asia/Shanghai": {
|
|
138
|
+
timezone: "Asia/Shanghai",
|
|
139
|
+
country: "China",
|
|
140
|
+
countryCode: "CN",
|
|
141
|
+
city: "Shanghai",
|
|
142
|
+
utcOffset: "+08:00",
|
|
143
|
+
dst: false,
|
|
144
|
+
locale: "zh-CN"
|
|
145
|
+
},
|
|
146
|
+
"Asia/Singapore": {
|
|
147
|
+
timezone: "Asia/Singapore",
|
|
148
|
+
country: "Singapore",
|
|
149
|
+
countryCode: "SG",
|
|
150
|
+
city: "Singapore",
|
|
151
|
+
utcOffset: "+08:00",
|
|
152
|
+
dst: false,
|
|
153
|
+
locale: "en-SG"
|
|
154
|
+
},
|
|
155
|
+
"Asia/Hong_Kong": {
|
|
156
|
+
timezone: "Asia/Hong_Kong",
|
|
157
|
+
country: "Hong Kong",
|
|
158
|
+
countryCode: "HK",
|
|
159
|
+
city: "Hong Kong",
|
|
160
|
+
utcOffset: "+08:00",
|
|
161
|
+
dst: false,
|
|
162
|
+
locale: "zh-HK"
|
|
163
|
+
},
|
|
164
|
+
"Asia/Seoul": {
|
|
165
|
+
timezone: "Asia/Seoul",
|
|
166
|
+
country: "South Korea",
|
|
167
|
+
countryCode: "KR",
|
|
168
|
+
city: "Seoul",
|
|
169
|
+
utcOffset: "+09:00",
|
|
170
|
+
dst: false,
|
|
171
|
+
locale: "ko-KR"
|
|
172
|
+
},
|
|
173
|
+
"Africa/Cairo": {
|
|
174
|
+
timezone: "Africa/Cairo",
|
|
175
|
+
country: "Egypt",
|
|
176
|
+
countryCode: "EG",
|
|
177
|
+
city: "Cairo",
|
|
178
|
+
utcOffset: "+02:00",
|
|
179
|
+
dst: false,
|
|
180
|
+
locale: "ar-EG"
|
|
181
|
+
},
|
|
182
|
+
"Africa/Johannesburg": {
|
|
183
|
+
timezone: "Africa/Johannesburg",
|
|
184
|
+
country: "South Africa",
|
|
185
|
+
countryCode: "ZA",
|
|
186
|
+
city: "Johannesburg",
|
|
187
|
+
utcOffset: "+02:00",
|
|
188
|
+
dst: false,
|
|
189
|
+
locale: "en-ZA"
|
|
190
|
+
},
|
|
191
|
+
"Pacific/Auckland": {
|
|
192
|
+
timezone: "Pacific/Auckland",
|
|
193
|
+
country: "New Zealand",
|
|
194
|
+
countryCode: "NZ",
|
|
195
|
+
city: "Auckland",
|
|
196
|
+
utcOffset: "+12:00",
|
|
197
|
+
dst: true,
|
|
198
|
+
locale: "en-NZ"
|
|
199
|
+
},
|
|
200
|
+
"Europe/Amsterdam": {
|
|
201
|
+
timezone: "Europe/Amsterdam",
|
|
202
|
+
country: "Netherlands",
|
|
203
|
+
countryCode: "NL",
|
|
204
|
+
city: "Amsterdam",
|
|
205
|
+
utcOffset: "+01:00",
|
|
206
|
+
dst: true,
|
|
207
|
+
locale: "nl-NL"
|
|
208
|
+
},
|
|
209
|
+
"Europe/Madrid": {
|
|
210
|
+
timezone: "Europe/Madrid",
|
|
211
|
+
country: "Spain",
|
|
212
|
+
countryCode: "ES",
|
|
213
|
+
city: "Madrid",
|
|
214
|
+
utcOffset: "+01:00",
|
|
215
|
+
dst: true,
|
|
216
|
+
locale: "es-ES"
|
|
217
|
+
},
|
|
218
|
+
"Europe/Rome": {
|
|
219
|
+
timezone: "Europe/Rome",
|
|
220
|
+
country: "Italy",
|
|
221
|
+
countryCode: "IT",
|
|
222
|
+
city: "Rome",
|
|
223
|
+
utcOffset: "+01:00",
|
|
224
|
+
dst: true,
|
|
225
|
+
locale: "it-IT"
|
|
226
|
+
},
|
|
227
|
+
"Asia/Bangkok": {
|
|
228
|
+
timezone: "Asia/Bangkok",
|
|
229
|
+
country: "Thailand",
|
|
230
|
+
countryCode: "TH",
|
|
231
|
+
city: "Bangkok",
|
|
232
|
+
utcOffset: "+07:00",
|
|
233
|
+
dst: false,
|
|
234
|
+
locale: "th-TH"
|
|
235
|
+
},
|
|
236
|
+
"Asia/Jakarta": {
|
|
237
|
+
timezone: "Asia/Jakarta",
|
|
238
|
+
country: "Indonesia",
|
|
239
|
+
countryCode: "ID",
|
|
240
|
+
city: "Jakarta",
|
|
241
|
+
utcOffset: "+07:00",
|
|
242
|
+
dst: false,
|
|
243
|
+
locale: "id-ID"
|
|
244
|
+
},
|
|
245
|
+
"Asia/Karachi": {
|
|
246
|
+
timezone: "Asia/Karachi",
|
|
247
|
+
country: "Pakistan",
|
|
248
|
+
countryCode: "PK",
|
|
249
|
+
city: "Karachi",
|
|
250
|
+
utcOffset: "+05:00",
|
|
251
|
+
dst: false,
|
|
252
|
+
locale: "ur-PK"
|
|
253
|
+
},
|
|
254
|
+
"Asia/Riyadh": {
|
|
255
|
+
timezone: "Asia/Riyadh",
|
|
256
|
+
country: "Saudi Arabia",
|
|
257
|
+
countryCode: "SA",
|
|
258
|
+
city: "Riyadh",
|
|
259
|
+
utcOffset: "+03:00",
|
|
260
|
+
dst: false,
|
|
261
|
+
locale: "ar-SA"
|
|
262
|
+
},
|
|
263
|
+
"America/Mexico_City": {
|
|
264
|
+
timezone: "America/Mexico_City",
|
|
265
|
+
country: "Mexico",
|
|
266
|
+
countryCode: "MX",
|
|
267
|
+
city: "Mexico City",
|
|
268
|
+
utcOffset: "-06:00",
|
|
269
|
+
dst: true,
|
|
270
|
+
locale: "es-MX"
|
|
271
|
+
},
|
|
272
|
+
"America/Buenos_Aires": {
|
|
273
|
+
timezone: "America/Buenos_Aires",
|
|
274
|
+
country: "Argentina",
|
|
275
|
+
countryCode: "AR",
|
|
276
|
+
city: "Buenos Aires",
|
|
277
|
+
utcOffset: "-03:00",
|
|
278
|
+
dst: false,
|
|
279
|
+
locale: "es-AR"
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
var ALL_IANA_TIMEZONES = Object.keys(TIMEZONE_REGISTRY);
|
|
283
|
+
function getTimezoneInfo(timezone) {
|
|
284
|
+
return TIMEZONE_REGISTRY[timezone];
|
|
285
|
+
}
|
|
286
|
+
function isKnownTimezone(timezone) {
|
|
287
|
+
return timezone in TIMEZONE_REGISTRY;
|
|
288
|
+
}
|
|
289
|
+
function listAllTimezones() {
|
|
290
|
+
return [...ALL_IANA_TIMEZONES];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export { ALL_IANA_TIMEZONES, TIMEZONE_REGISTRY, getTimezoneInfo, isKnownTimezone, listAllTimezones };
|
|
294
|
+
//# sourceMappingURL=chunk-TNKJ4FJU.js.map
|
|
295
|
+
//# sourceMappingURL=chunk-TNKJ4FJU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/timezones.ts"],"names":[],"mappings":";AAGO,IAAM,iBAAA,GAAkD;AAAA,EAC7D,GAAA,EAAK;AAAA,IACH,QAAA,EAAU,KAAA;AAAA,IACV,OAAA,EAAS,WAAA;AAAA,IACT,WAAA,EAAa,IAAA;AAAA,IACb,SAAA,EAAW,QAAA;AAAA,IACX,GAAA,EAAK,KAAA;AAAA,IACL,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,QAAA,EAAU,cAAA;AAAA,IACV,OAAA,EAAS,OAAA;AAAA,IACT,WAAA,EAAa,IA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EAAK,KAAA;AAAA,IACL,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,aAAA,EAAe;AAAA,IACb,QAAA,EAAU,aAAA;AAAA,IACV,OAAA,EAAS,cAAA;AAAA,IACT,WAAA,EAAa,IAAA;AAAA,IACb,IAAA,EAAM,QAAA;AAAA,IACN,SAAA,EAAW,QAAA;AAAA,IACX,GAAA,EAAK,KAAA;AAAA,IACL,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,qBAAA,EAAuB;AAAA,IACrB,QAAA,EAAU,qBAAA;AAAA,IACV,OAAA,EAAS,QAAA;AAAA,IACT,WAAA,EAAa,IAAA;AAAA,IACb,IAAA,EAAM,aAAA;AAAA,IACN,SAAA,EAAW,QAAA;AAAA,IACX,GAAA,EAAK,IAAA;AAAA,IACL,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,sBAAA,EAAwB;AAAA,IACtB,QAAA,EAAU,sBAAA;AAAA,IACV,OAAA,EAAS,WAAA;AAAA,IACT,WAAA,EAAa,IAAA;AAAA,IACb,IAAA,EAAM,cAAA;AAAA,IACN,SAAA,EAAW,QAAA;AAAA,IACX,GAAA,EAAK,KAAA;AAAA,IACL,MAAA,EAAQ;AAAA;AAEZ;AAEO,IAAM,kBAAA,GAAwC,MAAA,CAAO,IAAA,CAAK,iBAAiB;AAE3E,SAAS,gBAAgB,QAAA,EAA4C;AAC1E,EAAA,OAAO,kBAAkB,QAAQ,CAAA;AACnC;AAEO,SAAS,gBAAgB,QAAA,EAA2B;AACzD,EAAA,OAAO,QAAA,IAAY,iBAAA;AACrB;AAEO,SAAS,gBAAA,GAA6B;AAC3C,EAAA,OAAO,CAAC,GAAG,kBAAkB,CAAA;AAC/B","file":"chunk-TNKJ4FJU.js","sourcesContent":["import type { TimezoneInfo } from \"@multisystemsuite/timezone-engine-shared-types\";\n\n/** Hardcoded IANA timezone registry — offline-first metadata */\nexport const TIMEZONE_REGISTRY: Record<string, TimezoneInfo> = {\n UTC: {\n timezone: \"UTC\",\n country: \"Universal\",\n countryCode: \"XX\",\n utcOffset: \"+00:00\",\n dst: false,\n locale: \"en-GB\",\n },\n \"Asia/Kolkata\": {\n timezone: \"Asia/Kolkata\",\n country: \"India\",\n countryCode: \"IN\",\n city: \"Kolkata\",\n utcOffset: \"+05:30\",\n dst: false,\n locale: \"en-IN\",\n },\n \"America/New_York\": {\n timezone: \"America/New_York\",\n country: \"United States\",\n countryCode: \"US\",\n city: \"New York\",\n utcOffset: \"-05:00\",\n dst: true,\n locale: \"en-US\",\n },\n \"Europe/London\": {\n timezone: \"Europe/London\",\n country: \"United Kingdom\",\n countryCode: \"GB\",\n city: \"London\",\n utcOffset: \"+00:00\",\n dst: true,\n locale: \"en-GB\",\n },\n \"Asia/Tokyo\": {\n timezone: \"Asia/Tokyo\",\n country: \"Japan\",\n countryCode: \"JP\",\n city: \"Tokyo\",\n utcOffset: \"+09:00\",\n dst: false,\n locale: \"ja-JP\",\n },\n \"Australia/Sydney\": {\n timezone: \"Australia/Sydney\",\n country: \"Australia\",\n countryCode: \"AU\",\n city: \"Sydney\",\n utcOffset: \"+10:00\",\n dst: true,\n locale: \"en-AU\",\n },\n \"Europe/Paris\": {\n timezone: \"Europe/Paris\",\n country: \"France\",\n countryCode: \"FR\",\n city: \"Paris\",\n utcOffset: \"+01:00\",\n dst: true,\n locale: \"fr-FR\",\n },\n \"America/Chicago\": {\n timezone: \"America/Chicago\",\n country: \"United States\",\n countryCode: \"US\",\n city: \"Chicago\",\n utcOffset: \"-06:00\",\n dst: true,\n locale: \"en-US\",\n },\n \"America/Los_Angeles\": {\n timezone: \"America/Los_Angeles\",\n country: \"United States\",\n countryCode: \"US\",\n city: \"Los Angeles\",\n utcOffset: \"-08:00\",\n dst: true,\n locale: \"en-US\",\n },\n \"America/Denver\": {\n timezone: \"America/Denver\",\n country: \"United States\",\n countryCode: \"US\",\n city: \"Denver\",\n utcOffset: \"-07:00\",\n dst: true,\n locale: \"en-US\",\n },\n \"America/Toronto\": {\n timezone: \"America/Toronto\",\n country: \"Canada\",\n countryCode: \"CA\",\n city: \"Toronto\",\n utcOffset: \"-05:00\",\n dst: true,\n locale: \"en-CA\",\n },\n \"America/Sao_Paulo\": {\n timezone: \"America/Sao_Paulo\",\n country: \"Brazil\",\n countryCode: \"BR\",\n city: \"São Paulo\",\n utcOffset: \"-03:00\",\n dst: false,\n locale: \"pt-BR\",\n },\n \"Europe/Berlin\": {\n timezone: \"Europe/Berlin\",\n country: \"Germany\",\n countryCode: \"DE\",\n city: \"Berlin\",\n utcOffset: \"+01:00\",\n dst: true,\n locale: \"de-DE\",\n },\n \"Europe/Moscow\": {\n timezone: \"Europe/Moscow\",\n country: \"Russia\",\n countryCode: \"RU\",\n city: \"Moscow\",\n utcOffset: \"+03:00\",\n dst: false,\n locale: \"ru-RU\",\n },\n \"Asia/Dubai\": {\n timezone: \"Asia/Dubai\",\n country: \"United Arab Emirates\",\n countryCode: \"AE\",\n city: \"Dubai\",\n utcOffset: \"+04:00\",\n dst: false,\n locale: \"ar-AE\",\n },\n \"Asia/Shanghai\": {\n timezone: \"Asia/Shanghai\",\n country: \"China\",\n countryCode: \"CN\",\n city: \"Shanghai\",\n utcOffset: \"+08:00\",\n dst: false,\n locale: \"zh-CN\",\n },\n \"Asia/Singapore\": {\n timezone: \"Asia/Singapore\",\n country: \"Singapore\",\n countryCode: \"SG\",\n city: \"Singapore\",\n utcOffset: \"+08:00\",\n dst: false,\n locale: \"en-SG\",\n },\n \"Asia/Hong_Kong\": {\n timezone: \"Asia/Hong_Kong\",\n country: \"Hong Kong\",\n countryCode: \"HK\",\n city: \"Hong Kong\",\n utcOffset: \"+08:00\",\n dst: false,\n locale: \"zh-HK\",\n },\n \"Asia/Seoul\": {\n timezone: \"Asia/Seoul\",\n country: \"South Korea\",\n countryCode: \"KR\",\n city: \"Seoul\",\n utcOffset: \"+09:00\",\n dst: false,\n locale: \"ko-KR\",\n },\n \"Africa/Cairo\": {\n timezone: \"Africa/Cairo\",\n country: \"Egypt\",\n countryCode: \"EG\",\n city: \"Cairo\",\n utcOffset: \"+02:00\",\n dst: false,\n locale: \"ar-EG\",\n },\n \"Africa/Johannesburg\": {\n timezone: \"Africa/Johannesburg\",\n country: \"South Africa\",\n countryCode: \"ZA\",\n city: \"Johannesburg\",\n utcOffset: \"+02:00\",\n dst: false,\n locale: \"en-ZA\",\n },\n \"Pacific/Auckland\": {\n timezone: \"Pacific/Auckland\",\n country: \"New Zealand\",\n countryCode: \"NZ\",\n city: \"Auckland\",\n utcOffset: \"+12:00\",\n dst: true,\n locale: \"en-NZ\",\n },\n \"Europe/Amsterdam\": {\n timezone: \"Europe/Amsterdam\",\n country: \"Netherlands\",\n countryCode: \"NL\",\n city: \"Amsterdam\",\n utcOffset: \"+01:00\",\n dst: true,\n locale: \"nl-NL\",\n },\n \"Europe/Madrid\": {\n timezone: \"Europe/Madrid\",\n country: \"Spain\",\n countryCode: \"ES\",\n city: \"Madrid\",\n utcOffset: \"+01:00\",\n dst: true,\n locale: \"es-ES\",\n },\n \"Europe/Rome\": {\n timezone: \"Europe/Rome\",\n country: \"Italy\",\n countryCode: \"IT\",\n city: \"Rome\",\n utcOffset: \"+01:00\",\n dst: true,\n locale: \"it-IT\",\n },\n \"Asia/Bangkok\": {\n timezone: \"Asia/Bangkok\",\n country: \"Thailand\",\n countryCode: \"TH\",\n city: \"Bangkok\",\n utcOffset: \"+07:00\",\n dst: false,\n locale: \"th-TH\",\n },\n \"Asia/Jakarta\": {\n timezone: \"Asia/Jakarta\",\n country: \"Indonesia\",\n countryCode: \"ID\",\n city: \"Jakarta\",\n utcOffset: \"+07:00\",\n dst: false,\n locale: \"id-ID\",\n },\n \"Asia/Karachi\": {\n timezone: \"Asia/Karachi\",\n country: \"Pakistan\",\n countryCode: \"PK\",\n city: \"Karachi\",\n utcOffset: \"+05:00\",\n dst: false,\n locale: \"ur-PK\",\n },\n \"Asia/Riyadh\": {\n timezone: \"Asia/Riyadh\",\n country: \"Saudi Arabia\",\n countryCode: \"SA\",\n city: \"Riyadh\",\n utcOffset: \"+03:00\",\n dst: false,\n locale: \"ar-SA\",\n },\n \"America/Mexico_City\": {\n timezone: \"America/Mexico_City\",\n country: \"Mexico\",\n countryCode: \"MX\",\n city: \"Mexico City\",\n utcOffset: \"-06:00\",\n dst: true,\n locale: \"es-MX\",\n },\n \"America/Buenos_Aires\": {\n timezone: \"America/Buenos_Aires\",\n country: \"Argentina\",\n countryCode: \"AR\",\n city: \"Buenos Aires\",\n utcOffset: \"-03:00\",\n dst: false,\n locale: \"es-AR\",\n },\n};\n\nexport const ALL_IANA_TIMEZONES: readonly string[] = Object.keys(TIMEZONE_REGISTRY);\n\nexport function getTimezoneInfo(timezone: string): TimezoneInfo | undefined {\n return TIMEZONE_REGISTRY[timezone];\n}\n\nexport function isKnownTimezone(timezone: string): boolean {\n return timezone in TIMEZONE_REGISTRY;\n}\n\nexport function listAllTimezones(): string[] {\n return [...ALL_IANA_TIMEZONES];\n}\n"]}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
// src/locales.ts
|
|
2
|
+
var LOCALE_METADATA = {
|
|
3
|
+
"en-US": {
|
|
4
|
+
locale: "en-US",
|
|
5
|
+
language: "English",
|
|
6
|
+
region: "United States",
|
|
7
|
+
dateFormat: "US",
|
|
8
|
+
timeFormat: "12h",
|
|
9
|
+
firstDayOfWeek: 0
|
|
10
|
+
},
|
|
11
|
+
"en-GB": {
|
|
12
|
+
locale: "en-GB",
|
|
13
|
+
language: "English",
|
|
14
|
+
region: "United Kingdom",
|
|
15
|
+
dateFormat: "UK",
|
|
16
|
+
timeFormat: "24h",
|
|
17
|
+
firstDayOfWeek: 1
|
|
18
|
+
},
|
|
19
|
+
"en-IN": {
|
|
20
|
+
locale: "en-IN",
|
|
21
|
+
language: "English",
|
|
22
|
+
region: "India",
|
|
23
|
+
dateFormat: "IN",
|
|
24
|
+
timeFormat: "12h",
|
|
25
|
+
firstDayOfWeek: 0
|
|
26
|
+
},
|
|
27
|
+
"ja-JP": {
|
|
28
|
+
locale: "ja-JP",
|
|
29
|
+
language: "Japanese",
|
|
30
|
+
region: "Japan",
|
|
31
|
+
dateFormat: "JP",
|
|
32
|
+
timeFormat: "24h",
|
|
33
|
+
firstDayOfWeek: 0
|
|
34
|
+
},
|
|
35
|
+
"fr-FR": {
|
|
36
|
+
locale: "fr-FR",
|
|
37
|
+
language: "French",
|
|
38
|
+
region: "France",
|
|
39
|
+
dateFormat: "EU",
|
|
40
|
+
timeFormat: "24h",
|
|
41
|
+
firstDayOfWeek: 1
|
|
42
|
+
},
|
|
43
|
+
"de-DE": {
|
|
44
|
+
locale: "de-DE",
|
|
45
|
+
language: "German",
|
|
46
|
+
region: "Germany",
|
|
47
|
+
dateFormat: "EU",
|
|
48
|
+
timeFormat: "24h",
|
|
49
|
+
firstDayOfWeek: 1
|
|
50
|
+
},
|
|
51
|
+
"ar-AE": {
|
|
52
|
+
locale: "ar-AE",
|
|
53
|
+
language: "Arabic",
|
|
54
|
+
region: "UAE",
|
|
55
|
+
dateFormat: "AR",
|
|
56
|
+
timeFormat: "12h",
|
|
57
|
+
firstDayOfWeek: 6
|
|
58
|
+
},
|
|
59
|
+
"ar-SA": {
|
|
60
|
+
locale: "ar-SA",
|
|
61
|
+
language: "Arabic",
|
|
62
|
+
region: "Saudi Arabia",
|
|
63
|
+
dateFormat: "AR",
|
|
64
|
+
timeFormat: "12h",
|
|
65
|
+
firstDayOfWeek: 6
|
|
66
|
+
},
|
|
67
|
+
"zh-CN": {
|
|
68
|
+
locale: "zh-CN",
|
|
69
|
+
language: "Chinese",
|
|
70
|
+
region: "China",
|
|
71
|
+
dateFormat: "CN",
|
|
72
|
+
timeFormat: "24h",
|
|
73
|
+
firstDayOfWeek: 1
|
|
74
|
+
},
|
|
75
|
+
"zh-HK": {
|
|
76
|
+
locale: "zh-HK",
|
|
77
|
+
language: "Chinese",
|
|
78
|
+
region: "Hong Kong",
|
|
79
|
+
dateFormat: "CN",
|
|
80
|
+
timeFormat: "12h",
|
|
81
|
+
firstDayOfWeek: 0
|
|
82
|
+
},
|
|
83
|
+
"ko-KR": {
|
|
84
|
+
locale: "ko-KR",
|
|
85
|
+
language: "Korean",
|
|
86
|
+
region: "South Korea",
|
|
87
|
+
dateFormat: "ISO",
|
|
88
|
+
timeFormat: "12h",
|
|
89
|
+
firstDayOfWeek: 0
|
|
90
|
+
},
|
|
91
|
+
"pt-BR": {
|
|
92
|
+
locale: "pt-BR",
|
|
93
|
+
language: "Portuguese",
|
|
94
|
+
region: "Brazil",
|
|
95
|
+
dateFormat: "EU",
|
|
96
|
+
timeFormat: "24h",
|
|
97
|
+
firstDayOfWeek: 0
|
|
98
|
+
},
|
|
99
|
+
"es-ES": {
|
|
100
|
+
locale: "es-ES",
|
|
101
|
+
language: "Spanish",
|
|
102
|
+
region: "Spain",
|
|
103
|
+
dateFormat: "EU",
|
|
104
|
+
timeFormat: "24h",
|
|
105
|
+
firstDayOfWeek: 1
|
|
106
|
+
},
|
|
107
|
+
"it-IT": {
|
|
108
|
+
locale: "it-IT",
|
|
109
|
+
language: "Italian",
|
|
110
|
+
region: "Italy",
|
|
111
|
+
dateFormat: "EU",
|
|
112
|
+
timeFormat: "24h",
|
|
113
|
+
firstDayOfWeek: 1
|
|
114
|
+
},
|
|
115
|
+
"nl-NL": {
|
|
116
|
+
locale: "nl-NL",
|
|
117
|
+
language: "Dutch",
|
|
118
|
+
region: "Netherlands",
|
|
119
|
+
dateFormat: "EU",
|
|
120
|
+
timeFormat: "24h",
|
|
121
|
+
firstDayOfWeek: 1
|
|
122
|
+
},
|
|
123
|
+
"ru-RU": {
|
|
124
|
+
locale: "ru-RU",
|
|
125
|
+
language: "Russian",
|
|
126
|
+
region: "Russia",
|
|
127
|
+
dateFormat: "EU",
|
|
128
|
+
timeFormat: "24h",
|
|
129
|
+
firstDayOfWeek: 1
|
|
130
|
+
},
|
|
131
|
+
"en-AU": {
|
|
132
|
+
locale: "en-AU",
|
|
133
|
+
language: "English",
|
|
134
|
+
region: "Australia",
|
|
135
|
+
dateFormat: "UK",
|
|
136
|
+
timeFormat: "12h",
|
|
137
|
+
firstDayOfWeek: 1
|
|
138
|
+
},
|
|
139
|
+
"en-CA": {
|
|
140
|
+
locale: "en-CA",
|
|
141
|
+
language: "English",
|
|
142
|
+
region: "Canada",
|
|
143
|
+
dateFormat: "US",
|
|
144
|
+
timeFormat: "12h",
|
|
145
|
+
firstDayOfWeek: 0
|
|
146
|
+
},
|
|
147
|
+
"en-SG": {
|
|
148
|
+
locale: "en-SG",
|
|
149
|
+
language: "English",
|
|
150
|
+
region: "Singapore",
|
|
151
|
+
dateFormat: "UK",
|
|
152
|
+
timeFormat: "12h",
|
|
153
|
+
firstDayOfWeek: 0
|
|
154
|
+
},
|
|
155
|
+
"th-TH": {
|
|
156
|
+
locale: "th-TH",
|
|
157
|
+
language: "Thai",
|
|
158
|
+
region: "Thailand",
|
|
159
|
+
dateFormat: "EU",
|
|
160
|
+
timeFormat: "24h",
|
|
161
|
+
firstDayOfWeek: 0
|
|
162
|
+
},
|
|
163
|
+
"id-ID": {
|
|
164
|
+
locale: "id-ID",
|
|
165
|
+
language: "Indonesian",
|
|
166
|
+
region: "Indonesia",
|
|
167
|
+
dateFormat: "EU",
|
|
168
|
+
timeFormat: "24h",
|
|
169
|
+
firstDayOfWeek: 0
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var DATE_FORMAT_REGISTRY = {
|
|
173
|
+
ISO: {
|
|
174
|
+
type: "ISO",
|
|
175
|
+
pattern: "yyyy-MM-dd'T'HH:mm:ss.SSSxxx",
|
|
176
|
+
description: "ISO 8601 full datetime with offset",
|
|
177
|
+
example: "2026-05-26T14:30:00.000+05:30"
|
|
178
|
+
},
|
|
179
|
+
UTC: {
|
|
180
|
+
type: "UTC",
|
|
181
|
+
pattern: "yyyy-MM-dd'T'HH:mm:ss'Z'",
|
|
182
|
+
description: "UTC datetime in ISO format",
|
|
183
|
+
example: "2026-05-26T09:00:00Z"
|
|
184
|
+
},
|
|
185
|
+
LOCAL: {
|
|
186
|
+
type: "LOCAL",
|
|
187
|
+
pattern: "Pp",
|
|
188
|
+
description: "Locale-aware short date and time",
|
|
189
|
+
example: "5/26/2026, 2:30 PM"
|
|
190
|
+
},
|
|
191
|
+
SHORT: {
|
|
192
|
+
type: "SHORT",
|
|
193
|
+
pattern: "P",
|
|
194
|
+
description: "Short date format",
|
|
195
|
+
example: "5/26/2026"
|
|
196
|
+
},
|
|
197
|
+
LONG: {
|
|
198
|
+
type: "LONG",
|
|
199
|
+
pattern: "PPP",
|
|
200
|
+
description: "Long date format with month name",
|
|
201
|
+
example: "May 26, 2026"
|
|
202
|
+
},
|
|
203
|
+
FULL: {
|
|
204
|
+
type: "FULL",
|
|
205
|
+
pattern: "PPPP",
|
|
206
|
+
description: "Full date with weekday",
|
|
207
|
+
example: "Tuesday, May 26, 2026"
|
|
208
|
+
},
|
|
209
|
+
DATETIME: {
|
|
210
|
+
type: "DATETIME",
|
|
211
|
+
pattern: "Pp",
|
|
212
|
+
description: "Combined date and time",
|
|
213
|
+
example: "5/26/2026, 2:30 PM"
|
|
214
|
+
},
|
|
215
|
+
TIME_ONLY: {
|
|
216
|
+
type: "TIME_ONLY",
|
|
217
|
+
pattern: "p",
|
|
218
|
+
description: "Time only",
|
|
219
|
+
example: "2:30 PM"
|
|
220
|
+
},
|
|
221
|
+
DATE_ONLY: {
|
|
222
|
+
type: "DATE_ONLY",
|
|
223
|
+
pattern: "P",
|
|
224
|
+
description: "Date only",
|
|
225
|
+
example: "5/26/2026"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
var REGIONAL_DATE_PATTERNS = {
|
|
229
|
+
IN: "dd/MM/yyyy",
|
|
230
|
+
US: "MM/dd/yyyy",
|
|
231
|
+
EU: "dd.MM.yyyy",
|
|
232
|
+
UK: "dd/MM/yyyy",
|
|
233
|
+
JP: "yyyy/MM/dd",
|
|
234
|
+
AR: "dd/MM/yyyy",
|
|
235
|
+
CN: "yyyy/MM/dd",
|
|
236
|
+
ISO: "yyyy-MM-dd"
|
|
237
|
+
};
|
|
238
|
+
function getLocaleMetadata(locale) {
|
|
239
|
+
return LOCALE_METADATA[locale];
|
|
240
|
+
}
|
|
241
|
+
function getDateFormatEntry(type) {
|
|
242
|
+
return DATE_FORMAT_REGISTRY[type];
|
|
243
|
+
}
|
|
244
|
+
function getRegionalPattern(format) {
|
|
245
|
+
return REGIONAL_DATE_PATTERNS[format];
|
|
246
|
+
}
|
|
247
|
+
function listLocales() {
|
|
248
|
+
return Object.values(LOCALE_METADATA);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export { DATE_FORMAT_REGISTRY, LOCALE_METADATA, REGIONAL_DATE_PATTERNS, getDateFormatEntry, getLocaleMetadata, getRegionalPattern, listLocales };
|
|
252
|
+
//# sourceMappingURL=chunk-ZEM6FGFI.js.map
|
|
253
|
+
//# sourceMappingURL=chunk-ZEM6FGFI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locales.ts"],"names":[],"mappings":";AAOO,IAAM,eAAA,GAAkD;AAAA,EAC7D,OAAA,EAAS;AAAA,IACP,MAAA,EAAQ,OAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,MAAA,EAAQ,eAAA;AAAA,IACR,UAAA,EAAY,IAAA;AAAA,IACZ,UAAA,EAAY,KAAA;AAAA,IACZ,cAAA,EAAgB;AAAA,GAClB;AAAA,EACA,OAAA,EAAS;AAAA,IACP,MAAA,EAAQ,OAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,MAAA,EAAQ,gBAAA;AAAA,IACR,UAAA,EAAY,IAAA;AAAA,IACZ,UAAA,EAAY,KAAA;AAAA,IACZ,cAAA,EAAgB;AAAA,GAClB;AAAA,EACA,OAAA,EAAS;AAAA,IACP,MAAA,EAAQ,OAAA;AAAA,IACR,QAAA,EAAU,SAAA;AAAA,IACV,MAAA,EAAQ,OAAA;AAAA,IACR,UAAA,EAAY,IAAA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,EAAS,GAAA;AAAA,IACT,WAAA,EAAa,WAAA;AAAA,IACb,OAAA,EAAS;AAAA,GACX;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,WAAA;AAAA,IACN,OAAA,EAAS,GAAA;AAAA,IACT,WAAA,EAAa,WAAA;AAAA,IACb,OAAA,EAAS;AAAA;AAEb;AAGO,IAAM,sBAAA,GAA6D;AAAA,EACxE,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,EAAA,EAAI,YAAA;AAAA,EACJ,GAAA,EAAK;AACP;AAEO,SAAS,kBAAkB,MAAA,EAA4C;AAC5E,EAAA,OAAO,gBAAgB,MAAM,CAAA;AAC/B;AAEO,SAAS,mBAAmB,IAAA,EAAmD;AACpF,EAAA,OAAO,qBAAqB,IAAI,CAAA;AAClC;AAEO,SAAS,mBAAmB,MAAA,EAAoC;AACrE,EAAA,OAAO,uBAAuB,MAAM,CAAA;AACtC;AAEO,SAAS,WAAA,GAAgC;AAC9C,EAAA,OAAO,MAAA,CAAO,OAAO,eAAe,CAAA;AACtC","file":"chunk-ZEM6FGFI.js","sourcesContent":["import type {\n LocaleMetadata,\n DateFormatRegistryEntry,\n RegionalDateFormat,\n} from \"@multisystemsuite/timezone-engine-shared-types\";\n\n/** Hardcoded locale metadata — offline-first */\nexport const LOCALE_METADATA: Record<string, LocaleMetadata> = {\n \"en-US\": {\n locale: \"en-US\",\n language: \"English\",\n region: \"United States\",\n dateFormat: \"US\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"en-GB\": {\n locale: \"en-GB\",\n language: \"English\",\n region: \"United Kingdom\",\n dateFormat: \"UK\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"en-IN\": {\n locale: \"en-IN\",\n language: \"English\",\n region: \"India\",\n dateFormat: \"IN\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"ja-JP\": {\n locale: \"ja-JP\",\n language: \"Japanese\",\n region: \"Japan\",\n dateFormat: \"JP\",\n timeFormat: \"24h\",\n firstDayOfWeek: 0,\n },\n \"fr-FR\": {\n locale: \"fr-FR\",\n language: \"French\",\n region: \"France\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"de-DE\": {\n locale: \"de-DE\",\n language: \"German\",\n region: \"Germany\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"ar-AE\": {\n locale: \"ar-AE\",\n language: \"Arabic\",\n region: \"UAE\",\n dateFormat: \"AR\",\n timeFormat: \"12h\",\n firstDayOfWeek: 6,\n },\n \"ar-SA\": {\n locale: \"ar-SA\",\n language: \"Arabic\",\n region: \"Saudi Arabia\",\n dateFormat: \"AR\",\n timeFormat: \"12h\",\n firstDayOfWeek: 6,\n },\n \"zh-CN\": {\n locale: \"zh-CN\",\n language: \"Chinese\",\n region: \"China\",\n dateFormat: \"CN\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"zh-HK\": {\n locale: \"zh-HK\",\n language: \"Chinese\",\n region: \"Hong Kong\",\n dateFormat: \"CN\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"ko-KR\": {\n locale: \"ko-KR\",\n language: \"Korean\",\n region: \"South Korea\",\n dateFormat: \"ISO\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"pt-BR\": {\n locale: \"pt-BR\",\n language: \"Portuguese\",\n region: \"Brazil\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 0,\n },\n \"es-ES\": {\n locale: \"es-ES\",\n language: \"Spanish\",\n region: \"Spain\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"it-IT\": {\n locale: \"it-IT\",\n language: \"Italian\",\n region: \"Italy\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"nl-NL\": {\n locale: \"nl-NL\",\n language: \"Dutch\",\n region: \"Netherlands\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"ru-RU\": {\n locale: \"ru-RU\",\n language: \"Russian\",\n region: \"Russia\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 1,\n },\n \"en-AU\": {\n locale: \"en-AU\",\n language: \"English\",\n region: \"Australia\",\n dateFormat: \"UK\",\n timeFormat: \"12h\",\n firstDayOfWeek: 1,\n },\n \"en-CA\": {\n locale: \"en-CA\",\n language: \"English\",\n region: \"Canada\",\n dateFormat: \"US\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"en-SG\": {\n locale: \"en-SG\",\n language: \"English\",\n region: \"Singapore\",\n dateFormat: \"UK\",\n timeFormat: \"12h\",\n firstDayOfWeek: 0,\n },\n \"th-TH\": {\n locale: \"th-TH\",\n language: \"Thai\",\n region: \"Thailand\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 0,\n },\n \"id-ID\": {\n locale: \"id-ID\",\n language: \"Indonesian\",\n region: \"Indonesia\",\n dateFormat: \"EU\",\n timeFormat: \"24h\",\n firstDayOfWeek: 0,\n },\n};\n\n/** Hardcoded date format registry */\nexport const DATE_FORMAT_REGISTRY: Record<string, DateFormatRegistryEntry> = {\n ISO: {\n type: \"ISO\",\n pattern: \"yyyy-MM-dd'T'HH:mm:ss.SSSxxx\",\n description: \"ISO 8601 full datetime with offset\",\n example: \"2026-05-26T14:30:00.000+05:30\",\n },\n UTC: {\n type: \"UTC\",\n pattern: \"yyyy-MM-dd'T'HH:mm:ss'Z'\",\n description: \"UTC datetime in ISO format\",\n example: \"2026-05-26T09:00:00Z\",\n },\n LOCAL: {\n type: \"LOCAL\",\n pattern: \"Pp\",\n description: \"Locale-aware short date and time\",\n example: \"5/26/2026, 2:30 PM\",\n },\n SHORT: {\n type: \"SHORT\",\n pattern: \"P\",\n description: \"Short date format\",\n example: \"5/26/2026\",\n },\n LONG: {\n type: \"LONG\",\n pattern: \"PPP\",\n description: \"Long date format with month name\",\n example: \"May 26, 2026\",\n },\n FULL: {\n type: \"FULL\",\n pattern: \"PPPP\",\n description: \"Full date with weekday\",\n example: \"Tuesday, May 26, 2026\",\n },\n DATETIME: {\n type: \"DATETIME\",\n pattern: \"Pp\",\n description: \"Combined date and time\",\n example: \"5/26/2026, 2:30 PM\",\n },\n TIME_ONLY: {\n type: \"TIME_ONLY\",\n pattern: \"p\",\n description: \"Time only\",\n example: \"2:30 PM\",\n },\n DATE_ONLY: {\n type: \"DATE_ONLY\",\n pattern: \"P\",\n description: \"Date only\",\n example: \"5/26/2026\",\n },\n};\n\n/** Regional date format patterns */\nexport const REGIONAL_DATE_PATTERNS: Record<RegionalDateFormat, string> = {\n IN: \"dd/MM/yyyy\",\n US: \"MM/dd/yyyy\",\n EU: \"dd.MM.yyyy\",\n UK: \"dd/MM/yyyy\",\n JP: \"yyyy/MM/dd\",\n AR: \"dd/MM/yyyy\",\n CN: \"yyyy/MM/dd\",\n ISO: \"yyyy-MM-dd\",\n};\n\nexport function getLocaleMetadata(locale: string): LocaleMetadata | undefined {\n return LOCALE_METADATA[locale];\n}\n\nexport function getDateFormatEntry(type: string): DateFormatRegistryEntry | undefined {\n return DATE_FORMAT_REGISTRY[type];\n}\n\nexport function getRegionalPattern(format: RegionalDateFormat): string {\n return REGIONAL_DATE_PATTERNS[format];\n}\n\nexport function listLocales(): LocaleMetadata[] {\n return Object.values(LOCALE_METADATA);\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDRDF6QPV_cjs = require('./chunk-DRDF6QPV.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "CITY_TIMEZONE_MAP", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkDRDF6QPV_cjs.CITY_TIMEZONE_MAP; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "COUNTRY_TIMEZONE_MAP", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkDRDF6QPV_cjs.COUNTRY_TIMEZONE_MAP; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "getCityTimezone", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkDRDF6QPV_cjs.getCityTimezone; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "getCountryTimezones", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkDRDF6QPV_cjs.getCountryTimezones; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "listCities", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkDRDF6QPV_cjs.listCities; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "listCountries", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkDRDF6QPV_cjs.listCountries; }
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=countries.cjs.map
|
|
32
|
+
//# sourceMappingURL=countries.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"countries.cjs"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CityTimezoneMapping, CountryTimezoneMapping } from '@multisystemsuite/timezone-engine-shared-types';
|
|
2
|
+
|
|
3
|
+
/** Country-to-timezone mappings — offline-first */
|
|
4
|
+
declare const COUNTRY_TIMEZONE_MAP: Record<string, CountryTimezoneMapping>;
|
|
5
|
+
/** City-to-timezone mappings — offline-first */
|
|
6
|
+
declare const CITY_TIMEZONE_MAP: Record<string, CityTimezoneMapping>;
|
|
7
|
+
declare function getCountryTimezones(countryCode: string): CountryTimezoneMapping | undefined;
|
|
8
|
+
declare function getCityTimezone(city: string): CityTimezoneMapping | undefined;
|
|
9
|
+
declare function listCountries(): CountryTimezoneMapping[];
|
|
10
|
+
declare function listCities(): CityTimezoneMapping[];
|
|
11
|
+
|
|
12
|
+
export { CITY_TIMEZONE_MAP, COUNTRY_TIMEZONE_MAP, getCityTimezone, getCountryTimezones, listCities, listCountries };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CityTimezoneMapping, CountryTimezoneMapping } from '@multisystemsuite/timezone-engine-shared-types';
|
|
2
|
+
|
|
3
|
+
/** Country-to-timezone mappings — offline-first */
|
|
4
|
+
declare const COUNTRY_TIMEZONE_MAP: Record<string, CountryTimezoneMapping>;
|
|
5
|
+
/** City-to-timezone mappings — offline-first */
|
|
6
|
+
declare const CITY_TIMEZONE_MAP: Record<string, CityTimezoneMapping>;
|
|
7
|
+
declare function getCountryTimezones(countryCode: string): CountryTimezoneMapping | undefined;
|
|
8
|
+
declare function getCityTimezone(city: string): CityTimezoneMapping | undefined;
|
|
9
|
+
declare function listCountries(): CountryTimezoneMapping[];
|
|
10
|
+
declare function listCities(): CityTimezoneMapping[];
|
|
11
|
+
|
|
12
|
+
export { CITY_TIMEZONE_MAP, COUNTRY_TIMEZONE_MAP, getCityTimezone, getCountryTimezones, listCities, listCountries };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"countries.js"}
|