From feeaf73d7772fd5af3e49efea7dd92696646b7a5 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 Oct 2026 23:50:48 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Settings/Notifications.svelte | 3 +++ src/lib/components/chat/Settings/Usage.svelte | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/lib/components/chat/Settings/Notifications.svelte b/src/lib/components/chat/Settings/Notifications.svelte index a00e42d393..e6207c92c6 100644 --- a/src/lib/components/chat/Settings/Notifications.svelte +++ b/src/lib/components/chat/Settings/Notifications.svelte @@ -26,6 +26,9 @@ let notificationEnabled = false; let notificationSound = true; let targets: NotificationTarget[] = []; + // Keep dynamically translated event keys visible to i18next-parser. + // $i18n.t('Chat finished'); $i18n.t('A chat run finished successfully.'); + // $i18n.t('Chat failed'); $i18n.t('A chat run failed.'); let events: { event: string; label: string; description?: string }[] = [ { event: 'chat.finished', diff --git a/src/lib/components/chat/Settings/Usage.svelte b/src/lib/components/chat/Settings/Usage.svelte index 2a1bb97597..1d9f0587f8 100644 --- a/src/lib/components/chat/Settings/Usage.svelte +++ b/src/lib/components/chat/Settings/Usage.svelte @@ -122,6 +122,8 @@ ] ]; + // Keep dynamically translated mode labels visible to i18next-parser. + // $i18n.t('Daily'); $i18n.t('Weekly'); $i18n.t('Cumulative'); const heatmapModes: Array<{ value: HeatmapMode; label: string }> = [ { value: 'daily', label: 'Daily' }, { value: 'weekly', label: 'Weekly' },