chore: Move i18nApply localization to the account transformer

This commit is contained in:
Ahmed Bouhuolia
2024-10-15 19:27:15 +02:00
parent fd4d86e797
commit c929a7cb27
2 changed files with 19 additions and 5 deletions

View File

@@ -51,10 +51,6 @@ export class GetAccount {
// Triggers `onAccountViewed` event.
await this.eventPublisher.emitAsync(events.accounts.onViewed, eventPayload);
return this.i18nService.i18nApply(
[['accountTypeLabel'], ['accountNormalFormatted']],
transformed,
tenantId
);
return transformed;
};
}