From e5101df0b5985754f5185d78eb9bf31445d0a6d4 Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Thu, 9 Jan 2025 09:34:27 +0100 Subject: [PATCH] fix #54844 --- src/components/MoneyRequestConfirmationList.tsx | 6 +++--- src/languages/en.ts | 1 + src/languages/es.ts | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/MoneyRequestConfirmationList.tsx b/src/components/MoneyRequestConfirmationList.tsx index c470f0c50806..043d02d9a28f 100755 --- a/src/components/MoneyRequestConfirmationList.tsx +++ b/src/components/MoneyRequestConfirmationList.tsx @@ -429,16 +429,16 @@ function MoneyRequestConfirmationList({ text = translate('common.next'); } } else if (isTypeTrackExpense) { - text = translate('iou.trackExpense'); + text = translate('iou.createExpenseWithAmount', {amount: formattedAmount}); } else if (isTypeSplit && iouAmount === 0) { text = translate('iou.splitExpense'); } else if ((receiptPath && isTypeRequest) || isDistanceRequestWithPendingRoute || isPerDiemRequest) { text = translate('iou.submitExpense'); if (iouAmount !== 0) { - text = translate('iou.submitAmount', {amount: formattedAmount}); + text = translate('iou.createExpenseWithAmount', {amount: formattedAmount}); } } else { - const translationKey = isTypeSplit ? 'iou.splitAmount' : 'iou.submitAmount'; + const translationKey = isTypeSplit ? 'iou.splitAmount' : 'iou.createExpenseWithAmount'; text = translate(translationKey, {amount: formattedAmount}); } return [ diff --git a/src/languages/en.ts b/src/languages/en.ts index 1ff4ef4c0ae4..6480b7e779ea 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -870,6 +870,7 @@ const translations = { createExpense: 'Create expense', trackExpense: 'Track expense', chooseRecipient: 'Choose recipient', + createExpenseWithAmount: ({amount}: {amount: string}) => `Create ${amount} expense`, confirmDetails: 'Confirm details', pay: 'Pay', cancelPayment: 'Cancel payment', diff --git a/src/languages/es.ts b/src/languages/es.ts index 92e94446aa48..b53787bfea3d 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -865,6 +865,7 @@ const translations = { paySomeone: ({name}: PaySomeoneParams = {}) => `Pagar a ${name ?? 'alguien'}`, trackExpense: 'Seguimiento de gastos', chooseRecipient: 'Elige destinatario', + createExpenseWithAmount: ({amount}: {amount: string}) => `Crear un gasto de ${amount}`, confirmDetails: 'Confirma los detalles', pay: 'Pagar', cancelPayment: 'Cancelar el pago',