diff options
| author | Adam Soltys <[email protected]> | 2026-08-30 18:33:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-30 18:33:40 -0700 |
| commit | bd4adcb87d1fe05ce9631b51ee529016eb71a154 (patch) | |
| tree | 746a2dbc30870c06d9c487ea8196830db486fdf3 /src | |
| parent | 72585de2b08ed02027111db6cd63eff47a3b10c7 (diff) | |
| download | coinosv3-bd4adcb87d1fe05ce9631b51ee529016eb71a154.tar.gz coinosv3-bd4adcb87d1fe05ce9631b51ee529016eb71a154.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src')
| -rw-r--r-- | src/features/ark.js | 4 | ||||
| -rw-r--r-- | src/i18n.js | 1 |
2 files changed, 4 insertions, 1 deletions
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}', |
