Debian Codegraph @

src/regionDayMap.js

raw symbols SCIP
1 /**
2 * Contains data about first day of week depending on country code.
3 *
4 * @module regionDayMap
5 */
6
7
8 /* eslint quote-props: ['error', 'as-needed', {'keywords': true, 'numbers': false, 'unnecessary': false}] */
9 /**
10 * Data about first day of week depending on country code.
11 * Based on:
12 * - [https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html](https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html)
13 * - [https://www.iso.org/iso-3166-country-codes.html](https://www.iso.org/iso-3166-country-codes.html)
14 */
15 const regionDayMap = {
16 // Sunday
17 AG: 0,
18 ATG: 0,
19 28: 0,
20 AS: 0,
21 ASM: 0,
22 16: 0,
23 BD: 0,
24 BGD: 0,
25 50: 0,
26 BR: 0,
27 BRA: 0,
28 76: 0,
29 BS: 0,
30 BHS: 0,
31 44: 0,
32 BT: 0,
33 BTN: 0,
34 64: 0,
35 BW: 0,
36 BWA: 0,
37 72: 0,
38 BZ: 0,
39 BLZ: 0,
40 84: 0,
41 CA: 0,
42 CAN: 0,
43 124: 0,
44 CO: 0,
45 COL: 0,
46 170: 0,
47 DM: 0,
48 DMA: 0,
49 212: 0,
50 DO: 0,
51 DOM: 0,
52 214: 0,
53 ET: 0,
54 ETH: 0,
55 231: 0,
56 GT: 0,
57 GTM: 0,
58 320: 0,
59 GU: 0,
60 GUM: 0,
61 316: 0,
62 HK: 0,
63 HKG: 0,
64 344: 0,
65 HN: 0,
66 HND: 0,
67 340: 0,
68 ID: 0,
69 IDN: 0,
70 360: 0,
71 IL: 0,
72 ISR: 0,
73 376: 0,
74 IN: 0,
75 IND: 0,
76 356: 0,
77 JM: 0,
78 JAM: 0,
79 388: 0,
80 JP: 0,
81 JPN: 0,
82 392: 0,
83 KE: 0,
84 KEN: 0,
85 404: 0,
86 KH: 0,
87 KHM: 0,
88 116: 0,
89 KR: 0,
90 KOR: 0,
91 410: 0,
92 LA: 0,
93 LA0: 0,
94 418: 0,
95 MH: 0,
96 MHL: 0,
97 584: 0,
98 MM: 0,
99 MMR: 0,
100 104: 0,
101 MO: 0,
102 MAC: 0,
103 446: 0,
104 MT: 0,
105 MLT: 0,
106 470: 0,
107 MX: 0,
108 MEX: 0,
109 484: 0,
110 MZ: 0,
111 MOZ: 0,
112 508: 0,
113 NI: 0,
114 NIC: 0,
115 558: 0,
116 NP: 0,
117 NPL: 0,
118 524: 0,
119 PA: 0,
120 PAN: 0,
121 591: 0,
122 PE: 0,
123 PER: 0,
124 604: 0,
125 PH: 0,
126 PHL: 0,
127 608: 0,
128 PK: 0,
129 PAK: 0,
130 586: 0,
131 PR: 0,
132 PRI: 0,
133 630: 0,
134 PT: 0,
135 PRT: 0,
136 620: 0,
137 PY: 0,
138 PRY: 0,
139 600: 0,
140 SA: 0,
141 SAU: 0,
142 682: 0,
143 SG: 0,
144 SGP: 0,
145 702: 0,
146 SV: 0,
147 SLV: 0,
148 222: 0,
149 TH: 0,
150 THA: 0,
151 764: 0,
152 TT: 0,
153 TTO: 0,
154 780: 0,
155 TW: 0,
156 TWN: 0,
157 158: 0,
158 UM: 0,
159 UMI: 0,
160 581: 0,
161 US: 0,
162 USA: 0,
163 840: 0,
164 VE: 0,
165 VEN: 0,
166 862: 0,
167 VI: 0,
168 VIR: 0,
169 850: 0,
170 WS: 0,
171 WSM: 0,
172 882: 0,
173 YE: 0,
174 YEM: 0,
175 887: 0,
176 ZA: 0,
177 ZAF: 0,
178 710: 0,
179 ZW: 0,
180 ZWE: 0,
181 716: 0,
182
183 // Saturday
184 AE: 6,
185 ARE: 6,
186 784: 6,
187 AF: 6,
188 AFG: 6,
189 4: 6,
190 BH: 6,
191 BHR: 6,
192 48: 6,
193 DJ: 6,
194 DJI: 6,
195 262: 6,
196 DZ: 6,
197 DZA: 6,
198 12: 6,
199 EG: 6,
200 EGY: 6,
201 818: 6,
202 IQ: 6,
203 IRQ: 6,
204 368: 6,
205 IR: 6,
206 IRN: 6,
207 364: 6,
208 JO: 6,
209 JOR: 6,
210 400: 6,
211 KW: 6,
212 KWT: 6,
213 414: 6,
214 LY: 6,
215 LBY: 6,
216 434: 6,
217 OM: 6,
218 OMN: 6,
219 512: 6,
220 QA: 6,
221 QAT: 6,
222 634: 6,
223 SD: 6,
224 SDN: 6,
225 729: 6,
226 SY: 6,
227 SYR: 6,
228 760: 6,
229
230 // Friday
231 MV: 5,
232 MDV: 5,
233 462: 5
234
235 // Else - Monday
236 };
237
238 export default regionDayMap;