Skip to content

Commit

Permalink
review(send): plural for utxo label in Payment Confirm Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Sep 17, 2024
1 parent 0abf65b commit 3f738c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/PaymentConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ const ReviewUtxos = ({ settings, availableUtxos, isSweep }: ReviewUtxosProps) =>
const allUtxosAreUsed = isSweep || availableUtxos.length === 1
return (
<rb.Row className="mt-2">
<rb.Col xs={4} md={3} className="text-end">
<rb.Col xs={4} md={3} className="d-flex align-items-center justify-content-end text-end">
<strong>
{allUtxosAreUsed
? t('send.confirm_send_modal.label_selected_utxos')
? t('send.confirm_send_modal.label_selected_utxos', { count: availableUtxos.length })
: t('send.confirm_send_modal.label_eligible_utxos')}
</strong>
</rb.Col>
Expand Down
7 changes: 4 additions & 3 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,10 @@
"text_miner_fee_in_targeted_blocks_other": "Using estimate for inclusion in next {{ count }} blocks",
"label_eligible_utxos": "Eligible UTXOs",
"description_eligible_utxos": "One or more of the following UTXOs will be included in the transaction: ",
"label_selected_utxos": "Selected UTXOs",
"description_selected_utxos_one": "The following UTXO will be included the transaction: ",
"description_selected_utxos_other": "The following UTXOs will be included the transaction: "
"label_selected_utxos_one": "Selected UTXO",
"label_selected_utxos_other": "Selected UTXOs",
"description_selected_utxos_one": "The following UTXO will be included in the transaction: ",
"description_selected_utxos_other": "The following UTXOs will be included in the transaction: "
},
"confirm_abort_modal": {
"title": "Abort payment",
Expand Down

0 comments on commit 3f738c4

Please sign in to comment.