mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Fix missing i18n keys (#17952)
* Fix missing i18n keys * gpu info dialog fixes
This commit is contained in:
parent
1e079027ec
commit
9291543705
@ -174,7 +174,7 @@
|
|||||||
"green": "Green",
|
"green": "Green",
|
||||||
"nord": "Nord",
|
"nord": "Nord",
|
||||||
"red": "Red",
|
"red": "Red",
|
||||||
"contrast": "High Contrast",
|
"highcontrast": "High Contrast",
|
||||||
"default": "Default"
|
"default": "Default"
|
||||||
},
|
},
|
||||||
"help": "Help",
|
"help": "Help",
|
||||||
|
@ -529,6 +529,7 @@
|
|||||||
"active": "Notifications Active",
|
"active": "Notifications Active",
|
||||||
"suspended": "Notifications suspended {{time}}",
|
"suspended": "Notifications suspended {{time}}",
|
||||||
"suspendTime": {
|
"suspendTime": {
|
||||||
|
"suspend": "Suspend",
|
||||||
"5minutes": "Suspend for 5 minutes",
|
"5minutes": "Suspend for 5 minutes",
|
||||||
"10minutes": "Suspend for 10 minutes",
|
"10minutes": "Suspend for 10 minutes",
|
||||||
"30minutes": "Suspend for 30 minutes",
|
"30minutes": "Suspend for 30 minutes",
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
"detector": {
|
"detector": {
|
||||||
"title": "Detectors",
|
"title": "Detectors",
|
||||||
"inferenceSpeed": "Detector Inference Speed",
|
"inferenceSpeed": "Detector Inference Speed",
|
||||||
|
"temperature": "Detector Temperature",
|
||||||
"cpuUsage": "Detector CPU Usage",
|
"cpuUsage": "Detector CPU Usage",
|
||||||
"memoryUsage": "Detector Memory Usage"
|
"memoryUsage": "Detector Memory Usage"
|
||||||
},
|
},
|
||||||
|
@ -107,19 +107,22 @@ export default function GPUInfoDialog({
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
|
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.driver", {
|
||||||
name: nvinfo["0"].driver,
|
name: nvinfo["0"].driver,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
|
{t(
|
||||||
name: nvinfo["0"].cuda_compute,
|
"general.hardwareInfo.gpuInfo.nvidiaSMIOutput.cudaComputerCapability",
|
||||||
})}
|
{
|
||||||
|
name: nvinfo["0"].cuda_compute,
|
||||||
|
},
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.name", {
|
{t("general.hardwareInfo.gpuInfo.nvidiaSMIOutput.vbios", {
|
||||||
name: nvinfo["0"].vbios,
|
name: nvinfo["0"].vbios,
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,7 +23,7 @@ export const colorSchemes: ColorScheme[] = [
|
|||||||
// eslint-disable-next-line react-refresh/only-export-components
|
// eslint-disable-next-line react-refresh/only-export-components
|
||||||
export const friendlyColorSchemeName = (className: string): string => {
|
export const friendlyColorSchemeName = (className: string): string => {
|
||||||
const words = className.split("-").slice(1); // Exclude the first word (e.g., 'theme')
|
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 = {
|
type ThemeProviderProps = {
|
||||||
|
@ -704,7 +704,7 @@ export function CameraNotificationSwitch({
|
|||||||
{!isSuspended ? (
|
{!isSuspended ? (
|
||||||
<Select onValueChange={handleSuspend}>
|
<Select onValueChange={handleSuspend}>
|
||||||
<SelectTrigger className="w-auto">
|
<SelectTrigger className="w-auto">
|
||||||
<SelectValue placeholder="Suspend" />
|
<SelectValue placeholder={t("notification.suspendTime.suspend")} />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value="5">
|
<SelectItem value="5">
|
||||||
|
@ -528,7 +528,9 @@ export default function GeneralMetrics({
|
|||||||
<>
|
<>
|
||||||
{detTempSeries && (
|
{detTempSeries && (
|
||||||
<div className="rounded-lg bg-background_alt p-2.5 md:rounded-2xl">
|
<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) => (
|
{detTempSeries.map((series) => (
|
||||||
<ThresholdBarGraph
|
<ThresholdBarGraph
|
||||||
key={series.name}
|
key={series.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user