Skip to content

armgit / kanzo

Public Imported from GitHub
0

Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.

Keep English plurals when a translation is missing

emanuele-ema1ee022f03ef
diff --git a/src/app.js b/src/app.js
index 3ba28dd..62731c0 100644
--- a/src/app.js
+++ b/src/app.js
@@ -45,7 +45,7 @@ async function api(method, path, body) {
function plural(n, word) {
// In zh-CN the noun's translation carries its measure word: 个任务, 条评论, 台电脑.
- const w = LANG === "en" ? `${word}${n === 1 ? "" : "s"}` : tr(word);
+ const w = DICT?.[word] ?? `${word}${n === 1 ? "" : "s"}`;
return `${n} ${w}`;
}