diff --git a/src/languages/en.ts b/src/languages/en.ts index 3e1ea7f0d7cc..62bf547eeaba 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -843,6 +843,8 @@ const translations = { submitExpense: 'Submit expense', createExpense: 'Create expense', trackExpense: 'Track expense', + chooseRecipient: 'Choose recipient', + confirmDetails: 'Confirm details', pay: 'Pay', cancelPayment: 'Cancel payment', cancelPaymentConfirmation: 'Are you sure that you want to cancel this payment?', diff --git a/src/languages/es.ts b/src/languages/es.ts index d28a19fbb1be..3487356a0f04 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -838,6 +838,8 @@ const translations = { createExpense: 'Crear gasto', paySomeone: ({name}: PaySomeoneParams = {}) => `Pagar a ${name ?? 'alguien'}`, trackExpense: 'Seguimiento de gastos', + chooseRecipient: 'Elige destinatario', + confirmDetails: 'Confirma los detalles', pay: 'Pagar', cancelPayment: 'Cancelar el pago', cancelPaymentConfirmation: '¿Estás seguro de que quieres cancelar este pago?', diff --git a/src/pages/iou/request/IOURequestStartPage.tsx b/src/pages/iou/request/IOURequestStartPage.tsx index f095fac4d6b1..43ad7f453997 100644 --- a/src/pages/iou/request/IOURequestStartPage.tsx +++ b/src/pages/iou/request/IOURequestStartPage.tsx @@ -50,11 +50,11 @@ function IOURequestStartPage({ const {canUseCombinedTrackSubmit} = usePermissions(); const tabTitles = { - [CONST.IOU.TYPE.REQUEST]: translate('iou.submitExpense'), + [CONST.IOU.TYPE.REQUEST]: translate('iou.createExpense'), [CONST.IOU.TYPE.SUBMIT]: canUseCombinedTrackSubmit ? translate('iou.createExpense') : translate('iou.submitExpense'), [CONST.IOU.TYPE.SEND]: translate('iou.paySomeone', {name: ReportUtils.getPayeeName(report)}), [CONST.IOU.TYPE.PAY]: translate('iou.paySomeone', {name: ReportUtils.getPayeeName(report)}), - [CONST.IOU.TYPE.SPLIT]: translate('iou.splitExpense'), + [CONST.IOU.TYPE.SPLIT]: translate('iou.createExpense'), [CONST.IOU.TYPE.TRACK]: canUseCombinedTrackSubmit ? translate('iou.createExpense') : translate('iou.trackExpense'), [CONST.IOU.TYPE.INVOICE]: translate('workspace.invoices.sendInvoice'), [CONST.IOU.TYPE.CREATE]: translate('iou.createExpense'), diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx index d8c48dc3d587..19df45fa5927 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.tsx +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.tsx @@ -87,7 +87,6 @@ function IOURequestStepConfirmation({ const transactionTaxAmount = transaction?.taxAmount ?? 0; const isSharingTrackExpense = action === CONST.IOU.ACTION.SHARE; const isCategorizingTrackExpense = action === CONST.IOU.ACTION.CATEGORIZE; - const isSubmittingFromTrackExpense = action === CONST.IOU.ACTION.SUBMIT; const isMovingTransactionFromTrackExpense = IOUUtils.isMovingTransactionFromTrackExpense(action); const payeePersonalDetails = useMemo(() => { if (personalDetails?.[transaction?.splitPayerAccountIDs?.at(0) ?? -1]) { @@ -112,26 +111,14 @@ function IOURequestStepConfirmation({ if (isCategorizingTrackExpense) { return translate('iou.categorize'); } - if (isSubmittingFromTrackExpense) { - return translate('iou.submitExpense'); - } if (isSharingTrackExpense) { return translate('iou.share'); } - if (iouType === CONST.IOU.TYPE.SPLIT) { - return translate('iou.splitExpense'); - } - if (iouType === CONST.IOU.TYPE.TRACK) { - return translate('iou.trackExpense'); - } - if (iouType === CONST.IOU.TYPE.PAY) { - return translate('iou.paySomeone', {name: ReportUtils.getPayeeName(report)}); - } if (iouType === CONST.IOU.TYPE.INVOICE) { return translate('workspace.invoices.sendInvoice'); } - return translate('iou.submitExpense'); - }, [iouType, report, translate, isSharingTrackExpense, isCategorizingTrackExpense, isSubmittingFromTrackExpense]); + return translate('iou.confirmDetails'); + }, [iouType, translate, isSharingTrackExpense, isCategorizingTrackExpense]); const participants = useMemo( () => diff --git a/src/pages/iou/request/step/IOURequestStepParticipants.tsx b/src/pages/iou/request/step/IOURequestStepParticipants.tsx index c956acadb7b0..36cc683badb6 100644 --- a/src/pages/iou/request/step/IOURequestStepParticipants.tsx +++ b/src/pages/iou/request/step/IOURequestStepParticipants.tsx @@ -48,9 +48,6 @@ function IOURequestStepParticipants({ if (action === CONST.IOU.ACTION.CATEGORIZE) { return translate('iou.categorize'); } - if (action === CONST.IOU.ACTION.SUBMIT) { - return translate('iou.submitExpense'); - } if (action === CONST.IOU.ACTION.SHARE) { return translate('iou.share'); } @@ -63,7 +60,7 @@ function IOURequestStepParticipants({ if (iouType === CONST.IOU.TYPE.INVOICE) { return translate('workspace.invoices.sendInvoice'); } - return translate('iou.submitExpense'); + return translate('iou.chooseRecipient'); }, [iouType, translate, isSplitRequest, action]); const selfDMReportID = useMemo(() => ReportUtils.findSelfDMReportID(), []);