aboutsummaryrefslogtreecommitdiff
path: root/library/client/lib/i18n.ts
diff options
context:
space:
mode:
authorJoris Guyonvarch2025-12-26 18:41:26 +0100
committerJoris Guyonvarch2025-12-27 20:41:44 +0100
commita110c200e86d2325af07167531fac0f61d9681a0 (patch)
tree90e843f915a2e153ba735849afd83710d90560bf /library/client/lib/i18n.ts
parenta26d92ad5055fa057647158eb79511e7b1841162 (diff)
Switch to GUI to manage the library
Allow to regroup the CLI and the view into one unique tool.
Diffstat (limited to 'library/client/lib/i18n.ts')
-rw-r--r--library/client/lib/i18n.ts14
1 files changed, 0 insertions, 14 deletions
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}`
-}