african-states-and-tribes 1.0.0 → 1.1.1

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.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +314 -3
  3. package/SECURITY.md +11 -0
  4. package/dist/AO-LQ4VRH4F.mjs +192 -0
  5. package/dist/BF-BZ7WXNF3.mjs +132 -0
  6. package/dist/BI-DLK4YMGO.mjs +182 -0
  7. package/dist/BJ-PNML7KGU.mjs +120 -0
  8. package/dist/BW-CNU7L4NH.mjs +112 -0
  9. package/dist/CD-3L2NXQVL.mjs +252 -0
  10. package/dist/CF-ESX77N6V.mjs +212 -0
  11. package/dist/CG-VO3X7LDQ.mjs +132 -0
  12. package/dist/CI-GS6CFDT3.mjs +162 -0
  13. package/dist/CM-BTFLGGR5.mjs +112 -0
  14. package/dist/CV-B7NIY45I.mjs +242 -0
  15. package/dist/DJ-ZMQOBOIG.mjs +52 -0
  16. package/dist/DZ-LPE6ZB5C.mjs +534 -0
  17. package/dist/EG-S75L33PX.mjs +282 -0
  18. package/dist/ER-UP22LPAH.mjs +72 -0
  19. package/dist/ET-OBCUOADT.mjs +112 -0
  20. package/dist/GA-MAVC3U4Q.mjs +102 -0
  21. package/dist/GH-6ZWTNM6E.mjs +172 -0
  22. package/dist/GM-3TYRGF43.mjs +82 -0
  23. package/dist/GN-J26OKD3H.mjs +92 -0
  24. package/dist/GQ-TVJPRBZ4.mjs +62 -0
  25. package/dist/GW-BXXBSDB3.mjs +102 -0
  26. package/dist/KE-FR37ZDM6.mjs +332 -0
  27. package/dist/KM-2T7XZQOW.mjs +42 -0
  28. package/dist/LR-SDYDWBD2.mjs +162 -0
  29. package/dist/LS-WW7EJFSS.mjs +112 -0
  30. package/dist/LY-GLNCPO5D.mjs +152 -0
  31. package/dist/MA-TSZB2KUC.mjs +142 -0
  32. package/dist/MG-V4B3MJ27.mjs +72 -0
  33. package/dist/ML-5UC2UZFE.mjs +202 -0
  34. package/dist/MR-V7C27OIX.mjs +162 -0
  35. package/dist/MU-2QTJWWOZ.mjs +112 -0
  36. package/dist/MW-QHGL2IKS.mjs +232 -0
  37. package/dist/MZ-5UZ67NUU.mjs +122 -0
  38. package/dist/NA-5VDTGOMK.mjs +152 -0
  39. package/dist/NE-ZOWNVUFW.mjs +92 -0
  40. package/dist/NG-6QW6RXJE.mjs +382 -0
  41. package/dist/RW-GQU5ZEII.mjs +57 -0
  42. package/dist/SC-SY5UMMU2.mjs +272 -0
  43. package/dist/SD-GZVFH7EN.mjs +192 -0
  44. package/dist/SL-G6OQ2OKF.mjs +72 -0
  45. package/dist/SN-6NZD3VMK.mjs +152 -0
  46. package/dist/SO-OYCQEJXC.mjs +192 -0
  47. package/dist/SS-VC4OP4LH.mjs +7 -0
  48. package/dist/ST-W5CRCMYC.mjs +32 -0
  49. package/dist/SZ-WPJM53Q7.mjs +72 -0
  50. package/dist/TD-T6K52QM6.mjs +232 -0
  51. package/dist/TG-4GRO64UZ.mjs +62 -0
  52. package/dist/TN-KZ7WMICO.mjs +252 -0
  53. package/dist/TZ-MR6WGF2A.mjs +222 -0
  54. package/dist/UG-UNMXRIJ5.mjs +402 -0
  55. package/dist/ZA-RNKH3KHE.mjs +102 -0
  56. package/dist/ZM-KVDEVKJK.mjs +112 -0
  57. package/dist/ZW-EFGG3D6Y.mjs +112 -0
  58. package/dist/chunk-4UEJOM6W.mjs +9 -0
  59. package/dist/index.d.mts +1356 -435
  60. package/dist/index.d.ts +1356 -435
  61. package/dist/index.js +8877 -62
  62. package/dist/index.mjs +436 -60
  63. package/docs/CONTRIBUTING +1 -0
  64. package/package.json +7 -3
