From 9291543705606a99ffae31cbea048094cf8461ad Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 29 Apr 2025 07:47:19 -0500 Subject: [PATCH] Fix missing i18n keys (#17952) * Fix missing i18n keys * gpu info dialog fixes --- 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/components/overlay/GPUInfoDialog.tsx | 13 ++++++++----- web/src/context/theme-provider.tsx | 2 +- .../views/settings/NotificationsSettingsView.tsx | 2 +- web/src/views/system/GeneralMetrics.tsx | 4 +++- 7 files changed, 16 insertions(+), 9 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/components/overlay/GPUInfoDialog.tsx b/web/src/components/overlay/GPUInfoDialog.tsx index 6a1755c9d..d4752aa2f 100644 --- a/web/src/components/overlay/GPUInfoDialog.tsx +++ b/web/src/components/overlay/GPUInfoDialog.tsx @@ -107,19 +107,22 @@ export default function GPUInfoDialog({
- {t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", { + {t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.driver", { name: nvinfo["0"].driver, })}

- {t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", { - name: nvinfo["0"].cuda_compute, - })} + {t( + "general.hardwareInfo.gpuInfo.nvidiaSMIOutput.cudaComputerCapability", + { + name: nvinfo["0"].cuda_compute, + }, + )}

- {t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", { + {t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.vbios", { name: nvinfo["0"].vbios, })}
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 ? (