make-plural 7.4.0 → 8.0.0

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/ranges.js CHANGED
@@ -2,202 +2,105 @@ const a = (start, end) => "other";
2
2
  const b = (start, end) => (start === "other" && end === "one") ? "one" : "other";
3
3
  const c = (start, end) => end || "other";
4
4
 
5
- (function (root, pluralRanges) {
6
- Object.defineProperty(pluralRanges, '__esModule', { value: true });
7
- if (typeof define === 'function' && define.amd) define(pluralRanges);
8
- else if (typeof exports === 'object') module.exports = pluralRanges;
9
- else root.pluralRanges = pluralRanges;
10
- }(this, {
11
- af: a,
12
-
13
- ak: b,
14
-
15
- am: c,
16
-
17
- an: a,
18
-
19
- ar: (start, end) => (
5
+ export const af = a;
6
+ export const ak = b;
7
+ export const am = c;
8
+ export const an = a;
9
+ export const ar = (start, end) => (
20
10
  end === "few" ? "few"
21
11
  : end === "many" ? "many"
22
12
  : (start === "zero" && end === "one") ? "zero"
23
13
  : (start === "zero" && end === "two") ? "zero"
24
14
  : "other"
25
- ),
26
-
27
- as: c,
28
-
29
- az: c,
30
-
31
- be: c,
32
-
33
- bg: a,
34
-
35
- bn: c,
36
-
37
- bs: c,
38
-
39
- ca: a,
40
-
41
- cs: c,
42
-
43
- cy: c,
44
-
45
- da: c,
46
-
47
- de: c,
48
-
49
- el: c,
50
-
51
- en: a,
52
-
53
- es: a,
54
-
55
- et: a,
56
-
57
- eu: a,
58
-
59
- fa: b,
60
-
61
- fi: a,
62
-
63
- fil: c,
64
-
65
- fr: c,
66
-
67
- ga: c,
68
-
69
- gl: c,
70
-
71
- gsw: c,
72
-
73
- gu: c,
74
-
75
- he: a,
76
-
77
- hi: c,
78
-
79
- hr: c,
80
-
81
- hu: c,
82
-
83
- hy: c,
84
-
85
- ia: a,
86
-
87
- id: a,
88
-
89
- io: a,
90
-
91
- is: c,
92
-
93
- it: c,
94
-
95
- ja: a,
96
-
97
- ka: (start, end) => start || "other",
98
-
99
- kk: c,
100
-
101
- km: a,
102
-
103
- kn: c,
104
-
105
- ko: a,
106
-
107
- ky: c,
108
-
109
- lij: c,
110
-
111
- lo: a,
112
-
113
- lt: c,
114
-
115
- lv: (start, end) => end === "one" ? "one" : "other",
116
-
117
- mk: a,
118
-
119
- ml: c,
120
-
121
- mn: c,
122
-
123
- mr: c,
124
-
125
- ms: a,
126
-
127
- my: a,
128
-
129
- nb: a,
130
-
131
- ne: c,
132
-
133
- nl: c,
134
-
135
- no: a,
136
-
137
- or: b,
138
-
139
- pa: c,
140
-
141
- pcm: a,
142
-
143
- pl: c,
144
-
145
- ps: c,
146
-
147
- pt: c,
148
-
149
- ro: (start, end) => end === "few" ? "few" : end === "one" ? "few" : "other",
150
-
151
- ru: c,
152
-
153
- sc: c,
154
-
155
- scn: c,
156
-
157
- sd: b,
158
-
159
- si: (start, end) => (start === "one" && end === "one") ? "one" : "other",
160
-
161
- sk: c,
162
-
163
- sl: (start, end) => (
15
+ );
16
+ export const as = c;
17
+ export const az = c;
18
+ export const be = c;
19
+ export const bg = a;
20
+ export const bn = c;
21
+ export const bs = c;
22
+ export const ca = a;
23
+ export const cs = c;
24
+ export const cy = c;
25
+ export const da = c;
26
+ export const de = c;
27
+ export const el = c;
28
+ export const en = a;
29
+ export const es = a;
30
+ export const et = a;
31
+ export const eu = a;
32
+ export const fa = b;
33
+ export const fi = a;
34
+ export const fil = c;
35
+ export const fr = c;
36
+ export const ga = c;
37
+ export const gl = c;
38
+ export const gsw = c;
39
+ export const gu = c;
40
+ export const he = a;
41
+ export const hi = c;
42
+ export const hr = c;
43
+ export const hu = c;
44
+ export const hy = c;
45
+ export const ia = a;
46
+ export const id = a;
47
+ export const io = a;
48
+ export const is = c;
49
+ export const it = c;
50
+ export const ja = a;
51
+ export const ka = (start, end) => start || "other";
52
+ export const kk = c;
53
+ export const km = a;
54
+ export const kn = c;
55
+ export const ko = a;
56
+ export const ky = c;
57
+ export const lij = c;
58
+ export const lo = a;
59
+ export const lt = c;
60
+ export const lv = (start, end) => end === "one" ? "one" : "other";
61
+ export const mk = a;
62
+ export const ml = c;
63
+ export const mn = c;
64
+ export const mr = c;
65
+ export const ms = a;
66
+ export const my = a;
67
+ export const nb = a;
68
+ export const ne = c;
69
+ export const nl = c;
70
+ export const no = a;
71
+ export const or = b;
72
+ export const pa = c;
73
+ export const pcm = a;
74
+ export const pl = c;
75
+ export const ps = c;
76
+ export const pt = c;
77
+ export const ro = (start, end) => end === "few" ? "few" : end === "one" ? "few" : "other";
78
+ export const ru = c;
79
+ export const sc = c;
80
+ export const scn = c;
81
+ export const sd = b;
82
+ export const si = (start, end) => (start === "one" && end === "one") ? "one" : "other";
83
+ export const sk = c;
84
+ export const sl = (start, end) => (
164
85
  end === "few" ? "few"
165
86
  : end === "one" ? "few"
166
87
  : end === "two" ? "two"
167
88
  : "other"
168
- ),
169
-
170
- sq: c,
171
-
172
- sr: c,
173
-
174
- sv: a,
175
-
176
- sw: c,
177
-
178
- ta: c,
179
-
180
- te: c,
181
-
182
- th: a,
183
-
184
- tk: c,
185
-
186
- tr: c,
187
-
188
- ug: c,
189
-
190
- uk: c,
191
-
192
- ur: a,
193
-
194
- uz: c,
195
-
196
- vi: a,
197
-
198
- yue: a,
199
-
200
- zh: a,
201
-
202
- zu: c
203
- }));
89
+ );
90
+ export const sq = c;
91
+ export const sr = c;
92
+ export const sv = a;
93
+ export const sw = c;
94
+ export const ta = c;
95
+ export const te = c;
96
+ export const th = a;
97
+ export const tk = c;
98
+ export const tr = c;
99
+ export const ug = c;
100
+ export const uk = c;
101
+ export const ur = a;
102
+ export const uz = c;
103
+ export const vi = a;
104
+ export const yue = a;
105
+ export const zh = a;
106
+ export const zu = c;