mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 21:17:43 +03:00
Translations
This commit is contained in:
parent
ee88291281
commit
1fb5633f00
@ -3,7 +3,7 @@
|
|||||||
"cameras": "Cameras Stats - Frigate",
|
"cameras": "Cameras Stats - Frigate",
|
||||||
"storage": "Storage Stats - Frigate",
|
"storage": "Storage Stats - Frigate",
|
||||||
"general": "General Stats - Frigate",
|
"general": "General Stats - Frigate",
|
||||||
"features": "Features Stats - Frigate",
|
"enrichments": "Enrichments Stats - Frigate",
|
||||||
"logs": {
|
"logs": {
|
||||||
"frigate": "Frigate Logs - Frigate",
|
"frigate": "Frigate Logs - Frigate",
|
||||||
"go2rtc": "Go2RTC Logs - Frigate",
|
"go2rtc": "Go2RTC Logs - Frigate",
|
||||||
@ -144,8 +144,9 @@
|
|||||||
"healthy": "System is healthy",
|
"healthy": "System is healthy",
|
||||||
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)"
|
"reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)"
|
||||||
},
|
},
|
||||||
"features": {
|
"enrichments": {
|
||||||
"title": "Features",
|
"title": "Enrichments",
|
||||||
|
"recsPerSecond": "Recognitions Per Second",
|
||||||
"embeddings": {
|
"embeddings": {
|
||||||
"image_embedding_speed": "Image Embedding Speed",
|
"image_embedding_speed": "Image Embedding Speed",
|
||||||
"face_embedding_speed": "Face Embedding Speed",
|
"face_embedding_speed": "Face Embedding Speed",
|
||||||
|
|||||||
@ -14,10 +14,10 @@ import CameraMetrics from "@/views/system/CameraMetrics";
|
|||||||
import { useHashState } from "@/hooks/use-overlay-state";
|
import { useHashState } from "@/hooks/use-overlay-state";
|
||||||
import { Toaster } from "@/components/ui/sonner";
|
import { Toaster } from "@/components/ui/sonner";
|
||||||
import { FrigateConfig } from "@/types/frigateConfig";
|
import { FrigateConfig } from "@/types/frigateConfig";
|
||||||
import FeatureMetrics from "@/views/system/FeatureMetrics";
|
import EnrichmentMetrics from "@/views/system/EnrichmentMetrics";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
const allMetrics = ["general", "features", "storage", "cameras"] as const;
|
const allMetrics = ["general", "enrichments", "storage", "cameras"] as const;
|
||||||
type SystemMetric = (typeof allMetrics)[number];
|
type SystemMetric = (typeof allMetrics)[number];
|
||||||
|
|
||||||
function System() {
|
function System() {
|
||||||
@ -34,7 +34,7 @@ function System() {
|
|||||||
!config?.lpr.enabled &&
|
!config?.lpr.enabled &&
|
||||||
!config?.face_recognition.enabled
|
!config?.face_recognition.enabled
|
||||||
) {
|
) {
|
||||||
const index = metrics.indexOf("features");
|
const index = metrics.indexOf("enrichments");
|
||||||
metrics.splice(index, 1);
|
metrics.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ function System() {
|
|||||||
aria-label={`Select ${item}`}
|
aria-label={`Select ${item}`}
|
||||||
>
|
>
|
||||||
{item == "general" && <LuActivity className="size-4" />}
|
{item == "general" && <LuActivity className="size-4" />}
|
||||||
{item == "features" && <LuSearchCode className="size-4" />}
|
{item == "enrichments" && <LuSearchCode className="size-4" />}
|
||||||
{item == "storage" && <LuHardDrive className="size-4" />}
|
{item == "storage" && <LuHardDrive className="size-4" />}
|
||||||
{item == "cameras" && <FaVideo className="size-4" />}
|
{item == "cameras" && <FaVideo className="size-4" />}
|
||||||
{isDesktop && (
|
{isDesktop && (
|
||||||
@ -122,8 +122,8 @@ function System() {
|
|||||||
setLastUpdated={setLastUpdated}
|
setLastUpdated={setLastUpdated}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{page == "features" && (
|
{page == "enrichments" && (
|
||||||
<FeatureMetrics
|
<EnrichmentMetrics
|
||||||
lastUpdated={lastUpdated}
|
lastUpdated={lastUpdated}
|
||||||
setLastUpdated={setLastUpdated}
|
setLastUpdated={setLastUpdated}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -7,19 +7,16 @@ import { Skeleton } from "@/components/ui/skeleton";
|
|||||||
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import {
|
import { EventsPerSecondsLineGraph } from "@/components/graph/LineGraph";
|
||||||
CameraLineGraph,
|
|
||||||
EventsPerSecondsLineGraph,
|
|
||||||
} from "@/components/graph/LineGraph";
|
|
||||||
|
|
||||||
type FeatureMetricsProps = {
|
type EnrichmentMetricsProps = {
|
||||||
lastUpdated: number;
|
lastUpdated: number;
|
||||||
setLastUpdated: (last: number) => void;
|
setLastUpdated: (last: number) => void;
|
||||||
};
|
};
|
||||||
export default function FeatureMetrics({
|
export default function EnrichmentMetrics({
|
||||||
lastUpdated,
|
lastUpdated,
|
||||||
setLastUpdated,
|
setLastUpdated,
|
||||||
}: FeatureMetricsProps) {
|
}: EnrichmentMetricsProps) {
|
||||||
// stats
|
// stats
|
||||||
const { t } = useTranslation(["views/system"]);
|
const { t } = useTranslation(["views/system"]);
|
||||||
|
|
||||||
@ -121,7 +118,7 @@ export default function FeatureMetrics({
|
|||||||
key={series.name}
|
key={series.name}
|
||||||
graphId={`${series.name}-fps`}
|
graphId={`${series.name}-fps`}
|
||||||
unit=""
|
unit=""
|
||||||
name="Recognitions Per Second"
|
name={t("enrichments.recsPerSecond")}
|
||||||
updateTimes={updateTimes}
|
updateTimes={updateTimes}
|
||||||
data={[series]}
|
data={[series]}
|
||||||
/>
|
/>
|
||||||
Loading…
Reference in New Issue
Block a user