@formatjs/intl-pluralrules 6.3.2 → 6.3.4

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/polyfill.iife.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { supportedLocales } from "@formatjs_generated/cldr.supported-locales/intl-pluralrules.js";
1
2
  //#region packages/ecma402-abstract/CanonicalizeLocaleList.js
2
3
  /**
3
4
  * http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
@@ -3003,7 +3004,7 @@ const regions = {
3003
3004
  "VG",
3004
3005
  "VI"
3005
3006
  ],
3006
- EU: [
3007
+ "EU": [
3007
3008
  "AT",
3008
3009
  "BE",
3009
3010
  "BG",
@@ -3033,7 +3034,7 @@ const regions = {
3033
3034
  "SI",
3034
3035
  "SK"
3035
3036
  ],
3036
- EZ: [
3037
+ "EZ": [
3037
3038
  "AT",
3038
3039
  "BE",
3039
3040
  "CY",
@@ -3055,7 +3056,7 @@ const regions = {
3055
3056
  "SI",
3056
3057
  "SK"
3057
3058
  ],
3058
- QO: [
3059
+ "QO": [
3059
3060
  "AC",
3060
3061
  "AQ",
3061
3062
  "CP",
@@ -3063,7 +3064,7 @@ const regions = {
3063
3064
  "QO",
3064
3065
  "TA"
3065
3066
  ],
3066
- UN: [
3067
+ "UN": [
3067
3068
  "AD",
3068
3069
  "AE",
3069
3070
  "AF",
@@ -3529,6 +3530,7 @@ function findBestMatch(requestedLocales, supportedLocales, threshold = DEFAULT_M
3529
3530
  } catch {}
3530
3531
  }
3531
3532
  if (result.matchedSupportedLocale && lowestDistance === 0) return result;
3533
+ lowestDistance = Infinity;
3532
3534
  requestedLocales.forEach((desired, i) => {
3533
3535
  if (!result.distances[desired]) result.distances[desired] = {};
3534
3536
  canonicalizedSupportedLocales.forEach((canonicalLocale, supportedIndex) => {
@@ -5276,225 +5278,6 @@ try {
5276
5278
  });
5277
5279
  } catch {}
5278
5280
  //#endregion
5279
- //#region packages/intl-pluralrules/supported-locales.generated.ts
5280
- const supportedLocales = [
5281
- "af",
5282
- "ak",
5283
- "am",
5284
- "an",
5285
- "ar",
5286
- "ars",
5287
- "as",
5288
- "asa",
5289
- "ast",
5290
- "az",
5291
- "bal",
5292
- "be",
5293
- "bem",
5294
- "bez",
5295
- "bg",
5296
- "bho",
5297
- "bm",
5298
- "bn",
5299
- "bo",
5300
- "br",
5301
- "brx",
5302
- "bs",
5303
- "ca",
5304
- "ce",
5305
- "ceb",
5306
- "cgg",
5307
- "chr",
5308
- "ckb",
5309
- "cs",
5310
- "cy",
5311
- "da",
5312
- "de",
5313
- "doi",
5314
- "dsb",
5315
- "dv",
5316
- "dz",
5317
- "ee",
5318
- "el",
5319
- "en",
5320
- "eo",
5321
- "es",
5322
- "et",
5323
- "eu",
5324
- "fa",
5325
- "ff",
5326
- "fi",
5327
- "fil",
5328
- "fo",
5329
- "fr",
5330
- "fur",
5331
- "fy",
5332
- "ga",
5333
- "gd",
5334
- "gl",
5335
- "gsw",
5336
- "gu",
5337
- "guw",
5338
- "gv",
5339
- "ha",
5340
- "haw",
5341
- "he",
5342
- "hi",
5343
- "hnj",
5344
- "hr",
5345
- "hsb",
5346
- "hu",
5347
- "hy",
5348
- "ia",
5349
- "id",
5350
- "ig",
5351
- "ii",
5352
- "io",
5353
- "is",
5354
- "it",
5355
- "iu",
5356
- "ja",
5357
- "jbo",
5358
- "jgo",
5359
- "jmc",
5360
- "jv",
5361
- "jw",
5362
- "ka",
5363
- "kab",
5364
- "kaj",
5365
- "kcg",
5366
- "kde",
5367
- "kea",
5368
- "kk",
5369
- "kkj",
5370
- "kl",
5371
- "km",
5372
- "kn",
5373
- "ko",
5374
- "ks",
5375
- "ksb",
5376
- "ksh",
5377
- "ku",
5378
- "kw",
5379
- "ky",
5380
- "lag",
5381
- "lb",
5382
- "lg",
5383
- "lij",
5384
- "lkt",
5385
- "ln",
5386
- "lo",
5387
- "lt",
5388
- "lv",
5389
- "mas",
5390
- "mg",
5391
- "mgo",
5392
- "mk",
5393
- "ml",
5394
- "mn",
5395
- "mo",
5396
- "mr",
5397
- "ms",
5398
- "mt",
5399
- "my",
5400
- "nah",
5401
- "naq",
5402
- "nb",
5403
- "nd",
5404
- "ne",
5405
- "nl",
5406
- "nn",
5407
- "nnh",
5408
- "no",
5409
- "nqo",
5410
- "nr",
5411
- "nso",
5412
- "ny",
5413
- "nyn",
5414
- "om",
5415
- "or",
5416
- "os",
5417
- "osa",
5418
- "pa",
5419
- "pap",
5420
- "pcm",
5421
- "pl",
5422
- "prg",
5423
- "ps",
5424
- "pt",
5425
- "pt-PT",
5426
- "rm",
5427
- "ro",
5428
- "rof",
5429
- "ru",
5430
- "rwk",
5431
- "sah",
5432
- "saq",
5433
- "sat",
5434
- "sc",
5435
- "scn",
5436
- "sd",
5437
- "sdh",
5438
- "se",
5439
- "seh",
5440
- "ses",
5441
- "sg",
5442
- "sh",
5443
- "shi",
5444
- "si",
5445
- "sk",
5446
- "sl",
5447
- "sma",
5448
- "smi",
5449
- "smj",
5450
- "smn",
5451
- "sms",
5452
- "sn",
5453
- "so",
5454
- "sq",
5455
- "sr",
5456
- "ss",
5457
- "ssy",
5458
- "st",
5459
- "su",
5460
- "sv",
5461
- "sw",
5462
- "syr",
5463
- "ta",
5464
- "te",
5465
- "teo",
5466
- "th",
5467
- "ti",
5468
- "tig",
5469
- "tk",
5470
- "tl",
5471
- "tn",
5472
- "to",
5473
- "tpi",
5474
- "tr",
5475
- "ts",
5476
- "tzm",
5477
- "ug",
5478
- "uk",
5479
- "und",
5480
- "ur",
5481
- "uz",
5482
- "ve",
5483
- "vi",
5484
- "vo",
5485
- "vun",
5486
- "wa",
5487
- "wae",
5488
- "wo",
5489
- "xh",
5490
- "xog",
5491
- "yi",
5492
- "yo",
5493
- "yue",
5494
- "zh",
5495
- "zu"
5496
- ];
5497
- //#endregion
5498
5281
  //#region packages/intl-pluralrules/should-polyfill.ts
5499
5282
  function supportedLocalesOf(locale) {
5500
5283
  if (!locale) return true;
package/polyfill.js CHANGED
@@ -1119,7 +1119,7 @@ try {
1119
1119
  });
1120
1120
  } catch {}
1121
1121
  //#endregion
1122
- //#region packages/intl-pluralrules/supported-locales.generated.ts
1122
+ //#region node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-pluralrules.js
1123
1123
  const supportedLocales = [
1124
1124
  "af",
1125
1125
  "ak",