mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Add Slovenian plural rules.
This commit is contained in:
parent
6e93d712bd
commit
d39edf0309
1 changed files with 11 additions and 1 deletions
|
@ -490,7 +490,8 @@ const CARDINAL_TO_LANG = {
|
|||
polish: ['pl'],
|
||||
serbian: ['sr'],
|
||||
french: ['fr', 'pt'],
|
||||
russian: ['ru','uk']
|
||||
russian: ['ru','uk'],
|
||||
slov: ['sl']
|
||||
}
|
||||
|
||||
const CARDINAL_TYPES = {
|
||||
|
@ -524,6 +525,15 @@ const CARDINAL_TYPES = {
|
|||
|
||||
persian: (n, i) => (i === 0 || n === 1) ? 1 : 5,
|
||||
|
||||
slov(n, i, v) {
|
||||
if ( v !== 0 ) return 3;
|
||||
const n1 = n % 100;
|
||||
if ( n1 === 1 ) return 1;
|
||||
if ( n1 === 2 ) return 2;
|
||||
if ( n1 === 3 || n1 === 4 ) return 3;
|
||||
return 5;
|
||||
},
|
||||
|
||||
serbian(n, i, v, t) {
|
||||
if ( v !== 0 ) return 5;
|
||||
const i1 = i % 10, i2 = i % 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue