Skip to content

Commit 4961e36

Browse files
Fix email placeholder localization (#68)
1 parent 57234c4 commit 4961e36

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/create-event-form.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ describe("CreateEventForm", () => {
5858
renderCreateEventForm("de");
5959

6060
expect(screen.getByLabelText("Event-Titel")).toBeInTheDocument();
61+
expect(screen.getByLabelText("Organizer-E-Mail-Benachrichtigungen")).toHaveAttribute(
62+
"placeholder",
63+
"name@beispiel.de",
64+
);
6165
expect(screen.getByRole("group", { name: "Verfügbare Wochentage" })).toBeInTheDocument();
6266
expect(screen.getByRole("checkbox", { name: "Montag" })).toBeChecked();
6367
expect(screen.getByRole("checkbox", { name: "Samstag" })).not.toBeChecked();

src/lib/i18n/messages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ export const de: Messages = {
877877
meetingDurationLabel: "Meeting-Dauer",
878878
meetingDurationPlaceholder: "Dauer wählen",
879879
notificationEmailLabel: "Organizer-E-Mail-Benachrichtigungen",
880-
notificationEmailPlaceholder: "[PRIVATE_EMAIL]",
880+
notificationEmailPlaceholder: "name@beispiel.de",
881881
notificationEmailDescription:
882882
"Optional. Erhalte eine E-Mail, nachdem Teilnehmende ihre Verfügbarkeit 5 ruhige Minuten lang nicht mehr geändert haben.",
883883
notificationEmailUnavailable:

0 commit comments

Comments
 (0)