@nka212bg/backend-utils 0.1.15 → 0.1.16

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 (2) hide show
  1. package/location/localelib.js +197 -119
  2. package/package.json +1 -1
@@ -92,6 +92,203 @@ exports.timeZones = {
92
92
  };
93
93
 
94
94
  exports.locales = {
95
+ CA: {
96
+ country_name: "Canada",
97
+ capital: "Ottawa",
98
+ continent_code: "NA",
99
+ currency: "CAD",
100
+ phone_code: "+1",
101
+ country_code: "CA",
102
+ currency_simbol: "CA$",
103
+ currency_symbol_native: "$",
104
+ currency_name: "Canadian dollars",
105
+ timeZone: "-6.00",
106
+ isoCode3: "CAN",
107
+ languageCode: "en",
108
+ languageName: "English",
109
+ languageNameNative: "English",
110
+ languageNameSimple: "English",
111
+ regions: {
112
+ AB: { regionName: "Alberta", GST: 5 },
113
+ BC: { regionName: "British Columbia", GST: 5, PST: 7 },
114
+ MB: { regionName: "Manitoba", GST: 5, PST: 7 },
115
+ NB: { regionName: "New Brunswick", HST: 15 },
116
+ NL: { regionName: "Newfoundland & Labrador", HST: 15 },
117
+ NT: { regionName: "Northwest Territories", GST: 5 },
118
+ NS: { regionName: "Nova Scotia", HST: 14 },
119
+ NU: { regionName: "Nunavut", GST: 5 },
120
+ ON: { regionName: "Ontario", HST: 13 },
121
+ PE: { regionName: "Prince Edward Island", HST: 15 },
122
+ QC: { regionName: "Quebec", GST: 5, PST: 9.975 },
123
+ SK: { regionName: "Saskatchewan", GST: 5, PST: 6 },
124
+ YT: { regionName: "Yukon", GST: 5 },
125
+ },
126
+ },
127
+ US: {
128
+ country_name: "United States",
129
+ capital: "Washington",
130
+ continent_code: "NA",
131
+ currency: "USD",
132
+ phone_code: "+1",
133
+ country_code: "US",
134
+ currency_simbol: "$",
135
+ currency_symbol_native: "$",
136
+ currency_name: "US dollars",
137
+ timeZone: "-6.00",
138
+ isoCode3: "USA",
139
+ languageCode: "lkt",
140
+ languageName: "English",
141
+ languageNameNative: "English",
142
+ languageNameSimple: "English",
143
+ regions: {
144
+ AA: { regionName: "Armed Forces Americas" },
145
+ AE: { regionName: "Armed Forces Europe, Middle East, & Canada" },
146
+ AK: { regionName: "Alaska" },
147
+ AL: { regionName: "Alabama" },
148
+ AP: { regionName: "Armed Forces Pacific" },
149
+ AR: { regionName: "Arkansas" },
150
+ AS: { regionName: "American Samoa" },
151
+ AZ: { regionName: "Arizona" },
152
+ CA: { regionName: "California" },
153
+ CO: { regionName: "Colorado" },
154
+ CT: { regionName: "Connecticut" },
155
+ DC: { regionName: "District of Columbia" },
156
+ DE: { regionName: "Delaware" },
157
+ FL: { regionName: "Florida" },
158
+ FM: { regionName: "Federated States of Micronesia" },
159
+ GA: { regionName: "Georgia" },
160
+ GU: { regionName: "Guam" },
161
+ HI: { regionName: "Hawaii" },
162
+ IA: { regionName: "Iowa" },
163
+ ID: { regionName: "Idaho" },
164
+ IL: { regionName: "Illinois" },
165
+ IN: { regionName: "Indiana" },
166
+ KS: { regionName: "Kansas" },
167
+ KY: { regionName: "Kentucky" },
168
+ LA: { regionName: "Louisiana" },
169
+ MA: { regionName: "Massachusetts" },
170
+ MD: { regionName: "Maryland" },
171
+ ME: { regionName: "Maine" },
172
+ MH: { regionName: "Marshall Islands" },
173
+ MI: { regionName: "Michigan" },
174
+ MN: { regionName: "Minnesota" },
175
+ MO: { regionName: "Missouri" },
176
+ MP: { regionName: "Northern Mariana Islands" },
177
+ MS: { regionName: "Mississippi" },
178
+ MT: { regionName: "Montana" },
179
+ NC: { regionName: "North Carolina" },
180
+ ND: { regionName: "North Dakota" },
181
+ NE: { regionName: "Nebraska" },
182
+ NH: { regionName: "New Hampshire" },
183
+ NJ: { regionName: "New Jersey" },
184
+ NM: { regionName: "New Mexico" },
185
+ NV: { regionName: "Nevada" },
186
+ NY: { regionName: "New York" },
187
+ OH: { regionName: "Ohio" },
188
+ OK: { regionName: "Oklahoma" },
189
+ OR: { regionName: "Oregon" },
190
+ PA: { regionName: "Pennsylvania" },
191
+ PR: { regionName: "Puerto Rico" },
192
+ PW: { regionName: "Palau" },
193
+ RI: { regionName: "Rhode Island" },
194
+ SC: { regionName: "South Carolina" },
195
+ SD: { regionName: "South Dakota" },
196
+ TN: { regionName: "Tennessee" },
197
+ TX: { regionName: "Texas" },
198
+ UT: { regionName: "Utah" },
199
+ VA: { regionName: "Virginia" },
200
+ VT: { regionName: "Vermont" },
201
+ WA: { regionName: "Washington" },
202
+ WI: { regionName: "Wisconsin" },
203
+ WV: { regionName: "West Virginia" },
204
+ WY: { regionName: "Wyoming" },
205
+ },
206
+ },
207
+ GB: {
208
+ country_name: "United Kingdom",
209
+ capital: "London",
210
+ continent_code: "EU",
211
+ currency: "GBP",
212
+ phone_code: "+44",
213
+ country_code: "GB",
214
+ currency_simbol: "£",
215
+ currency_symbol_native: "£",
216
+ currency_name: "British pounds sterling",
217
+ timeZone: "0.00",
218
+ isoCode3: "GBR",
219
+ languageCode: "en",
220
+ languageName: "English",
221
+ languageNameNative: "English",
222
+ languageNameSimple: "English",
223
+ },
224
+ FR: {
225
+ country_name: "France",
226
+ capital: "Paris",
227
+ continent_code: "EU",
228
+ currency: "EUR",
229
+ phone_code: "+33",
230
+ country_code: "FR",
231
+ currency_simbol: "€",
232
+ currency_symbol_native: "€",
233
+ currency_name: "euros",
234
+ timeZone: "1.00",
235
+ isoCode3: "FRA",
236
+ languageCode: "gsw",
237
+ languageName: "French",
238
+ languageNameNative: "Français",
239
+ languageNameSimple: "French",
240
+ },
241
+ DE: {
242
+ country_name: "Germany",
243
+ capital: "Berlin",
244
+ continent_code: "EU",
245
+ currency: "EUR",
246
+ phone_code: "+49",
247
+ country_code: "DE",
248
+ currency_simbol: "€",
249
+ currency_symbol_native: "€",
250
+ currency_name: "euros",
251
+ timeZone: "1.00",
252
+ isoCode3: "DEU",
253
+ languageCode: "nds",
254
+ languageName: "German",
255
+ languageNameNative: "German",
256
+ languageNameSimple: "German",
257
+ },
258
+ AU: {
259
+ country_name: "Australia",
260
+ capital: "Canberra",
261
+ continent_code: "OC",
262
+ currency: "AUD",
263
+ phone_code: "+61",
264
+ country_code: "AU",
265
+ currency_simbol: "AU$",
266
+ currency_symbol_native: "$",
267
+ currency_name: "Australian dollars",
268
+ timeZone: "10.00",
269
+ isoCode3: "AUS",
270
+ languageCode: "en",
271
+ languageName: "English",
272
+ languageNameNative: "English",
273
+ languageNameSimple: "English",
274
+ },
275
+ ZA: {
276
+ country_name: "South Africa",
277
+ capital: "Pretoria",
278
+ continent_code: "AF",
279
+ currency: "ZAR",
280
+ phone_code: "+27",
281
+ country_code: "ZA",
282
+ currency_simbol: "R",
283
+ currency_symbol_native: "R",
284
+ currency_name: "South African rand",
285
+ timeZone: "2.00",
286
+ isoCode3: "ZAF",
287
+ languageCode: "zu",
288
+ languageNameSimple: "English",
289
+ languageName: "English",
290
+ languageNameNative: "Zulu",
291
+ },
95
292
  AD: {
96
293
  country_name: "Andorra",
97
294
  capital: "Andorra la Vella",
@@ -296,23 +493,6 @@ exports.locales = {
296
493
  languageNameNative: "English",
297
494
  languageNameSimple: "English",
298
495
  },
299
- AU: {
300
- country_name: "Australia",
301
- capital: "Canberra",
302
- continent_code: "OC",
303
- currency: "AUD",
304
- phone_code: "+61",
305
- country_code: "AU",
306
- currency_simbol: "AU$",
307
- currency_symbol_native: "$",
308
- currency_name: "Australian dollars",
309
- timeZone: "10.00",
310
- isoCode3: "AUS",
311
- languageCode: "en",
312
- languageName: "English",
313
- languageNameNative: "English",
314
- languageNameSimple: "English",
315
- },
316
496
  AW: {
317
497
  country_name: "Aruba",
318
498
  capital: "Oranjestad",
@@ -718,23 +898,6 @@ exports.locales = {
718
898
  languageNameNative: "español, castellano",
719
899
  languageNameSimple: "Spanish",
720
900
  },
721
- CA: {
722
- country_name: "Canada",
723
- capital: "Ottawa",
724
- continent_code: "NA",
725
- currency: "CAD",
726
- phone_code: "+1",
727
- country_code: "CA",
728
- currency_simbol: "CA$",
729
- currency_symbol_native: "$",
730
- currency_name: "Canadian dollars",
731
- timeZone: "-6.00",
732
- isoCode3: "CAN",
733
- languageCode: "en",
734
- languageName: "English",
735
- languageNameNative: "English",
736
- languageNameSimple: "English",
737
- },
738
901
  CC: {
739
902
  country_name: "Cocos Islands",
740
903
  capital: "West Island",
@@ -1039,23 +1202,6 @@ exports.locales = {
1039
1202
  languageNameNative: "česky, čeština",
1040
1203
  languageNameSimple: "Czech",
1041
1204
  },
1042
- DE: {
1043
- country_name: "Germany",
1044
- capital: "Berlin",
1045
- continent_code: "EU",
1046
- currency: "EUR",
1047
- phone_code: "+49",
1048
- country_code: "DE",
1049
- currency_simbol: "€",
1050
- currency_symbol_native: "€",
1051
- currency_name: "euros",
1052
- timeZone: "1.00",
1053
- isoCode3: "DEU",
1054
- languageCode: "nds",
1055
- languageName: "German",
1056
- languageNameNative: "German",
1057
- languageNameSimple: "German",
1058
- },
1059
1205
  DJ: {
1060
1206
  country_name: "Djibouti",
1061
1207
  capital: "Djibouti",
@@ -1345,23 +1491,6 @@ exports.locales = {
1345
1491
  languageNameNative: "føroyskt",
1346
1492
  languageNameSimple: "Faroese",
1347
1493
  },
1348
- FR: {
1349
- country_name: "France",
1350
- capital: "Paris",
1351
- continent_code: "EU",
1352
- currency: "EUR",
1353
- phone_code: "+33",
1354
- country_code: "FR",
1355
- currency_simbol: "€",
1356
- currency_symbol_native: "€",
1357
- currency_name: "euros",
1358
- timeZone: "1.00",
1359
- isoCode3: "FRA",
1360
- languageCode: "gsw",
1361
- languageName: "French",
1362
- languageNameNative: "Français",
1363
- languageNameSimple: "French",
1364
- },
1365
1494
  GA: {
1366
1495
  country_name: "Gabon",
1367
1496
  capital: "Libreville",
@@ -1379,23 +1508,6 @@ exports.locales = {
1379
1508
  languageNameNative: "français, langue française",
1380
1509
  languageNameSimple: "French",
1381
1510
  },
1382
- GB: {
1383
- country_name: "United Kingdom",
1384
- capital: "London",
1385
- continent_code: "EU",
1386
- currency: "GBP",
1387
- phone_code: "+44",
1388
- country_code: "GB",
1389
- currency_simbol: "£",
1390
- currency_symbol_native: "£",
1391
- currency_name: "British pounds sterling",
1392
- timeZone: "0.00",
1393
- isoCode3: "GBR",
1394
- languageCode: "en",
1395
- languageName: "English",
1396
- languageNameNative: "English",
1397
- languageNameSimple: "English",
1398
- },
1399
1511
  GD: {
1400
1512
  country_name: "Grenada",
1401
1513
  capital: "St. George's",
@@ -4037,23 +4149,6 @@ exports.locales = {
4037
4149
  languageNameNative: "English",
4038
4150
  languageNameSimple: "English",
4039
4151
  },
4040
- US: {
4041
- country_name: "United States",
4042
- capital: "Washington",
4043
- continent_code: "NA",
4044
- currency: "USD",
4045
- phone_code: "+1",
4046
- country_code: "US",
4047
- currency_simbol: "$",
4048
- currency_symbol_native: "$",
4049
- currency_name: "US dollars",
4050
- timeZone: "-6.00",
4051
- isoCode3: "USA",
4052
- languageCode: "lkt",
4053
- languageName: "English",
4054
- languageNameNative: "English",
4055
- languageNameSimple: "English",
4056
- },
4057
4152
  UY: {
4058
4153
  country_name: "Uruguay",
4059
4154
  capital: "Montevideo",
@@ -4308,23 +4403,6 @@ exports.locales = {
4308
4403
  languageNameNative: "српски језик",
4309
4404
  languageNameSimple: "Serbian",
4310
4405
  },
4311
- ZA: {
4312
- country_name: "South Africa",
4313
- capital: "Pretoria",
4314
- continent_code: "AF",
4315
- currency: "ZAR",
4316
- phone_code: "+27",
4317
- country_code: "ZA",
4318
- currency_simbol: "R",
4319
- currency_symbol_native: "R",
4320
- currency_name: "South African rand",
4321
- timeZone: "2.00",
4322
- isoCode3: "ZAF",
4323
- languageCode: "zu",
4324
- languageNameSimple: "English",
4325
- languageName: "English",
4326
- languageNameNative: "Zulu",
4327
- },
4328
4406
  ZM: {
4329
4407
  country_name: "Zambia",
4330
4408
  capital: "Lusaka",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nka212bg/backend-utils",
3
3
  "author": "nka212bg",
4
- "version": "0.1.15",
4
+ "version": "0.1.16",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "@maxmind/geoip2-node": "^5.0.0",