mobilizon.chapril.org-mobil.../js/src/i18n/pluralRules/gd.ts
Thomas Citharel d61f1f7689
Introduce custom plural rules
And enable gd locale

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-02 16:33:12 +01:00

12 lines
213 B
TypeScript

export default function (choice: number): number {
if (choice === 1 || choice === 11) {
return 0;
}
if (choice === 2 || choice === 12) {
return 1;
}
return choice > 0 && choice < 20 ? 2 : 3;
}