Fix missing i18n keys (#17952)

* Fix missing i18n keys

* gpu info dialog fixes
This commit is contained in:
Josh Hawkins
2025-04-29 06:47:19 -06:00
committed by GitHub
parent 1e079027ec
commit 9291543705
7 changed files with 16 additions and 9 deletions
+8 -5
View File
@@ -107,19 +107,22 @@ export default function GPUInfoDialog({
</div>
<br />
<div>
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.driver", {
name: nvinfo["0"].driver,
})}
</div>
<br />
<div>
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
name: nvinfo["0"].cuda_compute,
})}
{t(
"general.hardwareInfo.gpuInfo.nvidiaSMIOutput.cudaComputerCapability",
{
name: nvinfo["0"].cuda_compute,
},
)}
</div>
<br />
<div>
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.vbios", {
name: nvinfo["0"].vbios,
})}
</div>
+1 -1
View File
@@ -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 = {
@@ -704,7 +704,7 @@ export function CameraNotificationSwitch({
{!isSuspended ? (
<Select onValueChange={handleSuspend}>
<SelectTrigger className="w-auto">
<SelectValue placeholder="Suspend" />
<SelectValue placeholder={t("notification.suspendTime.suspend")} />
</SelectTrigger>
<SelectContent>
<SelectItem value="5">
+3 -1
View File
@@ -528,7 +528,9 @@ export default function GeneralMetrics({
<>
{detTempSeries && (
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
<div className="mb-5">Detector Temperature</div>
<div className="mb-5">
{t("general.detector.temperature")}
</div>
{detTempSeries.map((series) => (
<ThresholdBarGraph
key={series.name}