feat: email workflow templates translation (#20674)
* Add translations in respective files * implement multilingual support for email templates * fix: indentation in common.js & typos in common.js and update.handler.ts
This commit is contained in:
1 parent
417acdaacb
commit
381c462660
52 files changed
+630
-76
No files matched your search
@@ -245,10 +245,10 @@ export async function handler(req: NextRequest) {
|
||||
const brandingDisabled = reminder.booking.eventType?.team
|
||||
? !!reminder.booking.eventType?.team?.hideBranding
|
||||
: !!reminder.booking.user?.hideBranding;
|
||||
|
||||
emailContent = emailReminderTemplate({
|
||||
isEditingMode: false,
|
||||
locale: reminder.booking.user?.locale || "en",
|
||||
t: await getTranslation(reminder.booking.user?.locale ?? "en", "common"),
|
||||
action: reminder.workflowStep.action,
|
||||
timeFormat: getTimeFormatStringFromUserTimeFormat(reminder.booking.user?.timeFormat),
|
||||
startTime: reminder.booking.startTime.toISOString() || "",
|
||||
@@ -276,6 +276,7 @@ export async function handler(req: NextRequest) {
|
||||
isEditingMode: true,
|
||||
locale: reminder.booking.user?.locale || "en",
|
||||
action: reminder.workflowStep.action || WorkflowActions.EMAIL_ADDRESS,
|
||||
t: await getTranslation(reminder.booking.user?.locale ?? "en", "common"),
|
||||
timeFormat: getTimeFormatStringFromUserTimeFormat(reminder.booking.user?.timeFormat),
|
||||
startTime: reminder.booking.startTime.toISOString() || "",
|
||||
endTime: reminder.booking.endTime.toISOString() || "",
|
||||
@@ -383,6 +384,7 @@ export async function handler(req: NextRequest) {
|
||||
emailContent = emailReminderTemplate({
|
||||
isEditingMode: false,
|
||||
locale: reminder.booking.user?.locale || "en",
|
||||
t: await getTranslation(reminder.booking.user?.locale ?? "en", "common"),
|
||||
action: WorkflowActions.EMAIL_ATTENDEE,
|
||||
timeFormat: getTimeFormatStringFromUserTimeFormat(reminder.booking.user?.timeFormat),
|
||||
startTime: reminder.booking.startTime.toISOString() || "",
|
||||
|
||||
Reference in new issue
Block a user