forked from potsda.mn/mobilizon
d61f1f7689
And enable gd locale Signed-off-by: Thomas Citharel <tcit@tcit.fr>
12 lines
213 B
TypeScript
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;
|
|
}
|