build: switch from yarn to npm to manage js dependencies and move js contents to root
yarn v1 is being deprecated and starts to have some issues Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
11
src/i18n/pluralRules/gd.ts
Normal file
11
src/i18n/pluralRules/gd.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
5
src/i18n/pluralRules/index.ts
Normal file
5
src/i18n/pluralRules/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import gd from "./gd";
|
||||
|
||||
export default {
|
||||
gd,
|
||||
};
|
||||
Reference in New Issue
Block a user