From a110c200e86d2325af07167531fac0f61d9681a0 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Fri, 26 Dec 2025 18:41:26 +0100 Subject: Switch to GUI to manage the library Allow to regroup the CLI and the view into one unique tool. --- library/client/lib/i18n.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 library/client/lib/i18n.ts (limited to 'library/client/lib/i18n.ts') diff --git a/library/client/lib/i18n.ts b/library/client/lib/i18n.ts deleted file mode 100644 index 3716367..0000000 --- a/library/client/lib/i18n.ts +++ /dev/null @@ -1,14 +0,0 @@ -export function unit( - n: number, - singular: string, - plural: string, - f: (n: number, unit: string) => string = format -): string { - return n > 1 - ? f(n, plural) - : f(n, singular) -} - -function format(n: number, unit: string): string { - return `${n} ${unit}` -} -- cgit v1.2.3