update email templates and subjects

This commit is contained in:
Niko Heller 2024-08-28 13:25:55 +02:00
parent ae6da78c62
commit ee120a04ff
14 changed files with 87 additions and 68 deletions

View file

@ -235,7 +235,7 @@ export const polls = router({
waitUntil(
ctx.emailClient.sendTemplate("NewPollEmail", {
to: user.email,
subject: `Let's find a date for ${poll.title}`,
subject: `Lasst uns einen Termin finden für ${poll.title}`,
props: {
title: poll.title,
name: user.name,
@ -914,7 +914,7 @@ export const polls = router({
const emailToHost = waitUntil(
ctx.emailClient.sendTemplate("FinalizeHostEmail", {
subject: `Date booked for ${poll.title}`,
subject: `Termin gefunden für ${poll.title}`,
to: poll.user.email,
props: {
name: poll.user.name,
@ -939,7 +939,7 @@ export const polls = router({
const emailsToParticipants = participantsToEmail.map((p) => {
return ctx.emailClient.sendTemplate("FinalizeParticipantEmail", {
subject: `Date booked for ${poll.title}`,
subject: `Termin gefunden für ${poll.title}`,
to: p.email,
props: {
name: p.name,

View file

@ -82,7 +82,7 @@ export const comments = router({
emailsToSend.push(
ctx.emailClient.sendTemplate("NewCommentEmail", {
to: email,
subject: `${authorName} has commented on ${poll.title}`,
subject: `${authorName} hat ${poll.title} kommentiert`,
props: {
name: watcher.user.name,
authorName,

View file

@ -125,7 +125,7 @@ export const participants = router({
emailsToSend.push(
ctx.emailClient.sendTemplate("NewParticipantConfirmationEmail", {
to: email,
subject: `Thanks for responding to ${poll.title}`,
subject: `Danke für Deine Beteiligung an ${poll.title}`,
props: {
name,
title: poll.title,
@ -162,7 +162,7 @@ export const participants = router({
emailsToSend.push(
ctx.emailClient.sendTemplate("NewParticipantEmail", {
to: email,
subject: `${participant.name} has responded to ${poll.title}`,
subject: `${participant.name} hat in ${poll.title} geantwortet`,
props: {
name: watcher.user.name,
participantName: participant.name,