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/features | |
| 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/features')
| -rw-r--r-- | src/features/ark.js | 4 |
1 files changed, 3 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 |
