@nka212bg/backend-utils 0.1.15 → 0.1.17

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 +236 -119
  2. package/package.json +2 -2
@@ -92,6 +92,242 @@ 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: {
113
+ regionName: "Alberta",
114
+ tax: { GST: 5 },
115
+ },
116
+ BC: {
117
+ regionName: "British Columbia",
118
+ tax: { GST: 5, PST: 7 },
119
+ },
120
+ MB: {
121
+ regionName: "Manitoba",
122
+ tax: { GST: 5, PST: 7 },
123
+ },
124
+ NB: {
125
+ regionName: "New Brunswick",
126
+ tax: { HST: 15 },
127
+ },
128
+ NL: {
129
+ regionName: "Newfoundland & Labrador",
130
+ tax: { HST: 15 },
131
+ },
132
+ NT: {
133
+ regionName: "Northwest Territories",
134
+ tax: { GST: 5 },
135
+ },
136
+ NS: {
137
+ regionName: "Nova Scotia",
138
+ tax: { HST: 14 },
139
+ },
140
+ NU: {
141
+ regionName: "Nunavut",
142
+ tax: { GST: 5 },
143
+ },
144
+ ON: {
145
+ regionName: "Ontario",
146
+ tax: { HST: 13 },
147
+ },
148
+ PE: {
149
+ regionName: "Prince Edward Island",
150
+ tax: { HST: 15 },
151
+ },
152
+ QC: {
153
+ regionName: "Quebec",
154
+ tax: { GST: 5, PST: 9.975 },
155
+ },
156
+ SK: {
157
+ regionName: "Saskatchewan",
158
+ tax: { GST: 5, PST: 6 },
159
+ },
160
+ YT: {
161
+ regionName: "Yukon",
162
+ tax: { GST: 5 },
163
+ },
164
+ },
165
+ },
166
+ US: {
167
+ country_name: "United States",
168
+ capital: "Washington",
169
+ continent_code: "NA",
170
+ currency: "USD",
171
+ phone_code: "+1",
172
+ country_code: "US",
173
+ currency_simbol: "$",
174
+ currency_symbol_native: "$",
175
+ currency_name: "US dollars",
176
+ timeZone: "-6.00",
177
+ isoCode3: "USA",
178
+ languageCode: "lkt",
179
+ languageName: "English",
180
+ languageNameNative: "English",
181
+ languageNameSimple: "English",
182
+ regions: {
183
+ AA: { regionName: "Armed Forces Americas" },
184
+ AE: { regionName: "Armed Forces Europe, Middle East, & Canada" },
185
+ AK: { regionName: "Alaska" },
186
+ AL: { regionName: "Alabama" },
187
+ AP: { regionName: "Armed Forces Pacific" },
188
+ AR: { regionName: "Arkansas" },
189
+ AS: { regionName: "American Samoa" },
190
+ AZ: { regionName: "Arizona" },
191
+ CA: { regionName: "California" },
192
+ CO: { regionName: "Colorado" },
193
+ CT: { regionName: "Connecticut" },
194
+ DC: { regionName: "District of Columbia" },
195
+ DE: { regionName: "Delaware" },
196
+ FL: { regionName: "Florida" },
197
+ FM: { regionName: "Federated States of Micronesia" },
198
+ GA: { regionName: "Georgia" },
199
+ GU: { regionName: "Guam" },
200
+ HI: { regionName: "Hawaii" },
201
+ IA: { regionName: "Iowa" },
202
+ ID: { regionName: "Idaho" },
203
+ IL: { regionName: "Illinois" },
204
+ IN: { regionName: "Indiana" },
205
+ KS: { regionName: "Kansas" },
206
+ KY: { regionName: "Kentucky" },
207
+ LA: { regionName: "Louisiana" },
208
+ MA: { regionName: "Massachusetts" },
209
+ MD: { regionName: "Maryland" },
210
+ ME: { regionName: "Maine" },
211
+ MH: { regionName: "Marshall Islands" },
212
+ MI: { regionName: "Michigan" },
213
+ MN: { regionName: "Minnesota" },
214
+ MO: { regionName: "Missouri" },
215
+ MP: { regionName: "Northern Mariana Islands" },
216
+ MS: { regionName: "Mississippi" },
217
+ MT: { regionName: "Montana" },
218
+ NC: { regionName: "North Carolina" },
219
+ ND: { regionName: "North Dakota" },
220
+ NE: { regionName: "Nebraska" },
221
+ NH: { regionName: "New Hampshire" },
222
+ NJ: { regionName: "New Jersey" },
223
+ NM: { regionName: "New Mexico" },
224
+ NV: { regionName: "Nevada" },
225
+ NY: { regionName: "New York" },
226
+ OH: { regionName: "Ohio" },
227
+ OK: { regionName: "Oklahoma" },
228
+ OR: { regionName: "Oregon" },
229
+ PA: { regionName: "Pennsylvania" },
230
+ PR: { regionName: "Puerto Rico" },
231
+ PW: { regionName: "Palau" },
232
+ RI: { regionName: "Rhode Island" },
233
+ SC: { regionName: "South Carolina" },
234
+ SD: { regionName: "South Dakota" },
235
+ TN: { regionName: "Tennessee" },
236
+ TX: { regionName: "Texas" },
237
+ UT: { regionName: "Utah" },
238
+ VA: { regionName: "Virginia" },
239
+ VT: { regionName: "Vermont" },
240
+ WA: { regionName: "Washington" },
241
+ WI: { regionName: "Wisconsin" },
242
+ WV: { regionName: "West Virginia" },
243
+ WY: { regionName: "Wyoming" },
244
+ },
245
+ },
246
+ GB: {
247
+ country_name: "United Kingdom",
248
+ capital: "London",
249
+ continent_code: "EU",
250
+ currency: "GBP",
251
+ phone_code: "+44",
252
+ country_code: "GB",
253
+ currency_simbol: "£",
254
+ currency_symbol_native: "£",
255
+ currency_name: "British pounds sterling",
256
+ timeZone: "0.00",
257
+ isoCode3: "GBR",
258
+ languageCode: "en",
259
+ languageName: "English",
260
+ languageNameNative: "English",
261
+ languageNameSimple: "English",
262
+ },
263
+ FR: {
264
+ country_name: "France",
265
+ capital: "Paris",
266
+ continent_code: "EU",
267
+ currency: "EUR",
268
+ phone_code: "+33",
269
+ country_code: "FR",
270
+ currency_simbol: "€",
271
+ currency_symbol_native: "€",
272
+ currency_name: "euros",
273
+ timeZone: "1.00",
274
+ isoCode3: "FRA",
275
+ languageCode: "gsw",
276
+ languageName: "French",
277
+ languageNameNative: "Français",
278
+ languageNameSimple: "French",
279
+ },
280
+ DE: {
281
+ country_name: "Germany",
282
+ capital: "Berlin",
283
+ continent_code: "EU",
284
+ currency: "EUR",
285
+ phone_code: "+49",
286
+ country_code: "DE",
287
+ currency_simbol: "€",
288
+ currency_symbol_native: "€",
289
+ currency_name: "euros",
290
+ timeZone: "1.00",
291
+ isoCode3: "DEU",
292
+ languageCode: "nds",
293
+ languageName: "German",
294
+ languageNameNative: "German",
295
+ languageNameSimple: "German",
296
+ },
297
+ AU: {
298
+ country_name: "Australia",
299
+ capital: "Canberra",
300
+ continent_code: "OC",
301
+ currency: "AUD",
302
+ phone_code: "+61",
303
+ country_code: "AU",
304
+ currency_simbol: "AU$",
305
+ currency_symbol_native: "$",
306
+ currency_name: "Australian dollars",
307
+ timeZone: "10.00",
308
+ isoCode3: "AUS",
309
+ languageCode: "en",
310
+ languageName: "English",
311
+ languageNameNative: "English",
312
+ languageNameSimple: "English",
313
+ },
314
+ ZA: {
315
+ country_name: "South Africa",
316
+ capital: "Pretoria",
317
+ continent_code: "AF",
318
+ currency: "ZAR",
319
+ phone_code: "+27",
320
+ country_code: "ZA",
321
+ currency_simbol: "R",
322
+ currency_symbol_native: "R",
323
+ currency_name: "South African rand",
324
+ timeZone: "2.00",
325
+ isoCode3: "ZAF",
326
+ languageCode: "zu",
327
+ languageNameSimple: "English",
328
+ languageName: "English",
329
+ languageNameNative: "Zulu",
330
+ },
95
331
  AD: {
96
332
  country_name: "Andorra",
97
333
  capital: "Andorra la Vella",
@@ -296,23 +532,6 @@ exports.locales = {
296
532
  languageNameNative: "English",
297
533
  languageNameSimple: "English",
298
534
  },
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
535
  AW: {
317
536
  country_name: "Aruba",
318
537
  capital: "Oranjestad",
@@ -718,23 +937,6 @@ exports.locales = {
718
937
  languageNameNative: "español, castellano",
719
938
  languageNameSimple: "Spanish",
720
939
  },
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
940
  CC: {
739
941
  country_name: "Cocos Islands",
740
942
  capital: "West Island",
@@ -1039,23 +1241,6 @@ exports.locales = {
1039
1241
  languageNameNative: "česky, čeština",
1040
1242
  languageNameSimple: "Czech",
1041
1243
  },
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
1244
  DJ: {
1060
1245
  country_name: "Djibouti",
1061
1246
  capital: "Djibouti",
@@ -1345,23 +1530,6 @@ exports.locales = {
1345
1530
  languageNameNative: "føroyskt",
1346
1531
  languageNameSimple: "Faroese",
1347
1532
  },
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
1533
  GA: {
1366
1534
  country_name: "Gabon",
1367
1535
  capital: "Libreville",
@@ -1379,23 +1547,6 @@ exports.locales = {
1379
1547
  languageNameNative: "français, langue française",
1380
1548
  languageNameSimple: "French",
1381
1549
  },
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
1550
  GD: {
1400
1551
  country_name: "Grenada",
1401
1552
  capital: "St. George's",
@@ -4037,23 +4188,6 @@ exports.locales = {
4037
4188
  languageNameNative: "English",
4038
4189
  languageNameSimple: "English",
4039
4190
  },
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
4191
  UY: {
4058
4192
  country_name: "Uruguay",
4059
4193
  capital: "Montevideo",
@@ -4308,23 +4442,6 @@ exports.locales = {
4308
4442
  languageNameNative: "српски језик",
4309
4443
  languageNameSimple: "Serbian",
4310
4444
  },
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
4445
  ZM: {
4329
4446
  country_name: "Zambia",
4330
4447
  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.17",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "@maxmind/geoip2-node": "^5.0.0",
@@ -15,4 +15,4 @@
15
15
  "sharp": "^0.33.5",
16
16
  "ws": "^7.3.0"
17
17
  }
18
- }
18
+ }