From e3699d3a2bdac73c36001c4b6019c5143546bd22 Mon Sep 17 00:00:00 2001 From: Trevor Coleman Date: Fri, 16 Feb 2024 18:29:10 -0500 Subject: [PATCH] fix(Violations): harmonize translations --- src/languages/en.ts | 3 +-- src/languages/es.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/languages/en.ts b/src/languages/en.ts index 080c93400428..a86cf18818b0 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2303,8 +2303,7 @@ export default { overLimitAttendee: ({formattedLimit}: ViolationsOverLimitParams) => `Amount over ${formattedLimit}/person limit`, perDayLimit: ({formattedLimit}: ViolationsPerDayLimitParams) => `Amount over daily ${formattedLimit}/person category limit`, receiptNotSmartScanned: 'Receipt not verified. Please confirm accuracy.', - receiptRequired: ({formattedLimit, category}: ViolationsReceiptRequiredParams) => - `Receipt required${formattedLimit && category ? ` over ${formattedLimit}${category ? ` category limit` : ''}` : ''}`, + receiptRequired: (params: ViolationsReceiptRequiredParams) => `Receipt required${params ? ` over ${params.formattedLimit}${params.category ? ' category limit' : ''}` : ''}`, reviewRequired: 'Review required', rter: ({brokenBankConnection, email, isAdmin, isTransactionOlderThan7Days, member}: ViolationsRterParams) => { if (brokenBankConnection) { diff --git a/src/languages/es.ts b/src/languages/es.ts index 486e7d36f33d..b304f840fc8e 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2793,8 +2793,8 @@ export default { overLimitAttendee: ({formattedLimit}: ViolationsOverLimitParams) => `Importe supera el límite${formattedLimit ? ` de ${formattedLimit}/persona` : ''}`, perDayLimit: ({formattedLimit}: ViolationsPerDayLimitParams) => `Importe supera el límite diario de la categoría${formattedLimit ? ` de ${formattedLimit}/persona` : ''}`, receiptNotSmartScanned: 'Recibo no verificado. Por favor, confirma su exactitud', - receiptRequired: ({category, formattedLimit}: ViolationsReceiptRequiredParams) => - `Recibo obligatorio${!category && !formattedLimit ? '' : ` para importes sobre${category ? ` el limite de la categoría de` : ''} ${formattedLimit}`}`, + receiptRequired: (params: ViolationsReceiptRequiredParams) => + `Recibo obligatorio${params ? ` para importes sobre${params.formattedLimit ? ` ${params.formattedLimit}` : ''}${params.category ? ' el límite de la categoría' : ''}` : ''}`, reviewRequired: 'Revisión requerida', rter: ({brokenBankConnection, isAdmin, email, isTransactionOlderThan7Days, member}: ViolationsRterParams) => { if (brokenBankConnection) {