ranges.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. const a = (start, end) => "other";
  2. const b = (start, end) => (start === "other" && end === "one") ? "one" : "other";
  3. const c = (start, end) => end || "other";
  4. (function (root, pluralRanges) {
  5. Object.defineProperty(pluralRanges, '__esModule', { value: true });
  6. if (typeof define === 'function' && define.amd) define(pluralRanges);
  7. else if (typeof exports === 'object') module.exports = pluralRanges;
  8. else root.pluralRanges = pluralRanges;
  9. }(this, {
  10. af: a,
  11. ak: b,
  12. am: c,
  13. an: a,
  14. ar: (start, end) => (
  15. end === "few" ? "few"
  16. : end === "many" ? "many"
  17. : (start === "zero" && end === "one") ? "zero"
  18. : (start === "zero" && end === "two") ? "zero"
  19. : "other"
  20. ),
  21. as: c,
  22. az: c,
  23. be: c,
  24. bg: a,
  25. bn: c,
  26. bs: c,
  27. ca: a,
  28. cs: c,
  29. cy: c,
  30. da: c,
  31. de: c,
  32. el: c,
  33. en: a,
  34. es: a,
  35. et: a,
  36. eu: a,
  37. fa: b,
  38. fi: a,
  39. fil: c,
  40. fr: c,
  41. ga: c,
  42. gl: c,
  43. gsw: c,
  44. gu: c,
  45. he: a,
  46. hi: c,
  47. hr: c,
  48. hu: c,
  49. hy: c,
  50. ia: a,
  51. id: a,
  52. io: a,
  53. is: c,
  54. it: c,
  55. ja: a,
  56. ka: (start, end) => start || "other",
  57. kk: c,
  58. km: a,
  59. kn: c,
  60. ko: a,
  61. ky: c,
  62. lij: c,
  63. lo: a,
  64. lt: c,
  65. lv: (start, end) => end === "one" ? "one" : "other",
  66. mk: a,
  67. ml: c,
  68. mn: c,
  69. mr: c,
  70. ms: a,
  71. my: a,
  72. nb: a,
  73. ne: c,
  74. nl: c,
  75. no: a,
  76. or: b,
  77. pa: c,
  78. pcm: a,
  79. pl: c,
  80. ps: c,
  81. pt: c,
  82. ro: (start, end) => end === "few" ? "few" : end === "one" ? "few" : "other",
  83. ru: c,
  84. sc: c,
  85. scn: c,
  86. sd: b,
  87. si: (start, end) => (start === "one" && end === "one") ? "one" : "other",
  88. sk: c,
  89. sl: (start, end) => (
  90. end === "few" ? "few"
  91. : end === "one" ? "few"
  92. : end === "two" ? "two"
  93. : "other"
  94. ),
  95. sq: c,
  96. sr: c,
  97. sv: a,
  98. sw: c,
  99. ta: c,
  100. te: c,
  101. th: a,
  102. tk: c,
  103. tr: c,
  104. ug: c,
  105. uk: c,
  106. ur: a,
  107. uz: c,
  108. vi: a,
  109. yue: a,
  110. zh: a,
  111. zu: c
  112. }));