diff --git a/src/languages/en.ts b/src/languages/en.ts index dabb592b2bf5..6a90b1f8302a 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -54,6 +54,7 @@ import type { DefaultVendorDescriptionParams, DelegateRoleParams, DelegateSubmitParams, + DelegatorParams, DeleteActionParams, DeleteConfirmationParams, DeleteExpenseTranslationParams, @@ -4818,7 +4819,7 @@ const translations = { } }, genericError: 'Oops, something went wrong. Please try again.', - onBehalfOfMessage: (delegator: string) => `on behalf of ${delegator}`, + onBehalfOfMessage: ({delegator}: DelegatorParams) => `on behalf of ${delegator}`, accessLevel: 'Access level', confirmCopilot: 'Confirm your copilot below.', accessLevelDescription: 'Choose an access level below. Both Full and Limited access allow copilots to view all conversations and expenses.', diff --git a/src/languages/es.ts b/src/languages/es.ts index 3dc528fe8257..8d8b33ca57dd 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -53,6 +53,7 @@ import type { DefaultVendorDescriptionParams, DelegateRoleParams, DelegateSubmitParams, + DelegatorParams, DeleteActionParams, DeleteConfirmationParams, DeleteExpenseTranslationParams, @@ -5338,7 +5339,7 @@ const translations = { } }, genericError: '¡Ups! Ha ocurrido un error. Por favor, inténtalo de nuevo.', - onBehalfOfMessage: (delegator: string) => `en nombre de ${delegator}`, + onBehalfOfMessage: ({delegator}: DelegatorParams) => `en nombre de ${delegator}`, accessLevel: 'Nivel de acceso', confirmCopilot: 'Confirma tu copiloto a continuación.', accessLevelDescription: 'Elige un nivel de acceso a continuación. Tanto el acceso Completo como el Limitado permiten a los copilotos ver todas las conversaciones y gastos.', diff --git a/src/languages/params.ts b/src/languages/params.ts index 20e7ac34185c..8ed122283064 100644 --- a/src/languages/params.ts +++ b/src/languages/params.ts @@ -469,6 +469,8 @@ type ReconciliationWorksParams = {lastFourPAN: string}; type DelegateRoleParams = {role: DelegateRole}; +type DelegatorParams = {delegator: string}; + type RoleNamesParams = {role: string}; type AssignCardParams = { @@ -565,6 +567,7 @@ export type { AssignedYouCardParams, SpreadCategoriesParams, DelegateRoleParams, + DelegatorParams, ReconciliationWorksParams, LastSyncAccountingParams, SyncStageNameConnectionsParams, diff --git a/src/pages/home/report/ReportActionItemSingle.tsx b/src/pages/home/report/ReportActionItemSingle.tsx index 01a0847b4f77..56eaf814ff10 100644 --- a/src/pages/home/report/ReportActionItemSingle.tsx +++ b/src/pages/home/report/ReportActionItemSingle.tsx @@ -375,7 +375,7 @@ function ReportActionItemSingle({ ) : null} {action?.delegateAccountID && !isReportPreviewAction && ( - {translate('delegate.onBehalfOfMessage', accountOwnerDetails?.displayName ?? '')} + {translate('delegate.onBehalfOfMessage', {delegator: accountOwnerDetails?.displayName ?? ''})} )} {children}