From c9eb0b2bfb30f6dea0b2fadb17ff332376af0ba8 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 16 Nov 2026 07:35:22 +0100 Subject: [PATCH] fix: an automation's schedule shows in English on its page and in the Create dialog (#34428) The Schedule value on an automation's page and on the Schedule button of the Create dialog always read in English ("Daily", "Weekly", "Once"), whatever language the app was set to. It now shows in the chosen language, with the names the Schedule menu already lists. Fixes #34426 --- .../components/automations/ScheduleDropdown.svelte | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/lib/components/automations/ScheduleDropdown.svelte b/src/lib/components/automations/ScheduleDropdown.svelte index e5dc39ac67..f3d96f89ae 100644 --- a/src/lib/components/automations/ScheduleDropdown.svelte +++ b/src/lib/components/automations/ScheduleDropdown.svelte @@ -153,15 +153,8 @@ return 'Schedule'; }; - $: scheduleLabel = (() => { - if (frequency === 'ONCE') return 'Once'; - if (frequency === 'HOURLY') return 'Hourly'; - if (frequency === 'DAILY') return 'Daily'; - if (frequency === 'WEEKLY') return 'Weekly'; - if (frequency === 'MONTHLY') return 'Monthly'; - if (frequency === 'CUSTOM') return 'Custom'; - return 'Schedule'; - })(); + $: scheduleLabel = + FREQUENCIES.find((option) => option.key === frequency)?.label ?? $i18n.t('Schedule');