From bd4adcb87d1fe05ce9631b51ee529016eb71a154 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 30 Aug 2026 18:33:40 -0700 Subject: A lone coin reads as one: the coins page intro gets a singular form instead of '1 coins totalling' Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr --- src/features/ark.js | 4 +++- src/i18n.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/features/ark.js b/src/features/ark.js index 131ff1a..1fd49ae 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -1645,7 +1645,9 @@ export function arkFeature(ctx) { h('div', { class: 'card col', style: 'gap:8px' }, h('h3', { style: 'margin:0' }, t('arkCoinsTitle')), h('p', { class: 'small muted', style: 'margin:0' }, - t('arkCoinsIntro', { n: spend.length, total: fmtAmount(totalSat) + ' ' + unitLabel() })), + spend.length === 1 + ? t('arkCoinsIntroOne', { total: fmtAmount(totalSat) + ' ' + unitLabel() }) + : t('arkCoinsIntro', { n: spend.length, total: fmtAmount(totalSat) + ' ' + unitLabel() })), // One coin per row, two lines: the amount (with its renewal price on // the right — the number this page's action spends), then a faint // meta line. Five flexed columns fit a laptop but wrapped into diff --git a/src/i18n.js b/src/i18n.js index 2ce8bc1..375edaf 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -210,6 +210,7 @@ const STR = { arkSpentElsewhereN: '{n} coins', arkCoinsTitle: 'Spending coins', arkCoinsIntro: 'Your Spending balance lives in {n} coins totalling {total}. Each can be pulled on-chain without the server’s help — at a cost that grows with the coin’s history.', + arkCoinsIntroOne: 'Your Spending balance lives in a single coin of {total}. It can be pulled on-chain without the server’s help — at a cost that grows with the coin’s history.', arkCoinsRowMeta: '{exp} · depth {d} · exit fee {exit}', arkCoinsRowRenew: 'renew {fee}', arkCoinsExpIn: 'expires in {when}', -- cgit v1.2.3