mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 21:17:43 +03:00
chore: add some missing i18n keys
This commit is contained in:
parent
c992b8ba5f
commit
52b1c7fbda
@ -145,5 +145,10 @@
|
|||||||
"active_objects": "Active Objects"
|
"active_objects": "Active Objects"
|
||||||
},
|
},
|
||||||
"notAllTips": "Your {{source}} recording retention configuration is set to <code>mode: {{effectiveRetainMode}}</code>, so this on-demand recording will only keep segments with {{effectiveRetainModeName}}."
|
"notAllTips": "Your {{source}} recording retention configuration is set to <code>mode: {{effectiveRetainMode}}</code>, so this on-demand recording will only keep segments with {{effectiveRetainModeName}}."
|
||||||
|
},
|
||||||
|
"editLayout": {
|
||||||
|
"label": "Edit Layout",
|
||||||
|
"group.label": "Edit Camera Group",
|
||||||
|
"exitEdit": "Exit Editing"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,7 +109,10 @@
|
|||||||
"fps": "FPS:",
|
"fps": "FPS:",
|
||||||
"unknown": "Unknown",
|
"unknown": "Unknown",
|
||||||
"audio": "Audio:",
|
"audio": "Audio:",
|
||||||
"error": "Error: {{error}}"
|
"error": "Error: {{error}}",
|
||||||
|
"tips": {
|
||||||
|
"title": "Camera Probe Info"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"framesAndDetections": "Frames / Detections",
|
"framesAndDetections": "Frames / Detections",
|
||||||
"label": {
|
"label": {
|
||||||
|
|||||||
@ -104,5 +104,5 @@
|
|||||||
"placeholder": "输入以搜索车牌...",
|
"placeholder": "输入以搜索车牌...",
|
||||||
"noLicensePlatesFound": "未找到车牌。",
|
"noLicensePlatesFound": "未找到车牌。",
|
||||||
"selectPlatesFromList": "从列表中选择一个或多个车牌。"
|
"selectPlatesFromList": "从列表中选择一个或多个车牌。"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,5 +145,10 @@
|
|||||||
"active_objects": "活动对象"
|
"active_objects": "活动对象"
|
||||||
},
|
},
|
||||||
"notAllTips": "您的 {{source}} 录制保留配置设置为 <code>mode: {{effectiveRetainMode}}</code>,因此此按需录制将仅保留包含 {{effectiveRetainModeName}} 的片段。"
|
"notAllTips": "您的 {{source}} 录制保留配置设置为 <code>mode: {{effectiveRetainMode}}</code>,因此此按需录制将仅保留包含 {{effectiveRetainModeName}} 的片段。"
|
||||||
}
|
},
|
||||||
|
"editLayout": {
|
||||||
|
"label": "编辑布局",
|
||||||
|
"group.label": "编辑摄像机分组",
|
||||||
|
"exitEdit": "退出编辑"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,7 +109,10 @@
|
|||||||
"fps": "帧率:",
|
"fps": "帧率:",
|
||||||
"unknown": "未知",
|
"unknown": "未知",
|
||||||
"audio": "音频:",
|
"audio": "音频:",
|
||||||
"error": "错误:{{error}}"
|
"error": "错误:{{error}}",
|
||||||
|
"tips": {
|
||||||
|
"title": "摄像头信息"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"framesAndDetections": "帧数/检测次数",
|
"framesAndDetections": "帧数/检测次数",
|
||||||
"label": {
|
"label": {
|
||||||
|
|||||||
@ -48,9 +48,9 @@ import {
|
|||||||
} from "@/components/ui/tooltip";
|
} from "@/components/ui/tooltip";
|
||||||
import { Toaster } from "@/components/ui/sonner";
|
import { Toaster } from "@/components/ui/sonner";
|
||||||
import useCameraLiveMode from "@/hooks/use-camera-live-mode";
|
import useCameraLiveMode from "@/hooks/use-camera-live-mode";
|
||||||
import { t } from "i18next";
|
|
||||||
import LiveContextMenu from "@/components/menu/LiveContextMenu";
|
import LiveContextMenu from "@/components/menu/LiveContextMenu";
|
||||||
import { useStreamingSettings } from "@/context/streaming-settings-provider";
|
import { useStreamingSettings } from "@/context/streaming-settings-provider";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
type DraggableGridLayoutProps = {
|
type DraggableGridLayoutProps = {
|
||||||
cameras: CameraConfig[];
|
cameras: CameraConfig[];
|
||||||
@ -80,6 +80,7 @@ export default function DraggableGridLayout({
|
|||||||
fullscreen,
|
fullscreen,
|
||||||
toggleFullscreen,
|
toggleFullscreen,
|
||||||
}: DraggableGridLayoutProps) {
|
}: DraggableGridLayoutProps) {
|
||||||
|
const { t } = useTranslation(["views/live"]);
|
||||||
const { data: config } = useSWR<FrigateConfig>("config");
|
const { data: config } = useSWR<FrigateConfig>("config");
|
||||||
const birdseyeConfig = useMemo(() => config?.birdseye, [config]);
|
const birdseyeConfig = useMemo(() => config?.birdseye, [config]);
|
||||||
|
|
||||||
@ -659,7 +660,9 @@ export default function DraggableGridLayout({
|
|||||||
</div>
|
</div>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>
|
<TooltipContent>
|
||||||
{isEditMode ? "Exit Editing" : "Edit Layout"}
|
{isEditMode
|
||||||
|
? t("editLayout.exitEdit")
|
||||||
|
: t("editLayout.label")}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{!isEditMode && (
|
{!isEditMode && (
|
||||||
@ -677,7 +680,9 @@ export default function DraggableGridLayout({
|
|||||||
</div>
|
</div>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>
|
<TooltipContent>
|
||||||
{isEditMode ? "Exit Editing" : "Edit Camera Group"}
|
{isEditMode
|
||||||
|
? t("editLayout.exitEdit")
|
||||||
|
: t("editLayout.group.label")}
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -272,7 +272,9 @@ export default function CameraMetrics({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>Camera Probe Info</TooltipContent>
|
<TooltipContent>
|
||||||
|
{t("cameras.info.tips.title")}
|
||||||
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user