From 49b7004ce7f19fdaa1d06b0e580188e11c47ff6d Mon Sep 17 00:00:00 2001 From: coyotte508 Date: Fri, 25 Sep 2026 21:51:26 +0200 Subject: [PATCH] Review viewer translations in context across supported languages --- package.json | 2 +- packages/viewer/src/App.svelte | 16 +- packages/viewer/src/lib/JournalEntry.svelte | 4 +- packages/viewer/src/localization/da.json | 169 +++++---- packages/viewer/src/localization/de.json | 151 ++++---- packages/viewer/src/localization/el.json | 181 ++++----- packages/viewer/src/localization/en.json | 11 +- packages/viewer/src/localization/fr.json | 325 +++++++++-------- packages/viewer/src/localization/hi.json | 383 ++++++++++---------- packages/viewer/src/localization/it.json | 221 +++++------ packages/viewer/src/localization/ko.json | 313 ++++++++-------- packages/viewer/src/localization/nl.json | 157 ++++---- packages/viewer/src/localization/pl.json | 131 +++---- packages/viewer/src/localization/pt-BR.json | 161 ++++---- packages/viewer/src/localization/ro.json | 293 +++++++-------- packages/viewer/src/localization/ru.json | 169 +++++---- packages/viewer/src/localization/runtime.js | 13 +- packages/viewer/src/localization/vi.json | 127 ++++--- packages/viewer/src/localization/zh-TW.json | 193 +++++----- scripts/localization.test.mjs | 18 + tests/localization-browser.mjs | 53 +++ 21 files changed, 1652 insertions(+), 1439 deletions(-) create mode 100644 tests/localization-browser.mjs diff --git a/package.json b/package.json index 234d42c..987edd2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "fmt": "oxfmt", "fmt:check": "oxfmt --check", "simulate": "pnpm --filter fuji-engine build && node scripts/simulate.mjs", - "test:browser": "node tests/browser-smoke.mjs && node tests/bgs-bundle-smoke.mjs && node tests/presentation-smoke.mjs && node tests/chat-smoke.mjs && node tests/mobile-readiness-smoke.mjs && node tests/chat-tabs-smoke.mjs && node tests/chat-mentions-smoke.mjs && node tests/protocol-lifecycle-smoke.mjs && node tests/tutorial-browser.mjs && node tests/analysis-chat-browser.mjs", + "test:browser": "node tests/browser-smoke.mjs && node tests/bgs-bundle-smoke.mjs && node tests/presentation-smoke.mjs && node tests/chat-smoke.mjs && node tests/mobile-readiness-smoke.mjs && node tests/chat-tabs-smoke.mjs && node tests/chat-mentions-smoke.mjs && node tests/protocol-lifecycle-smoke.mjs && node tests/tutorial-browser.mjs && node tests/analysis-chat-browser.mjs && node tests/localization-browser.mjs", "test:locales": "node scripts/check-locales.mjs packages/viewer/src/localization && node --test scripts/localization.test.mjs" }, "devDependencies": { diff --git a/packages/viewer/src/App.svelte b/packages/viewer/src/App.svelte index 1382a07..b8854f6 100644 --- a/packages/viewer/src/App.svelte +++ b/packages/viewer/src/App.svelte @@ -825,7 +825,9 @@ > {:else}
- {me.rerolls} reroll{me.rerolls === 1 ? "" : "s"} remaining + {me.rerolls === 1 ? `${me.rerolls} reroll remaining` : `${me.rerolls} rerolls remaining`} {#if me.rerolls}

Select any dice, then reroll them together.

{/if} @@ -1192,7 +1194,9 @@ class="secondary" disabled={store.waiting} onclick={() => store.dispatch({ action: "help", count })} - >Use {count} bar{count > 1 ? "s" : ""} · total {result.own + count}{count === 1 + ? `Use ${count} bar · total ${result.own + count}` + : `Use ${count} bars · total ${result.own + count}`}{/each}