diff --git a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx index 86196f13d662..d68e56e36bc7 100644 --- a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx +++ b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx @@ -266,7 +266,7 @@ function MoneyRequestPreviewContent({ const getDisplayAmountText = (): string => { if (isScanning) { - return translate('iou.receiptScanning'); + return translate('iou.receiptScanning', {count: 1}); } if (isFetchingWaypointsFromServer && !requestAmount) { diff --git a/src/components/ReportActionItem/ReportPreview.tsx b/src/components/ReportActionItem/ReportPreview.tsx index a4ade8d77aa8..8b37bb4e2665 100644 --- a/src/components/ReportActionItem/ReportPreview.tsx +++ b/src/components/ReportActionItem/ReportPreview.tsx @@ -286,7 +286,7 @@ function ReportPreview({ return CurrencyUtils.convertToDisplayString(totalDisplaySpend, iouReport?.currency); } if (isScanning) { - return translate('iou.receiptScanning'); + return translate('iou.receiptScanning', {count: numberOfScanningReceipts}); } if (hasOnlyTransactionsWithPendingRoutes) { return translate('iou.fieldPending'); diff --git a/src/languages/en.ts b/src/languages/en.ts index e9a3a109f830..4688b8b49b9c 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -883,7 +883,10 @@ const translations = { pendingMatchWithCreditCardDescription: 'Receipt pending match with card transaction. Mark as cash to cancel.', markAsCash: 'Mark as cash', routePending: 'Route pending...', - receiptScanning: 'Receipt scanning...', + receiptScanning: () => ({ + one: 'Receipt scanning...', + other: 'Receipts scanning...', + }), receiptScanInProgress: 'Receipt scan in progress', receiptScanInProgressDescription: 'Receipt scan in progress. Check back later or enter the details now.', receiptIssuesFound: () => ({ diff --git a/src/languages/es.ts b/src/languages/es.ts index f6c3c4d34fbe..43b6be6189e2 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -883,7 +883,10 @@ const translations = { other: 'Problemas encontrados', }), fieldPending: 'Pendiente...', - receiptScanning: 'Escaneando recibo...', + receiptScanning: () => ({ + one: 'Escaneando recibo...', + other: 'Escaneando recibos...', + }), receiptScanInProgress: 'Escaneado de recibo en proceso', receiptScanInProgressDescription: 'Escaneado de recibo en proceso. Vuelve a comprobarlo más tarde o introduce los detalles ahora.', defaultRate: 'Tasa predeterminada', diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 33038e95d00d..d65d879125ef 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -3553,7 +3553,7 @@ function getTransactionReportName(reportAction: OnyxEntry