Fix awaiting approval translation (#3234)

This commit is contained in:
Bailey Pumfleet 2022-07-07 02:09:28 +01:00 committed by GitHub
parent 3c7380c3a9
commit 13528ada2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export const OrganizerRequestEmail = (props: React.ComponentProps<typeof Organiz
? "event_awaiting_approval_recurring"
: "event_awaiting_approval"
}
subtitle="someone_requested_an_event"
subtitle={<>{props.calEvent.organizer.language.translate("someone_requested_an_event")}</>}
headerType="calendarCircle"
subject="event_awaiting_approval_subject"
callToAction={

View File

@ -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} + ${