package/dist/index.mjs CHANGED
@@ -1,443 +1,819 @@
1
- // src/data/african-countries.json
2
- var african_countries_default = {
1
+ import {
2
+ __glob
3
+ } from "./chunk-4UEJOM6W.mjs";
4
+
5
+ // src/data/africa/countries.json
6
+ var countries_default = {
3
7
  AO: {
4
8
  phoneCode: 244,
5
9
  capitalCity: "Luanda",
10
+ colonialMaster: "",
11
+ countryCode: "AO",
6
12
  flagEmoji: "\u{1F1E6}\u{1F1F4}",
7
13
  name: "Angola",
8
14
  currency: "Angolan kwanza",
9
- officialLanguage: "Portuguese"
15
+ currencyCode: "AOA",
16
+ currencySymbol: "Kz",
17
+ officialLanguage: "Portuguese",
18
+ majorEthnicGroups: ["Bakongo", "Chokwe", "Herero", "Humbi", "Kimbundu", "Mbundu", "Ngangela", "Ovimbundu"]
10
19
  },
11
20
  BJ: {
12
21
  phoneCode: 229,
13
22
  capitalCity: "Porto-Novo",
23
+ colonialMaster: "",
24
+ countryCode: "BJ",
14
25
  flagEmoji: "\u{1F1E7}\u{1F1EF}",
15
26
  name: "Benin",
16
27
  currency: "West African CFA franc",
17
- officialLanguage: "French"
28
+ currencyCode: "XOF",
29
+ currencySymbol: "Fr",
30
+ officialLanguage: "French",
31
+ majorEthnicGroups: ["Adja (Aja)", "Bariba", "Dendi (Songhai)", "Fon (Dahomey)", "Fulani", "Lukpa", "Tammari (Betammaribe)", "Yoruba"]
18
32
  },
19
33
  BW: {
20
34
  phoneCode: 267,
21
35
  capitalCity: "Gaborone",
36
+ colonialMaster: "",
37
+ countryCode: "BW",
22
38
  flagEmoji: "\u{1F1E7}\u{1F1FC}",
23
39
  name: "Botswana",
24
40
  currency: "Botswana pula",
25
- officialLanguage: "Setswana"
41
+ currencyCode: "BWP",
42
+ currencySymbol: "P",
43
+ officialLanguage: "Setswana",
44
+ majorEthnicGroups: []
26
45
  },
27
46
  BF: {
28
47
  phoneCode: 226,
29
48
  capitalCity: "Ouagadougou",
49
+ colonialMaster: "",
50
+ countryCode: "BF",
30
51
  flagEmoji: "\u{1F1E7}\u{1F1EB}",
31
52
  name: "Burkina Faso",
32
53
  currency: "West African CFA franc",
33
- officialLanguage: "French"
54
+ currencyCode: "XOF",
55
+ currencySymbol: "Fr",
56
+ officialLanguage: "French",
57
+ majorEthnicGroups: []
34
58
  },
35
59
  BI: {
36
60
  phoneCode: 257,
37
61
  capitalCity: "Bujumbura",
62
+ colonialMaster: "",
63
+ countryCode: "BI",
38
64
  flagEmoji: "\u{1F1E7}\u{1F1EE}",
39
65
  name: "Burundi",
40
66
  currency: "Burundi franc",
41
- officialLanguage: "Kirundi"
67
+ currencyCode: "BIF",
68
+ currencySymbol: "FBu",
69
+ officialLanguage: "Kirundi",
70
+ majorEthnicGroups: ["Hutu", "Tutsi", "Twa"]
42
71
  },
43
72
  CV: {
44
73
  phoneCode: 238,
45
74
  capitalCity: "Praia",
75
+ colonialMaster: "",
76
+ countryCode: "CV",
46
77
  flagEmoji: "\u{1F1E8}\u{1F1FB}",
47
78
  name: "Cabo Verde",
48
79
  currency: "Cape Verdean escudo",
49
- officialLanguage: "Portuguese"
80
+ currencyCode: "CVE",
81
+ currencySymbol: "$",
82
+ officialLanguage: "Portuguese",
83
+ majorEthnicGroups: []
50
84
  },
51
85
  CM: {
52
86
  phoneCode: 237,
53
87
  capitalCity: "Yaound\xE9",
88
+ colonialMaster: "",
89
+ countryCode: "CM",
54
90
  flagEmoji: "\u{1F1E8}\u{1F1F2}",
55
91
  name: "Cameroon",
56
92
  currency: "Central African CFA franc",
57
- officialLanguage: "Major African languages"
93
+ currencyCode: "XAF",
94
+ currencySymbol: "Fr",
95
+ officialLanguage: "Major African languages",
96
+ majorEthnicGroups: []
58
97
  },
59
98
  CF: {
60
99
  phoneCode: 236,
61
100
  capitalCity: "Bangui",
101
+ colonialMaster: "",
102
+ countryCode: "CF",
62
103
  flagEmoji: "\u{1F1E8}\u{1F1EB}",
63
104
  name: "Central African Republic",
64
105
  currency: "Central African CFA franc",
65
- officialLanguage: "French"
106
+ currencyCode: "XAF",
107
+ currencySymbol: "Fr",
108
+ officialLanguage: "French",
109
+ majorEthnicGroups: []
66
110
  },
67
111
  DZ: {
68
112
  phoneCode: 213,
69
113
  capitalCity: "Algiers",
114
+ colonialMaster: "",
115
+ countryCode: "",
70
116
  flagEmoji: "\u{1F1E9}\u{1F1FF}",
71
117
  name: "Algeria",
72
118
  currency: "Algerian dinar",
73
- officialLanguage: "Arabic"
119
+ currencyCode: "DZD",
120
+ currencySymbol: "\u062F.\u062C",
121
+ officialLanguage: "Arabic",
122
+ majorEthnicGroups: ["Arabs", "Berbers", "Harratin"]
74
123
  },
75
124
  TD: {
76
125
  phoneCode: 235,
77
126
  capitalCity: "N'Djamena",
127
+ colonialMaster: "",
128
+ countryCode: "TD",
78
129
  flagEmoji: "\u{1F1F9}\u{1F1E9}",
79
130
  name: "Chad",
80
131
  currency: "Central African CFA franc",
81
- officialLanguage: "French"
132
+ currencyCode: "XAF",
133
+ currencySymbol: "Fr",
134
+ officialLanguage: "French",
135
+ majorEthnicGroups: []
82
136
  },
83
137
  KM: {
84
138
  phoneCode: 269,
85
139
  capitalCity: "Moroni",
140
+ colonialMaster: "",
141
+ countryCode: "KM",
86
142
  flagEmoji: "\u{1F1F0}\u{1F1F2}",
87
143
  name: "Comoros",
88
144
  currency: "Comorian franc",
89
- officialLanguage: "Arabic"
145
+ currencyCode: "KMF",
146
+ currencySymbol: "CF",
147
+ officialLanguage: "Arabic",
148
+ majorEthnicGroups: []
90
149
  },
91
150
  CD: {
92
151
  phoneCode: 243,
93
152
  capitalCity: "Kinshasa",
153
+ colonialMaster: "",
154
+ countryCode: "CD",
94
155
  flagEmoji: "\u{1F1E8}\u{1F1E9}",
95
156
  name: "Democratic Republic of the Congo",
96
157
  currency: "Congolese franc",
97
- officialLanguage: "French"
158
+ currencyCode: "CDF",
159
+ currencySymbol: "FC",
160
+ officialLanguage: "French",
161
+ majorEthnicGroups: []
98
162
  },
99
163
  CG: {
100
164
  phoneCode: 242,
101
165
  capitalCity: "Brazzaville",
166
+ colonialMaster: "",
167
+ countryCode: "CG",
102
168
  flagEmoji: "\u{1F1E8}\u{1F1EC}",
103
169
  name: "Republic of the Congo",
104
170
  currency: "Central African CFA franc",
105
- officialLanguage: "French"
171
+ currencyCode: "XAF",
172
+ currencySymbol: "Fr",
173
+ officialLanguage: "French",
174
+ majorEthnicGroups: []
106
175
  },
107
176
  CI: {
108
177
  phoneCode: 225,
109
178
  capitalCity: "Yamoussoukro",
179
+ colonialMaster: "",
180
+ countryCode: "CI",
110
181
  flagEmoji: "\u{1F1E8}\u{1F1EE}",
111
182
  name: "Cote D'Ivoire",
112
183
  currency: "West African CFA franc",
113
- officialLanguage: "French"
184
+ currencyCode: "XOF",
185
+ currencySymbol: "Fr",
186
+ officialLanguage: "French",
187
+ majorEthnicGroups: []
114
188
  },
115
189
  DJ: {
116
190
  phoneCode: 253,
117
191
  capitalCity: "Djibouti (city)",
192
+ colonialMaster: "",
193
+ countryCode: "DJ",
118
194
  flagEmoji: "\u{1F1E9}\u{1F1EF}",
119
195
  name: "Djibouti",
120
196
  currency: "Djiboutian franc",
121
- officialLanguage: "French"
197
+ currencyCode: "DJF",
198
+ currencySymbol: "Fdj",
199
+ officialLanguage: "French",
200
+ majorEthnicGroups: []
122
201
  },
123
202
  EG: {
124
203
  phoneCode: 20,
125
204
  capitalCity: "Cairo",
205
+ colonialMaster: "",
206
+ countryCode: "EG",
126
207
  flagEmoji: "\u{1F1EA}\u{1F1EC}",
127
208
  name: "Egypt",
128
209
  currency: "Egyptian Pound",
129
- officialLanguage: "Arabic"
210
+ currencyCode: "EGP",
211
+ currencySymbol: "\xA3",
212
+ officialLanguage: "Arabic",
213
+ majorEthnicGroups: []
130
214
  },
131
215
  GQ: {
132
216
  phoneCode: 240,
133
217
  capitalCity: "Malabo",
218
+ colonialMaster: "",
219
+ countryCode: "GQ",
134
220
  flagEmoji: "\u{1F1EC}\u{1F1F6}",
135
221
  name: "Equatorial Guinea",
136
222
  currency: "Central African CFA franc",
137
- officialLanguage: "Spanish"
223
+ currencyCode: "XAF",
224
+ currencySymbol: "Fr",
225
+ officialLanguage: "Spanish",
226
+ majorEthnicGroups: []
138
227
  },
139
228
  ER: {
140
229
  phoneCode: 291,
141
230
  capitalCity: "Asmara",
231
+ colonialMaster: "",
232
+ countryCode: "ER",
142
233
  flagEmoji: "\u{1F1EA}\u{1F1F7}",
143
234
  name: "Eritrea",
144
235
  currency: "Eritrean nakfa",
145
- officialLanguage: "Afar"
236
+ currencyCode: "ERN",
237
+ currencySymbol: "Nkf",
238
+ officialLanguage: "Afar",
239
+ majorEthnicGroups: []
146
240
  },
147
241
  ET: {
148
242
  phoneCode: 251,
149
243
  capitalCity: "Addis Ababa",
244
+ colonialMaster: "",
245
+ countryCode: "ET",
150
246
  flagEmoji: "\u{1F1EA}\u{1F1F9}",
151
247
  name: "Ethiopia",
152
248
  currency: "Ethiopian birr",
153
- officialLanguage: "Amharic"
249
+ currencyCode: "ETB",
250
+ currencySymbol: "Br",
251
+ officialLanguage: "Amharic",
252
+ majorEthnicGroups: []
154
253
  },
155
254
  GA: {
156
255
  phoneCode: 241,
157
256
  capitalCity: "Libreville",
257
+ colonialMaster: "",
258
+ countryCode: "GA",
158
259
  flagEmoji: "\u{1F1EC}\u{1F1E6}",
159
260
  name: "Gabon",
160
261
  currency: "Central African CFA franc",
161
- officialLanguage: "French"
262
+ currencyCode: "XAF",
263
+ currencySymbol: "Fr",
264
+ officialLanguage: "French",
265
+ majorEthnicGroups: []
162
266
  },
163
267
  GH: {
164
268
  phoneCode: 233,
165
269
  capitalCity: "Accra",
270
+ colonialMaster: "",
271
+ countryCode: "GH",
166
272
  flagEmoji: "\u{1F1EC}\u{1F1ED}",
167
273
  name: "Ghana",
168
274
  currency: "Ghanaian cedi",
169
- officialLanguage: "English"
275
+ currencyCode: "GHS",
276
+ currencySymbol: "\u20B5",
277
+ officialLanguage: "English",
278
+ majorEthnicGroups: []
170
279
  },
171
280
  GM: {
172
281
  phoneCode: 220,
173
282
  capitalCity: "Banjul",
283
+ colonialMaster: "",
284
+ countryCode: "GM",
174
285
  flagEmoji: "\u{1F1EC}\u{1F1F2}",
175
286
  name: "Gambia",
176
287
  currency: "Dalasi",
177
- officialLanguage: "English"
288
+ currencyCode: "GMD",
289
+ currencySymbol: "D",
290
+ officialLanguage: "English",
291
+ majorEthnicGroups: []
178
292
  },
179
293
  GN: {
180
294
  phoneCode: 224,
181
295
  capitalCity: "Conakry",
296
+ colonialMaster: "",
297
+ countryCode: "GN",
182
298
  flagEmoji: "\u{1F1EC}\u{1F1F3}",
183
299
  name: "Guinea",
184
300
  currency: "Guinean franc",
185
- officialLanguage: "French"
301
+ currencyCode: "GNF",
302
+ currencySymbol: "FG",
303
+ officialLanguage: "French",
304
+ majorEthnicGroups: []
186
305
  },
187
306
  GW: {
188
307
  phoneCode: 245,
189
308
  capitalCity: "Bissau",
309
+ colonialMaster: "",
310
+ countryCode: "GW",
190
311
  flagEmoji: "\u{1F1EC}\u{1F1FC}",
191
312
  name: "Guinea-Bissau",
192
313
  currency: "West African CFA franc",
193
- officialLanguage: "Portuguese"
314
+ currencyCode: "XOF",
315
+ currencySymbol: "Fr",
316
+ officialLanguage: "Portuguese",
317
+ majorEthnicGroups: []
194
318
  },
195
319
  KE: {
196
320
  phoneCode: 254,
197
321
  capitalCity: "Nairobi",
322
+ colonialMaster: "",
323
+ countryCode: "KE",
198
324
  flagEmoji: "\u{1F1F0}\u{1F1EA}",
199
325
  name: "Kenya",
200
326
  currency: "Kenyan shilling",
201
- officialLanguage: "English"
327
+ currencyCode: "KES",
328
+ currencySymbol: "KSh",
329
+ officialLanguage: "English",
330
+ majorEthnicGroups: []
202
331
  },
203
332
  LS: {
204
333
  phoneCode: 266,
205
334
  capitalCity: "Maseru",
335
+ colonialMaster: "",
336
+ countryCode: "LS",
206
337
  flagEmoji: "\u{1F1F1}\u{1F1F8}",
207
338
  name: "Lesotho",
208
339
  currency: "Lesotho loti",
209
- officialLanguage: "Sesotho"
340
+ currencyCode: "LSL",
341
+ currencySymbol: "L",
342
+ officialLanguage: "Sesotho",
343
+ majorEthnicGroups: []
210
344
  },
211
345
  LR: {
212
346
  phoneCode: 231,
213
347
  capitalCity: "Monrovia",
348
+ colonialMaster: "",
349
+ countryCode: "LR",
214
350
  flagEmoji: "\u{1F1F1}\u{1F1F7}",
215
351
  name: "Liberia",
216
352
  currency: "Liberian Dollar",
217
- officialLanguage: "English"
353
+ currencyCode: "LRD",
354
+ currencySymbol: "**$",
355
+ officialLanguage: "English",
356
+ majorEthnicGroups: []
218
357
  },
219
358
  LY: {
220
359
  phoneCode: 218,
221
360
  capitalCity: "Tripoli",
361
+ colonialMaster: "",
362
+ countryCode: "LY",
222
363
  flagEmoji: "\u{1F1F1}\u{1F1FE}",
223
364
  name: "Libya",
224
365
  currency: "Libyan dinar",
225
- officialLanguage: "Arabic"
366
+ currencyCode: "LYD",
367
+ currencySymbol: "\u062F.\u0644",
368
+ officialLanguage: "Arabic",
369
+ majorEthnicGroups: []
226
370
  },
227
371
  MG: {
228
372
  phoneCode: 261,
229
373
  capitalCity: "Antananarivo",
374
+ colonialMaster: "",
375
+ countryCode: "MG",
230
376
  flagEmoji: "\u{1F1F2}\u{1F1EC}",
231
377
  name: "Madagascar",
232
378
  currency: "Malagasy ariary",
233
- officialLanguage: "French"
379
+ currencyCode: "MGA",
380
+ currencySymbol: "Ar",
381
+ officialLanguage: "French",
382
+ majorEthnicGroups: []
234
383
  },
235
384
  MW: {
236
385
  phoneCode: 265,
237
386
  capitalCity: "Lilongwe",
387
+ colonialMaster: "",
388
+ countryCode: "MW",
238
389
  flagEmoji: "\u{1F1F2}\u{1F1FC}",
239
390
  name: "Malawi",
240
391
  currency: "Malawian kwacha",
241
- officialLanguage: "Chichewa"
392
+ currencyCode: "MWK",
393
+ currencySymbol: "K",
394
+ officialLanguage: "Chichewa",
395
+ majorEthnicGroups: []
242
396
  },
243
397
  ML: {
244
398
  phoneCode: 223,
245
399
  capitalCity: "Bamako",
400
+ colonialMaster: "",
401
+ countryCode: "ML",
246
402
  flagEmoji: "\u{1F1F2}\u{1F1F1}",
247
403
  name: "Mali",
248
404
  currency: "West African CFA franc",
249
- officialLanguage: "French"
405
+ currencyCode: "XOF",
406
+ currencySymbol: "Fr",
407
+ officialLanguage: "French",
408
+ majorEthnicGroups: []
250
409
  },
251
410
  MR: {
252
411
  phoneCode: 222,
253
412
  capitalCity: "Nouakchott",
413
+ colonialMaster: "",
414
+ countryCode: "MR",
254
415
  flagEmoji: "\u{1F1F2}\u{1F1F7}",
255
416
  name: "Mauritania",
256
417
  currency: "Mauritanian ouguiya",
257
- officialLanguage: "Arabic"
418
+ currencyCode: "MRU",
419
+ currencySymbol: "UM",
420
+ officialLanguage: "Arabic",
421
+ majorEthnicGroups: []
258
422
  },
259
423
  MU: {
260
424
  phoneCode: 230,
261
425
  capitalCity: "Port Louis",
426
+ colonialMaster: "",
427
+ countryCode: "MU",
262
428
  flagEmoji: "\u{1F1F2}\u{1F1FA}",
263
429
  name: "Mauritius",
264
430
  currency: "Mauritian rupee",
265
- officialLanguage: "Creole"
431
+ currencyCode: "MUR",
432
+ currencySymbol: "\u20A8",
433
+ officialLanguage: "Creole",
434
+ majorEthnicGroups: []
266
435
  },
267
436
  MA: {
268
437
  phoneCode: 212,
269
438
  capitalCity: "Rabat",
439
+ colonialMaster: "",
440
+ countryCode: "MA",
270
441
  flagEmoji: "\u{1F1F2}\u{1F1E6}",
271
442
  name: "Morocco",
272
443
  currency: "Moroccan dirham",
273
- officialLanguage: "Arabic"
444
+ currencyCode: "MAD",
445
+ currencySymbol: "\u062F.\u0645.",
446
+ officialLanguage: "Arabic",
447
+ majorEthnicGroups: []
274
448
  },
275
449
  MZ: {
276
450
  phoneCode: 258,
277
451
  capitalCity: "Maputo",
452
+ colonialMaster: "",
453
+ countryCode: "MZ",
278
454
  flagEmoji: "\u{1F1F2}\u{1F1FF}",
279
455
  name: "Mozambique",
280
456
  currency: "Mozambican metical",
281
- officialLanguage: "Emakhuwa"
457
+ currencyCode: "MZN",
458
+ currencySymbol: "MT",
459
+ officialLanguage: "Emakhuwa",
460
+ majorEthnicGroups: []
282
461
  },
283
462
  NA: {
284
463
  phoneCode: 264,
285
464
  capitalCity: "Windhoek",
465
+ colonialMaster: "",
466
+ countryCode: "NA",
286
467
  flagEmoji: "\u{1F1F3}\u{1F1E6}",
287
468
  name: "Namibia",
288
469
  currency: "Namibian Dollar",
289
- officialLanguage: null
470
+ currencyCode: "NAD",
471
+ currencySymbol: "$",
472
+ officialLanguage: null,
473
+ majorEthnicGroups: []
290
474
  },
291
475
  NE: {
292
476
  phoneCode: 227,
293
477
  capitalCity: "Niamey",
478
+ colonialMaster: "",
479
+ countryCode: "NE",
294
480
  flagEmoji: "\u{1F1F3}\u{1F1EA}",
295
481
  name: "Niger",
296
482
  currency: "West African CFA franc",
297
- officialLanguage: "French"
483
+ currencyCode: "XOF",
484
+ currencySymbol: "Fr",
485
+ officialLanguage: "French",
486
+ majorEthnicGroups: []
298
487
  },
299
488
  NG: {
300
489
  phoneCode: 234,
301
490
  capitalCity: "Abuja",
491
+ colonialMaster: "",
492
+ countryCode: "NG",
302
493
  flagEmoji: "\u{1F1F3}\u{1F1EC}",
303
494
  name: "Nigeria",
304
495
  currency: "Nigerian naira",
305
- officialLanguage: "English"
496
+ currencyCode: "NGN",
497
+ currencySymbol: "\u20A6",
498
+ officialLanguage: "English",
499
+ majorEthnicGroups: ["Fulani", "Hausa", "Kanuri", "Ibibio", "Igbo", "Ijaw", "Tiv", "Yoruba"]
306
500
  },
307
501
  RW: {
308
502
  phoneCode: 250,
309
503
  capitalCity: "Kigali",
504
+ colonialMaster: "",
505
+ countryCode: "RW",
310
506
  flagEmoji: "\u{1F1F7}\u{1F1FC}",
311
507
  name: "Rwanda",
312
508
  currency: "Rwandan franc",
313
- officialLanguage: "Kinyarwanda"
509
+ currencyCode: "RWF",
510
+ currencySymbol: "Fr",
511
+ officialLanguage: "Kinyarwanda",
512
+ majorEthnicGroups: []
314
513
  },
315
514
  ST: {
316
515
  phoneCode: 239,
317
516
  capitalCity: "S\xE3o Tom\xE9",
517
+ colonialMaster: "",
518
+ countryCode: "ST",
318
519
  flagEmoji: "\u{1F1F8}\u{1F1F9}",
319
520
  name: "Sao Tome And Principe",
320
521
  currency: "Sao Tome and Principe dobra",
321
- officialLanguage: "Portuguese"
522
+ currencyCode: "STN",
523
+ currencySymbol: "Db",
524
+ officialLanguage: "Portuguese",
525
+ majorEthnicGroups: []
322
526
  },
323
527
  SN: {
324
528
  phoneCode: 221,
325
529
  capitalCity: "Dakar",
530
+ colonialMaster: "",
531
+ countryCode: "SN",
326
532
  flagEmoji: "\u{1F1F8}\u{1F1F3}",
327
533
  name: "Senegal",
328
534
  currency: "West African CFA franc",
329
- officialLanguage: "French"
535
+ currencyCode: "XOF",
536
+ currencySymbol: "Fr",
537
+ officialLanguage: "French",
538
+ majorEthnicGroups: []
330
539
  },
331
540
  SC: {
332
541
  phoneCode: 248,
333
542
  capitalCity: "Victoria",
543
+ colonialMaster: "",
544
+ countryCode: "SC",
334
545
  flagEmoji: "\u{1F1F8}\u{1F1E8}",
335
546
  name: "Seychelles",
336
547
  currency: "Seychellois rupee",
337
- officialLanguage: "Creole"
548
+ currencyCode: "SCR",
549
+ currencySymbol: "\u20A8",
550
+ officialLanguage: "Creole",
551
+ majorEthnicGroups: []
338
552
  },
339
553
  SL: {
340
554
  phoneCode: 232,
341
555
  capitalCity: "Freetown",
556
+ colonialMaster: "",
557
+ countryCode: "SL",
342
558
  flagEmoji: "\u{1F1F8}\u{1F1F1}",
343
559
  name: "Sierra Leone",
344
560
  currency: "Sierra Leonean leone",
345
- officialLanguage: "English"
561
+ currencyCode: "SLL",
562
+ currencySymbol: "Le",
563
+ officialLanguage: "English",
564
+ majorEthnicGroups: []
346
565
  },
347
566
  SO: {
348
567
  phoneCode: 252,
349
568
  capitalCity: "Mogadishu",
569
+ colonialMaster: "",
570
+ countryCode: "SO",
350
571
  flagEmoji: "\u{1F1F8}\u{1F1F4}",
351
572
  name: "Somalia",
352
573
  currency: "Somali shilling",
353
- officialLanguage: "Somali"
574
+ currencyCode: "SOS",
575
+ currencySymbol: "Sh",
576
+ officialLanguage: "Somali",
577
+ majorEthnicGroups: ["The Darood", "The Dir", "The Hawiye", "The Isaaq", "The Rahanweyn"]
354
578
  },
355
579
  ZA: {
356
580
  phoneCode: 27,
357
581
  capitalCity: "Pretoria / Cape Town",
582
+ colonialMaster: "",
583
+ countryCode: "ZA",
358
584
  flagEmoji: "\u{1F1FF}\u{1F1E6}",
359
585
  name: "South Africa",
360
586
  currency: "South African rand",
361
- officialLanguage: "IsiZulu"
587
+ currencyCode: "ZAR",
588
+ currencySymbol: "R",
589
+ officialLanguage: "IsiZulu",
590
+ majorEthnicGroups: []
362
591
  },
363
592
  SS: {
364
593
  phoneCode: 211,
365
594
  capitalCity: "Juba",
595
+ colonialMaster: "",
596
+ countryCode: "SS",
366
597
  flagEmoji: "\u{1F1F8}\u{1F1F8}",
367
598
  name: "South Sudan",
368
599
  currency: "South Sudanese Pound",
369
- officialLanguage: "Arabic"
600
+ currencyCode: "SSP",
601
+ currencySymbol: "\xA3",
602
+ officialLanguage: "Arabic",
603
+ majorEthnicGroups: []
370
604
  },
371
605
  SD: {
372
606
  phoneCode: 249,
373
607
  capitalCity: "Khartoum",
608
+ colonialMaster: "",
609
+ countryCode: "SD",
374
610
  flagEmoji: "\u{1F1F8}\u{1F1E9}",
375
611
  name: "Sudan",
376
612
  currency: "Sudanese Pound",
377
- officialLanguage: "Arabic"
613
+ currencyCode: "SDG",
614
+ currencySymbol: "\u062C.\u0633.",
615
+ officialLanguage: "Arabic",
616
+ majorEthnicGroups: []
378
617
  },
379
618
  SZ: {
380
619
  phoneCode: 268,
381
620
  capitalCity: "Mbabane",
621
+ colonialMaster: "",
622
+ countryCode: "SZ",
382
623
  flagEmoji: "\u{1F1F8}\u{1F1FF}",
383
624
  name: "Eswatini",
384
625
  currency: "Swazi lilangeni",
385
- officialLanguage: "English"
626
+ currencyCode: "SZL",
627
+ currencySymbol: "E",
628
+ officialLanguage: "English",
629
+ majorEthnicGroups: []
386
630
  },
387
631
  TZ: {
388
632
  phoneCode: 255,
389
633
  capitalCity: "Dodoma",
634
+ colonialMaster: "",
635
+ countryCode: "TZ",
390
636
  flagEmoji: "\u{1F1F9}\u{1F1FF}",
391
637
  name: "Tanzania",
392
638
  currency: "Tanzanian shilling",
393
- officialLanguage: "Kiswahili or Swahili"
639
+ currencyCode: "TZS",
640
+ currencySymbol: "TSh",
641
+ officialLanguage: "Kiswahili or Swahili",
642
+ majorEthnicGroups: ["Sukuma", "Nyamwezi", "Chaga", "Haya", "Makonde", "Zigua", "Wazaramo", "Ngoni"]
394
643
  },
395
644
  TG: {
396
645
  phoneCode: 228,
397
646
  capitalCity: "Lom\xE9",
647
+ colonialMaster: "",
648
+ countryCode: "TG",
398
649
  flagEmoji: "\u{1F1F9}\u{1F1EC}",
399
650
  name: "Togo",
400
651
  currency: "West African CFA franc",
401
- officialLanguage: "French"
652
+ currencyCode: "XOF",
653
+ currencySymbol: "Fr",
654
+ officialLanguage: "French",
655
+ majorEthnicGroups: []
402
656
  },
403
657
  TN: {
404
658
  phoneCode: 216,
405
659
  capitalCity: "Tunis",
660
+ colonialMaster: "",
661
+ countryCode: "TN",
406
662
  flagEmoji: "\u{1F1F9}\u{1F1F3}",
407
663
  name: "Tunisia",
408
664
  currency: "Tunisian dinar",
409
- officialLanguage: "Arabic"
665
+ currencyCode: "TND",
666
+ currencySymbol: "\u062F.\u062A",
667
+ officialLanguage: "Arabic",
668
+ majorEthnicGroups: []
410
669
  },
411
670
  UG: {
412
671
  phoneCode: 256,
413
672
  capitalCity: "Kampala",
673
+ colonialMaster: "",
674
+ countryCode: "UG",
414
675
  flagEmoji: "\u{1F1FA}\u{1F1EC}",
415
676
  name: "Uganda",
416
677
  currency: "Ugandan shilling",
417
- officialLanguage: "English"
678
+ currencyCode: "UGX",
679
+ currencySymbol: "USh",
680
+ officialLanguage: "English",
681
+ majorEthnicGroups: []
418
682
  },
419
683
  ZM: {
420
684
  phoneCode: 260,
421
685
  capitalCity: "Lusaka",
686
+ colonialMaster: "",
687
+ countryCode: "ZM",
422
688
  flagEmoji: "\u{1F1FF}\u{1F1F2}",
423
689
  name: "Zambia",
424
690
  currency: "Zambian kwacha",
425
- officialLanguage: "English"
691
+ currencyCode: "ZMW",
692
+ currencySymbol: "ZK",
693
+ officialLanguage: "English",
694
+ majorEthnicGroups: ["Bemba", "Chewa", "Kaonde", "Lamba", "Lozi", "Lunda", "Luvale", "Nsenga", "Tonga"]
426
695
  },
427
696
  ZW: {
428
697
  phoneCode: 263,
429
698
  capitalCity: "Harare",
699
+ colonialMaster: "",
700
+ countryCode: "ZW",
430
701
  flagEmoji: "\u{1F1FF}\u{1F1FC}",
431
702
  name: "Zimbabwe",
432
- currency: "United States Dollar",
433
- officialLanguage: "English"
703
+ currency: "Zimbabwean Dollar",
704
+ currencyCode: "ZWL",
705
+ currencySymbol: "$",
706
+ officialLanguage: "English",
707
+ majorEthnicGroups: []
434
708
  }
435
709
  };
436
710
 
711
+ // import("./data/africa/tribes/**/*.json") in src/index.ts
712
+ var globImport_data_africa_tribes_json = __glob({
713
+ "./data/africa/tribes/AO.json": () => import("./AO-LQ4VRH4F.mjs"),
714
+ "./data/africa/tribes/BF.json": () => import("./BF-BZ7WXNF3.mjs"),
715
+ "./data/africa/tribes/BI.json": () => import("./BI-DLK4YMGO.mjs"),
716
+ "./data/africa/tribes/BJ.json": () => import("./BJ-PNML7KGU.mjs"),
717
+ "./data/africa/tribes/BW.json": () => import("./BW-CNU7L4NH.mjs"),
718
+ "./data/africa/tribes/CD.json": () => import("./CD-3L2NXQVL.mjs"),
719
+ "./data/africa/tribes/CF.json": () => import("./CF-ESX77N6V.mjs"),
720
+ "./data/africa/tribes/CG.json": () => import("./CG-VO3X7LDQ.mjs"),
721
+ "./data/africa/tribes/CI.json": () => import("./CI-GS6CFDT3.mjs"),
722
+ "./data/africa/tribes/CM.json": () => import("./CM-BTFLGGR5.mjs"),
723
+ "./data/africa/tribes/CV.json": () => import("./CV-B7NIY45I.mjs"),
724
+ "./data/africa/tribes/DJ.json": () => import("./DJ-ZMQOBOIG.mjs"),
725
+ "./data/africa/tribes/DZ.json": () => import("./DZ-LPE6ZB5C.mjs"),
726
+ "./data/africa/tribes/EG.json": () => import("./EG-S75L33PX.mjs"),
727
+ "./data/africa/tribes/ER.json": () => import("./ER-UP22LPAH.mjs"),
728
+ "./data/africa/tribes/ET.json": () => import("./ET-OBCUOADT.mjs"),
729
+ "./data/africa/tribes/GA.json": () => import("./GA-MAVC3U4Q.mjs"),
730
+ "./data/africa/tribes/GH.json": () => import("./GH-6ZWTNM6E.mjs"),
731
+ "./data/africa/tribes/GM.json": () => import("./GM-3TYRGF43.mjs"),
732
+ "./data/africa/tribes/GN.json": () => import("./GN-J26OKD3H.mjs"),
733
+ "./data/africa/tribes/GQ.json": () => import("./GQ-TVJPRBZ4.mjs"),
734
+ "./data/africa/tribes/GW.json": () => import("./GW-BXXBSDB3.mjs"),
735
+ "./data/africa/tribes/KE.json": () => import("./KE-FR37ZDM6.mjs"),
736
+ "./data/africa/tribes/KM.json": () => import("./KM-2T7XZQOW.mjs"),
737
+ "./data/africa/tribes/LR.json": () => import("./LR-SDYDWBD2.mjs"),
738
+ "./data/africa/tribes/LS.json": () => import("./LS-WW7EJFSS.mjs"),
739
+ "./data/africa/tribes/LY.json": () => import("./LY-GLNCPO5D.mjs"),
740
+ "./data/africa/tribes/MA.json": () => import("./MA-TSZB2KUC.mjs"),
741
+ "./data/africa/tribes/MG.json": () => import("./MG-V4B3MJ27.mjs"),
742
+ "./data/africa/tribes/ML.json": () => import("./ML-5UC2UZFE.mjs"),
743
+ "./data/africa/tribes/MR.json": () => import("./MR-V7C27OIX.mjs"),
744
+ "./data/africa/tribes/MU.json": () => import("./MU-2QTJWWOZ.mjs"),
745
+ "./data/africa/tribes/MW.json": () => import("./MW-QHGL2IKS.mjs"),
746
+ "./data/africa/tribes/MZ.json": () => import("./MZ-5UZ67NUU.mjs"),
747
+ "./data/africa/tribes/NA.json": () => import("./NA-5VDTGOMK.mjs"),
748
+ "./data/africa/tribes/NE.json": () => import("./NE-ZOWNVUFW.mjs"),
749
+ "./data/africa/tribes/NG.json": () => import("./NG-6QW6RXJE.mjs"),
750
+ "./data/africa/tribes/RW.json": () => import("./RW-GQU5ZEII.mjs"),
751
+ "./data/africa/tribes/SC.json": () => import("./SC-SY5UMMU2.mjs"),
752
+ "./data/africa/tribes/SD.json": () => import("./SD-GZVFH7EN.mjs"),
753
+ "./data/africa/tribes/SL.json": () => import("./SL-G6OQ2OKF.mjs"),
754
+ "./data/africa/tribes/SN.json": () => import("./SN-6NZD3VMK.mjs"),
755
+ "./data/africa/tribes/SO.json": () => import("./SO-OYCQEJXC.mjs"),
756
+ "./data/africa/tribes/SS.json": () => import("./SS-VC4OP4LH.mjs"),
757
+ "./data/africa/tribes/ST.json": () => import("./ST-W5CRCMYC.mjs"),
758
+ "./data/africa/tribes/SZ.json": () => import("./SZ-WPJM53Q7.mjs"),
759
+ "./data/africa/tribes/TD.json": () => import("./TD-T6K52QM6.mjs"),
760
+ "./data/africa/tribes/TG.json": () => import("./TG-4GRO64UZ.mjs"),
761
+ "./data/africa/tribes/TN.json": () => import("./TN-KZ7WMICO.mjs"),
762
+ "./data/africa/tribes/TZ.json": () => import("./TZ-MR6WGF2A.mjs"),
763
+ "./data/africa/tribes/UG.json": () => import("./UG-UNMXRIJ5.mjs"),
764
+ "./data/africa/tribes/ZA.json": () => import("./ZA-RNKH3KHE.mjs"),
765
+ "./data/africa/tribes/ZM.json": () => import("./ZM-KVDEVKJK.mjs"),
766
+ "./data/africa/tribes/ZW.json": () => import("./ZW-EFGG3D6Y.mjs")
767
+ });
768
+
437
769
  // src/index.ts
438
- function getAllAfricaCountries() {
439
- return african_countries_default;
770
+ async function getTribeData(countryCode) {
771
+ const jsonTribesData = await globImport_data_africa_tribes_json(`./data/africa/tribes/${countryCode}.json`);
772
+ return Object.values(jsonTribesData[countryCode]);
773
+ }
774
+ async function getCountries() {
775
+ const countries = Object.keys(countries_default).map((item) => ({
776
+ ...countries_default[item],
777
+ countryCode: item
778
+ }));
779
+ return countries;
780
+ }
781
+ async function getCountriesAndTribalData(countryCode) {
782
+ const countries = await getCountries();
783
+ const tribeData = await getTribeData(countryCode);
784
+ const embeddedData = countries.map((item) => ({
785
+ ...item,
786
+ tribalDistribution: tribeData
787
+ }));
788
+ return embeddedData;
789
+ }
790
+ async function getCountry(countryCode) {
791
+ const countries = await getCountries();
792
+ const selectCountry = countries.find(
793
+ (item) => item.countryCode === countryCode
794
+ );
795
+ if (selectCountry) return selectCountry;
796
+ return {};
797
+ }
798
+ async function getCountryAndTribalData(countryCode) {
799
+ const country = await getCountry(countryCode);
800
+ const tribes = await getTribeData(countryCode);
801
+ if (Object.keys(country).length > 0) {
802
+ return {
803
+ ...country,
804
+ tribalDistribution: tribes
805
+ };
806
+ }
807
+ return {};
808
+ }
809
+ async function getTribesByCountry(countryCode) {
810
+ const tribes = await getTribeData(countryCode);
811
+ return tribes;
440
812
  }
441
813
  export {
442
- getAllAfricaCountries
814
+ getCountries,
815
+ getCountriesAndTribalData,
816
+ getCountry,
817
+ getCountryAndTribalData,
818
+ getTribesByCountry
443
819
  };