From 3f738c49b356fefd022be26ddbaee23b74e7f41f Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Tue, 17 Sep 2024 23:35:33 +0200 Subject: [PATCH] review(send): plural for utxo label in Payment Confirm Modal --- src/components/PaymentConfirmModal.tsx | 4 ++-- src/i18n/locales/en/translation.json | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/PaymentConfirmModal.tsx b/src/components/PaymentConfirmModal.tsx index 6ff551a3..d5202ad4 100644 --- a/src/components/PaymentConfirmModal.tsx +++ b/src/components/PaymentConfirmModal.tsx @@ -69,10 +69,10 @@ const ReviewUtxos = ({ settings, availableUtxos, isSweep }: ReviewUtxosProps) => const allUtxosAreUsed = isSweep || availableUtxos.length === 1 return ( - + {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')} diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json index b4eb6d17..f3698e40 100644 --- a/src/i18n/locales/en/translation.json +++ b/src/i18n/locales/en/translation.json @@ -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",