make-plural 7.0.0 → 7.2.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/cardinals.d.ts +12 -11
- package/cardinals.js +50 -27
- package/cardinals.mjs +44 -22
- package/examples.d.ts +16 -15
- package/examples.js +47 -46
- package/examples.mjs +47 -46
- package/ordinals.d.ts +5 -3
- package/ordinals.js +10 -6
- package/ordinals.mjs +5 -3
- package/package.json +1 -1
- package/pluralCategories.d.ts +12 -11
- package/pluralCategories.js +63 -63
- package/pluralCategories.mjs +63 -63
- package/plurals.d.ts +11 -10
- package/plurals.js +50 -31
- package/plurals.mjs +44 -26
- package/ranges.d.ts +1 -1
- package/ranges.js +1 -7
- package/ranges.mjs +1 -7
package/cardinals.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const as: (n: number | string) => "one" | "other";
|
|
|
10
10
|
export const asa: (n: number | string) => "one" | "other";
|
|
11
11
|
export const ast: (n: number | string) => "one" | "other";
|
|
12
12
|
export const az: (n: number | string) => "one" | "other";
|
|
13
|
+
export const bal: (n: number | string) => "one" | "other";
|
|
13
14
|
export const be: (n: number | string) => "one" | "few" | "many" | "other";
|
|
14
15
|
export const bem: (n: number | string) => "one" | "other";
|
|
15
16
|
export const bez: (n: number | string) => "one" | "other";
|
|
@@ -21,7 +22,7 @@ export const bo: (n: number | string) => "other";
|
|
|
21
22
|
export const br: (n: number | string) => "one" | "two" | "few" | "many" | "other";
|
|
22
23
|
export const brx: (n: number | string) => "one" | "other";
|
|
23
24
|
export const bs: (n: number | string) => "one" | "few" | "other";
|
|
24
|
-
export const ca: (n: number | string) => "one" | "other";
|
|
25
|
+
export const ca: (n: number | string) => "one" | "many" | "other";
|
|
25
26
|
export const ce: (n: number | string) => "one" | "other";
|
|
26
27
|
export const ceb: (n: number | string) => "one" | "other";
|
|
27
28
|
export const cgg: (n: number | string) => "one" | "other";
|
|
@@ -39,7 +40,7 @@ export const ee: (n: number | string) => "one" | "other";
|
|
|
39
40
|
export const el: (n: number | string) => "one" | "other";
|
|
40
41
|
export const en: (n: number | string) => "one" | "other";
|
|
41
42
|
export const eo: (n: number | string) => "one" | "other";
|
|
42
|
-
export const es: (n: number | string) => "one" | "other";
|
|
43
|
+
export const es: (n: number | string) => "one" | "many" | "other";
|
|
43
44
|
export const et: (n: number | string) => "one" | "other";
|
|
44
45
|
export const eu: (n: number | string) => "one" | "other";
|
|
45
46
|
export const fa: (n: number | string) => "one" | "other";
|
|
@@ -59,8 +60,9 @@ export const guw: (n: number | string) => "one" | "other";
|
|
|
59
60
|
export const gv: (n: number | string) => "one" | "two" | "few" | "many" | "other";
|
|
60
61
|
export const ha: (n: number | string) => "one" | "other";
|
|
61
62
|
export const haw: (n: number | string) => "one" | "other";
|
|
62
|
-
export const he: (n: number | string) => "one" | "two" | "
|
|
63
|
+
export const he: (n: number | string) => "one" | "two" | "other";
|
|
63
64
|
export const hi: (n: number | string) => "one" | "other";
|
|
65
|
+
export const hnj: (n: number | string) => "other";
|
|
64
66
|
export const hr: (n: number | string) => "one" | "few" | "other";
|
|
65
67
|
export const hsb: (n: number | string) => "one" | "two" | "few" | "other";
|
|
66
68
|
export const hu: (n: number | string) => "one" | "other";
|
|
@@ -69,16 +71,13 @@ export const ia: (n: number | string) => "one" | "other";
|
|
|
69
71
|
export const id: (n: number | string) => "other";
|
|
70
72
|
export const ig: (n: number | string) => "other";
|
|
71
73
|
export const ii: (n: number | string) => "other";
|
|
72
|
-
export const _in: (n: number | string) => "other";
|
|
73
74
|
export const io: (n: number | string) => "one" | "other";
|
|
74
75
|
export const is: (n: number | string) => "one" | "other";
|
|
75
|
-
export const it: (n: number | string) => "one" | "other";
|
|
76
|
+
export const it: (n: number | string) => "one" | "many" | "other";
|
|
76
77
|
export const iu: (n: number | string) => "one" | "two" | "other";
|
|
77
|
-
export const iw: (n: number | string) => "one" | "two" | "many" | "other";
|
|
78
78
|
export const ja: (n: number | string) => "other";
|
|
79
79
|
export const jbo: (n: number | string) => "other";
|
|
80
80
|
export const jgo: (n: number | string) => "one" | "other";
|
|
81
|
-
export const ji: (n: number | string) => "one" | "other";
|
|
82
81
|
export const jmc: (n: number | string) => "one" | "other";
|
|
83
82
|
export const jv: (n: number | string) => "other";
|
|
84
83
|
export const jw: (n: number | string) => "other";
|
|
@@ -118,7 +117,7 @@ export const mn: (n: number | string) => "one" | "other";
|
|
|
118
117
|
export const mo: (n: number | string) => "one" | "few" | "other";
|
|
119
118
|
export const mr: (n: number | string) => "one" | "other";
|
|
120
119
|
export const ms: (n: number | string) => "other";
|
|
121
|
-
export const mt: (n: number | string) => "one" | "few" | "many" | "other";
|
|
120
|
+
export const mt: (n: number | string) => "one" | "two" | "few" | "many" | "other";
|
|
122
121
|
export const my: (n: number | string) => "other";
|
|
123
122
|
export const nah: (n: number | string) => "one" | "other";
|
|
124
123
|
export const naq: (n: number | string) => "one" | "two" | "other";
|
|
@@ -144,12 +143,11 @@ export const pcm: (n: number | string) => "one" | "other";
|
|
|
144
143
|
export const pl: (n: number | string) => "one" | "few" | "many" | "other";
|
|
145
144
|
export const prg: (n: number | string) => "zero" | "one" | "other";
|
|
146
145
|
export const ps: (n: number | string) => "one" | "other";
|
|
147
|
-
export const pt: (n: number | string) => "one" | "other";
|
|
148
|
-
export const pt_PT: (n: number | string) => "one" | "other";
|
|
146
|
+
export const pt: (n: number | string) => "one" | "many" | "other";
|
|
147
|
+
export const pt_PT: (n: number | string) => "one" | "many" | "other";
|
|
149
148
|
export const rm: (n: number | string) => "one" | "other";
|
|
150
149
|
export const ro: (n: number | string) => "one" | "few" | "other";
|
|
151
150
|
export const rof: (n: number | string) => "one" | "other";
|
|
152
|
-
export const root: (n: number | string) => "other";
|
|
153
151
|
export const ru: (n: number | string) => "one" | "few" | "many" | "other";
|
|
154
152
|
export const rwk: (n: number | string) => "one" | "other";
|
|
155
153
|
export const sah: (n: number | string) => "other";
|
|
@@ -194,14 +192,17 @@ export const tk: (n: number | string) => "one" | "other";
|
|
|
194
192
|
export const tl: (n: number | string) => "one" | "other";
|
|
195
193
|
export const tn: (n: number | string) => "one" | "other";
|
|
196
194
|
export const to: (n: number | string) => "other";
|
|
195
|
+
export const tpi: (n: number | string) => "other";
|
|
197
196
|
export const tr: (n: number | string) => "one" | "other";
|
|
198
197
|
export const ts: (n: number | string) => "one" | "other";
|
|
199
198
|
export const tzm: (n: number | string) => "one" | "other";
|
|
200
199
|
export const ug: (n: number | string) => "one" | "other";
|
|
201
200
|
export const uk: (n: number | string) => "one" | "few" | "many" | "other";
|
|
201
|
+
export const und: (n: number | string) => "other";
|
|
202
202
|
export const ur: (n: number | string) => "one" | "other";
|
|
203
203
|
export const uz: (n: number | string) => "one" | "other";
|
|
204
204
|
export const ve: (n: number | string) => "one" | "other";
|
|
205
|
+
export const vec: (n: number | string) => "one" | "many" | "other";
|
|
205
206
|
export const vi: (n: number | string) => "other";
|
|
206
207
|
export const vo: (n: number | string) => "one" | "other";
|
|
207
208
|
export const vun: (n: number | string) => "one" | "other";
|
package/cardinals.js
CHANGED
|
@@ -16,8 +16,6 @@ const f = (n) => n == 1 ? 'one'
|
|
|
16
16
|
else if (typeof exports === 'object') module.exports = plurals;
|
|
17
17
|
else root.plurals = plurals;
|
|
18
18
|
}(this, {
|
|
19
|
-
_in: e,
|
|
20
|
-
|
|
21
19
|
af: a,
|
|
22
20
|
|
|
23
21
|
ak: b,
|
|
@@ -54,6 +52,8 @@ ast: d,
|
|
|
54
52
|
|
|
55
53
|
az: a,
|
|
56
54
|
|
|
55
|
+
bal: a,
|
|
56
|
+
|
|
57
57
|
be: (n) => {
|
|
58
58
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
59
59
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
@@ -94,7 +94,12 @@ bs: (n) => {
|
|
|
94
94
|
: 'other';
|
|
95
95
|
},
|
|
96
96
|
|
|
97
|
-
ca:
|
|
97
|
+
ca: (n) => {
|
|
98
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
99
|
+
return n == 1 && v0 ? 'one'
|
|
100
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
101
|
+
: 'other';
|
|
102
|
+
},
|
|
98
103
|
|
|
99
104
|
ce: a,
|
|
100
105
|
|
|
@@ -153,7 +158,12 @@ en: d,
|
|
|
153
158
|
|
|
154
159
|
eo: a,
|
|
155
160
|
|
|
156
|
-
es:
|
|
161
|
+
es: (n) => {
|
|
162
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
163
|
+
return n == 1 ? 'one'
|
|
164
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
165
|
+
: 'other';
|
|
166
|
+
},
|
|
157
167
|
|
|
158
168
|
et: d,
|
|
159
169
|
|
|
@@ -222,15 +232,16 @@ ha: a,
|
|
|
222
232
|
haw: a,
|
|
223
233
|
|
|
224
234
|
he: (n) => {
|
|
225
|
-
const s = String(n).split('.'), i = s[0], v0 = !s[1]
|
|
226
|
-
return
|
|
235
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
236
|
+
return i == 1 && v0 || i == 0 && !v0 ? 'one'
|
|
227
237
|
: i == 2 && v0 ? 'two'
|
|
228
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
229
238
|
: 'other';
|
|
230
239
|
},
|
|
231
240
|
|
|
232
241
|
hi: c,
|
|
233
242
|
|
|
243
|
+
hnj: e,
|
|
244
|
+
|
|
234
245
|
hr: (n) => {
|
|
235
246
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
|
|
236
247
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
@@ -261,30 +272,25 @@ ii: e,
|
|
|
261
272
|
io: d,
|
|
262
273
|
|
|
263
274
|
is: (n) => {
|
|
264
|
-
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
265
|
-
return t0 && i10 == 1 && i100 != 11 ||
|
|
275
|
+
const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
276
|
+
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
|
|
266
277
|
},
|
|
267
278
|
|
|
268
|
-
it:
|
|
269
|
-
|
|
270
|
-
iu: f,
|
|
271
|
-
|
|
272
|
-
iw: (n) => {
|
|
273
|
-
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
279
|
+
it: (n) => {
|
|
280
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
274
281
|
return n == 1 && v0 ? 'one'
|
|
275
|
-
: i ==
|
|
276
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
282
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
277
283
|
: 'other';
|
|
278
284
|
},
|
|
279
285
|
|
|
286
|
+
iu: f,
|
|
287
|
+
|
|
280
288
|
ja: e,
|
|
281
289
|
|
|
282
290
|
jbo: e,
|
|
283
291
|
|
|
284
292
|
jgo: a,
|
|
285
293
|
|
|
286
|
-
ji: d,
|
|
287
|
-
|
|
288
294
|
jmc: a,
|
|
289
295
|
|
|
290
296
|
jv: e,
|
|
@@ -389,7 +395,7 @@ mn: a,
|
|
|
389
395
|
mo: (n) => {
|
|
390
396
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
391
397
|
return n == 1 && v0 ? 'one'
|
|
392
|
-
: !v0 || n == 0 || (n100 >=
|
|
398
|
+
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
393
399
|
: 'other';
|
|
394
400
|
},
|
|
395
401
|
|
|
@@ -400,7 +406,8 @@ ms: e,
|
|
|
400
406
|
mt: (n) => {
|
|
401
407
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
402
408
|
return n == 1 ? 'one'
|
|
403
|
-
: n ==
|
|
409
|
+
: n == 2 ? 'two'
|
|
410
|
+
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
|
|
404
411
|
: (n100 >= 11 && n100 <= 19) ? 'many'
|
|
405
412
|
: 'other';
|
|
406
413
|
},
|
|
@@ -467,25 +474,30 @@ prg: (n) => {
|
|
|
467
474
|
ps: a,
|
|
468
475
|
|
|
469
476
|
pt: (n) => {
|
|
470
|
-
const s = String(n).split('.'), i = s[0];
|
|
471
|
-
return (i == 0 || i == 1) ? 'one'
|
|
477
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
478
|
+
return (i == 0 || i == 1) ? 'one'
|
|
479
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
480
|
+
: 'other';
|
|
472
481
|
},
|
|
473
482
|
|
|
474
|
-
pt_PT:
|
|
483
|
+
pt_PT: (n) => {
|
|
484
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
485
|
+
return n == 1 && v0 ? 'one'
|
|
486
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
487
|
+
: 'other';
|
|
488
|
+
},
|
|
475
489
|
|
|
476
490
|
rm: a,
|
|
477
491
|
|
|
478
492
|
ro: (n) => {
|
|
479
493
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
480
494
|
return n == 1 && v0 ? 'one'
|
|
481
|
-
: !v0 || n == 0 || (n100 >=
|
|
495
|
+
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
482
496
|
: 'other';
|
|
483
497
|
},
|
|
484
498
|
|
|
485
499
|
rof: a,
|
|
486
500
|
|
|
487
|
-
root: e,
|
|
488
|
-
|
|
489
501
|
ru: (n) => {
|
|
490
502
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
491
503
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
@@ -613,6 +625,8 @@ tn: a,
|
|
|
613
625
|
|
|
614
626
|
to: e,
|
|
615
627
|
|
|
628
|
+
tpi: e,
|
|
629
|
+
|
|
616
630
|
tr: a,
|
|
617
631
|
|
|
618
632
|
ts: a,
|
|
@@ -632,12 +646,21 @@ uk: (n) => {
|
|
|
632
646
|
: 'other';
|
|
633
647
|
},
|
|
634
648
|
|
|
649
|
+
und: e,
|
|
650
|
+
|
|
635
651
|
ur: d,
|
|
636
652
|
|
|
637
653
|
uz: a,
|
|
638
654
|
|
|
639
655
|
ve: a,
|
|
640
656
|
|
|
657
|
+
vec: (n) => {
|
|
658
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
659
|
+
return n == 1 && v0 ? 'one'
|
|
660
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
661
|
+
: 'other';
|
|
662
|
+
},
|
|
663
|
+
|
|
641
664
|
vi: e,
|
|
642
665
|
|
|
643
666
|
vo: a,
|
package/cardinals.mjs
CHANGED
|
@@ -10,7 +10,6 @@ const f = (n) => n == 1 ? 'one'
|
|
|
10
10
|
: n == 2 ? 'two'
|
|
11
11
|
: 'other';
|
|
12
12
|
|
|
13
|
-
export const _in = e;
|
|
14
13
|
export const af = a;
|
|
15
14
|
export const ak = b;
|
|
16
15
|
export const am = c;
|
|
@@ -37,6 +36,7 @@ export const as = c;
|
|
|
37
36
|
export const asa = a;
|
|
38
37
|
export const ast = d;
|
|
39
38
|
export const az = a;
|
|
39
|
+
export const bal = a;
|
|
40
40
|
export const be = (n) => {
|
|
41
41
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
42
42
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
@@ -66,7 +66,12 @@ export const bs = (n) => {
|
|
|
66
66
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
67
67
|
: 'other';
|
|
68
68
|
};
|
|
69
|
-
export const ca =
|
|
69
|
+
export const ca = (n) => {
|
|
70
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
71
|
+
return n == 1 && v0 ? 'one'
|
|
72
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
73
|
+
: 'other';
|
|
74
|
+
};
|
|
70
75
|
export const ce = a;
|
|
71
76
|
export const ceb = (n) => {
|
|
72
77
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
@@ -107,7 +112,12 @@ export const ee = a;
|
|
|
107
112
|
export const el = a;
|
|
108
113
|
export const en = d;
|
|
109
114
|
export const eo = a;
|
|
110
|
-
export const es =
|
|
115
|
+
export const es = (n) => {
|
|
116
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
117
|
+
return n == 1 ? 'one'
|
|
118
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
119
|
+
: 'other';
|
|
120
|
+
};
|
|
111
121
|
export const et = d;
|
|
112
122
|
export const eu = a;
|
|
113
123
|
export const fa = c;
|
|
@@ -156,13 +166,13 @@ export const gv = (n) => {
|
|
|
156
166
|
export const ha = a;
|
|
157
167
|
export const haw = a;
|
|
158
168
|
export const he = (n) => {
|
|
159
|
-
const s = String(n).split('.'), i = s[0], v0 = !s[1]
|
|
160
|
-
return
|
|
169
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
170
|
+
return i == 1 && v0 || i == 0 && !v0 ? 'one'
|
|
161
171
|
: i == 2 && v0 ? 'two'
|
|
162
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
163
172
|
: 'other';
|
|
164
173
|
};
|
|
165
174
|
export const hi = c;
|
|
175
|
+
export const hnj = e;
|
|
166
176
|
export const hr = (n) => {
|
|
167
177
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
|
|
168
178
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
@@ -184,22 +194,19 @@ export const ig = e;
|
|
|
184
194
|
export const ii = e;
|
|
185
195
|
export const io = d;
|
|
186
196
|
export const is = (n) => {
|
|
187
|
-
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
188
|
-
return t0 && i10 == 1 && i100 != 11 ||
|
|
197
|
+
const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
198
|
+
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
|
|
189
199
|
};
|
|
190
|
-
export const it =
|
|
191
|
-
|
|
192
|
-
export const iw = (n) => {
|
|
193
|
-
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
200
|
+
export const it = (n) => {
|
|
201
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
194
202
|
return n == 1 && v0 ? 'one'
|
|
195
|
-
: i ==
|
|
196
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
203
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
197
204
|
: 'other';
|
|
198
205
|
};
|
|
206
|
+
export const iu = f;
|
|
199
207
|
export const ja = e;
|
|
200
208
|
export const jbo = e;
|
|
201
209
|
export const jgo = a;
|
|
202
|
-
export const ji = d;
|
|
203
210
|
export const jmc = a;
|
|
204
211
|
export const jv = e;
|
|
205
212
|
export const jw = e;
|
|
@@ -268,7 +275,7 @@ export const mn = a;
|
|
|
268
275
|
export const mo = (n) => {
|
|
269
276
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
270
277
|
return n == 1 && v0 ? 'one'
|
|
271
|
-
: !v0 || n == 0 || (n100 >=
|
|
278
|
+
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
272
279
|
: 'other';
|
|
273
280
|
};
|
|
274
281
|
export const mr = a;
|
|
@@ -276,7 +283,8 @@ export const ms = e;
|
|
|
276
283
|
export const mt = (n) => {
|
|
277
284
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
278
285
|
return n == 1 ? 'one'
|
|
279
|
-
: n ==
|
|
286
|
+
: n == 2 ? 'two'
|
|
287
|
+
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
|
|
280
288
|
: (n100 >= 11 && n100 <= 19) ? 'many'
|
|
281
289
|
: 'other';
|
|
282
290
|
};
|
|
@@ -317,19 +325,25 @@ export const prg = (n) => {
|
|
|
317
325
|
};
|
|
318
326
|
export const ps = a;
|
|
319
327
|
export const pt = (n) => {
|
|
320
|
-
const s = String(n).split('.'), i = s[0];
|
|
321
|
-
return (i == 0 || i == 1) ? 'one'
|
|
328
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
329
|
+
return (i == 0 || i == 1) ? 'one'
|
|
330
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
331
|
+
: 'other';
|
|
332
|
+
};
|
|
333
|
+
export const pt_PT = (n) => {
|
|
334
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
335
|
+
return n == 1 && v0 ? 'one'
|
|
336
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
337
|
+
: 'other';
|
|
322
338
|
};
|
|
323
|
-
export const pt_PT = d;
|
|
324
339
|
export const rm = a;
|
|
325
340
|
export const ro = (n) => {
|
|
326
341
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
327
342
|
return n == 1 && v0 ? 'one'
|
|
328
|
-
: !v0 || n == 0 || (n100 >=
|
|
343
|
+
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
329
344
|
: 'other';
|
|
330
345
|
};
|
|
331
346
|
export const rof = a;
|
|
332
|
-
export const root = e;
|
|
333
347
|
export const ru = (n) => {
|
|
334
348
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
335
349
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
@@ -413,6 +427,7 @@ export const tl = (n) => {
|
|
|
413
427
|
};
|
|
414
428
|
export const tn = a;
|
|
415
429
|
export const to = e;
|
|
430
|
+
export const tpi = e;
|
|
416
431
|
export const tr = a;
|
|
417
432
|
export const ts = a;
|
|
418
433
|
export const tzm = (n) => {
|
|
@@ -427,9 +442,16 @@ export const uk = (n) => {
|
|
|
427
442
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
428
443
|
: 'other';
|
|
429
444
|
};
|
|
445
|
+
export const und = e;
|
|
430
446
|
export const ur = d;
|
|
431
447
|
export const uz = a;
|
|
432
448
|
export const ve = a;
|
|
449
|
+
export const vec = (n) => {
|
|
450
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
451
|
+
return n == 1 && v0 ? 'one'
|
|
452
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
453
|
+
: 'other';
|
|
454
|
+
};
|
|
433
455
|
export const vi = e;
|
|
434
456
|
export const vo = a;
|
|
435
457
|
export const vun = a;
|