diff --git a/project.inlang/messages/de.json b/project.inlang/messages/de.json
index ac6c353..618d5ab 100644
--- a/project.inlang/messages/de.json
+++ b/project.inlang/messages/de.json
@@ -907,5 +907,16 @@
"reserved": "reserviert"
}
}
+ },
+ "emails": {
+ "poweredBy": "Betrieben mit",
+ "greeting": "Hallo {name},",
+ "oclock": "Uhr",
+ "appointmentBooked": {
+ "subject": "{channel} bei {tenant} gebucht",
+ "introduction": "Ihr Termin wurde gebucht.",
+ "action": "Termin absagen",
+ "reason": "Sie erhalten diese E-Mail, weil jemand mit Ihrer E-Mail Adresse einen Termin bei gebucht hat."
+ }
}
}
diff --git a/project.inlang/messages/en.json b/project.inlang/messages/en.json
index 1af7752..7d116f5 100644
--- a/project.inlang/messages/en.json
+++ b/project.inlang/messages/en.json
@@ -916,5 +916,16 @@
"reserved": "reserved"
}
}
+ },
+ "emails": {
+ "poweredBy": "Powered by",
+ "greeting": "Hello {name},",
+ "oclock": "",
+ "appointmentBooked": {
+ "subject": "{channel} at {tenant} booked successfully",
+ "introduction": "your appointment for has been booked.",
+ "action": "Cancel appointment",
+ "reason": "You are receiving this email because someone booked an appointment with your e-mail address."
+ }
}
}
diff --git a/src/lib/const/locales.ts b/src/lib/const/locales.ts
index dabcb15..99ced3b 100644
--- a/src/lib/const/locales.ts
+++ b/src/lib/const/locales.ts
@@ -2,6 +2,8 @@ import { m } from "$i18n/messages";
export const supportedLocales = ["en", "de"] as const;
+export type SupportedLocale = (typeof supportedLocales)[number];
+
export const translatedLocales = {
en: m["locales.en"](),
de: m["locales.de"](),
diff --git a/src/lib/emails/AppointmentBooked.svelte b/src/lib/emails/AppointmentBooked.svelte
index fd8ec61..b8290c6 100644
--- a/src/lib/emails/AppointmentBooked.svelte
+++ b/src/lib/emails/AppointmentBooked.svelte
@@ -1,33 +1,65 @@
-
{m["absences.add.description"]()} {name}, your appointment has been booked.
- Dr. John Doe
- Musterstraße 10Vaccination Appointment
-
- June 30, 2024
- 10:00 AM - 10:15 AM
- Praxis Dr. Jane Doe
-
- Etage 4
- 12345 Musterstadt
-
+ {renderAppointmentDate(appointment.appointmentDate, locale)}
+ {renderAppointmentTime(appointment.appointmentDate, locale)}
+ {m["emails.oclock"]()}
+
+ {#if address.additionalAddressInfo}{address.additionalAddressInfo}
{/if}
+ {address.zip}
+ {address.city}
+
it).join(" ")}>{@render children?.()}