From 13528ada2eb120550b165eaeece25286b0001de2 Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Thu, 7 Jul 2022 02:09:28 +0100 Subject: [PATCH] Fix awaiting approval translation (#3234) --- packages/emails/src/templates/OrganizerRequestEmail.tsx | 2 +- packages/emails/templates/organizer-request-email.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/emails/src/templates/OrganizerRequestEmail.tsx b/packages/emails/src/templates/OrganizerRequestEmail.tsx index 2ec2af9115..141816de8c 100644 --- a/packages/emails/src/templates/OrganizerRequestEmail.tsx +++ b/packages/emails/src/templates/OrganizerRequestEmail.tsx @@ -8,7 +8,7 @@ export const OrganizerRequestEmail = (props: React.ComponentProps{props.calEvent.organizer.language.translate("someone_requested_an_event")}} headerType="calendarCircle" subject="event_awaiting_approval_subject" callToAction={ diff --git a/packages/emails/templates/organizer-request-email.ts b/packages/emails/templates/organizer-request-email.ts index b64fa87cce..f8ff998178 100644 --- a/packages/emails/templates/organizer-request-email.ts +++ b/packages/emails/templates/organizer-request-email.ts @@ -32,7 +32,7 @@ export default class OrganizerRequestEmail extends OrganizerScheduledEmail { protected getTextBody(title = "event_awaiting_approval"): string { return super.getTextBody( title, - "someone_requested_an_event", + `${this.calEvent.organizer.language.translate("someone_requested_an_event")}`, "", `${this.calEvent.organizer.language.translate("confirm_or_reject_request")} ${process.env.NEXT_PUBLIC_WEBAPP_URL} + ${