From e127f5d24baefe82873aaa86a60b458b1dce7c6b Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 30 Sep 2026 14:23:33 +0200 Subject: [PATCH] fix: reuse the translated saving label on the event Save button #921 --- components/calendar/event-modal.tsx | 4 ++-- locales/en/common.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/calendar/event-modal.tsx b/components/calendar/event-modal.tsx index 177f932ef..7108cdf59 100644 --- a/components/calendar/event-modal.tsx +++ b/components/calendar/event-modal.tsx @@ -647,7 +647,7 @@ export function EventModal({ } finally { setIsSaving(false); } - }, [title, description, location, virtualLocation, startDate, startTime, endDate, endTime, allDay, calendarId, recurrence, customRule, alertRows, attendees, sendInvitations, currentUserEmails, existingParticipants, resolveContactName, event, onSave, isSaving]); + }, [title, description, location, virtualLocation, startDate, startTime, endDate, endTime, allDay, calendarId, recurrence, customRule, alertRows, attendees, sendInvitations, currentUserEmails, existingParticipants, resolveContactName, event, onSave, isSaving, t]); const handleRsvp = useCallback((status: CalendarParticipant['participationStatus']) => { if (!event || !userParticipantId || !onRsvp) return; @@ -1453,7 +1453,7 @@ export function EventModal({ > {/* While a save is in flight the button was disabled with no visible change, so a slow request (mobile, VPN) looked like a dead button for the whole timeout. */} - {isSaving ? t("form.saving") : t("form.save")} + {isSaving ? t("subscription.saving") : t("form.save")} )} diff --git a/locales/en/common.json b/locales/en/common.json index e59e27dac..0d673bcd5 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -2945,7 +2945,6 @@ "all_day_event": "All-day event", "calendar_select": "Calendar", "save": "Save", - "saving": "Saving…", "cancel": "Cancel", "delete_confirm": "Are you sure you want to delete this event?", "color": "Color"