From d19da017356cf4283440f72d8045fcdff06ad0c7 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:16:15 -0500 Subject: [PATCH] Fix missing i18n keys --- web/public/locales/en/common.json | 2 +- web/public/locales/en/views/settings.json | 1 + web/public/locales/en/views/system.json | 1 + web/src/context/theme-provider.tsx | 2 +- web/src/views/settings/NotificationsSettingsView.tsx | 2 +- web/src/views/system/GeneralMetrics.tsx | 4 +++- 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json index 82548a2cb..9532bcb69 100644 --- a/web/public/locales/en/common.json +++ b/web/public/locales/en/common.json @@ -174,7 +174,7 @@ "green": "Green", "nord": "Nord", "red": "Red", - "contrast": "High Contrast", + "highcontrast": "High Contrast", "default": "Default" }, "help": "Help", diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index 09bba01d0..37051dfcb 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -529,6 +529,7 @@ "active": "Notifications Active", "suspended": "Notifications suspended {{time}}", "suspendTime": { + "suspend": "Suspend", "5minutes": "Suspend for 5 minutes", "10minutes": "Suspend for 10 minutes", "30minutes": "Suspend for 30 minutes", diff --git a/web/public/locales/en/views/system.json b/web/public/locales/en/views/system.json index 0365a7293..942b30c63 100644 --- a/web/public/locales/en/views/system.json +++ b/web/public/locales/en/views/system.json @@ -40,6 +40,7 @@ "detector": { "title": "Detectors", "inferenceSpeed": "Detector Inference Speed", + "temperature": "Detector Temperature", "cpuUsage": "Detector CPU Usage", "memoryUsage": "Detector Memory Usage" }, diff --git a/web/src/context/theme-provider.tsx b/web/src/context/theme-provider.tsx index 2fe14ee66..d2be5e7ee 100644 --- a/web/src/context/theme-provider.tsx +++ b/web/src/context/theme-provider.tsx @@ -23,7 +23,7 @@ export const colorSchemes: ColorScheme[] = [ // eslint-disable-next-line react-refresh/only-export-components export const friendlyColorSchemeName = (className: string): string => { const words = className.split("-").slice(1); // Exclude the first word (e.g., 'theme') - return "menu.theme." + words.join("."); + return "menu.theme." + words.join(""); }; type ThemeProviderProps = { diff --git a/web/src/views/settings/NotificationsSettingsView.tsx b/web/src/views/settings/NotificationsSettingsView.tsx index 79963f4b3..af72060d4 100644 --- a/web/src/views/settings/NotificationsSettingsView.tsx +++ b/web/src/views/settings/NotificationsSettingsView.tsx @@ -704,7 +704,7 @@ export function CameraNotificationSwitch({ {!isSuspended ? (