Hotkeys and view mode kvs

This commit is contained in:
Gregory Schier
2023-03-16 09:24:28 -07:00
parent 5a6acb24d9
commit 0949de66bf
14 changed files with 239 additions and 38 deletions

6
src-web/lib/pluralize.ts Normal file
View File

@@ -0,0 +1,6 @@
export function pluralize(word: string, count: number): string {
if (count === 1) {
return word;
}
return `${word}s`;
}