diff --git a/web/public/locales/en/views/system.json b/web/public/locales/en/views/system.json index 7425e22a8..6bc50402e 100644 --- a/web/public/locales/en/views/system.json +++ b/web/public/locales/en/views/system.json @@ -71,5 +71,8 @@ "detectHighCpuUsage": "{{camera}} has high detect CPU usage ({{detectAvg}}%)", "healthy": "System is healthy", "reindexingEmbeddings": "Reindexing embeddings ({{processed}}% complete)" + }, + "features": { + "title": "Features" } } diff --git a/web/public/locales/zh-CN/views/system.json b/web/public/locales/zh-CN/views/system.json index 43feb2311..b35bd7ae5 100644 --- a/web/public/locales/zh-CN/views/system.json +++ b/web/public/locales/zh-CN/views/system.json @@ -71,5 +71,8 @@ "detectHighCpuUsage": "{{camera}} 的 探测 CPU 使用率较高({{detectAvg}}%)", "healthy": "系统运行正常", "reindexingEmbeddings": "正在重新索引嵌入(已完成 {{processed}}%)" + }, + "features": { + "title": "功能" } } diff --git a/web/src/views/system/FeatureMetrics.tsx b/web/src/views/system/FeatureMetrics.tsx index 787d2367b..0f6096a7f 100644 --- a/web/src/views/system/FeatureMetrics.tsx +++ b/web/src/views/system/FeatureMetrics.tsx @@ -6,6 +6,7 @@ import { EmbeddingThreshold } from "@/types/graph"; import { Skeleton } from "@/components/ui/skeleton"; import { ThresholdBarGraph } from "@/components/graph/SystemGraph"; import { cn } from "@/lib/utils"; +import { useTranslation } from "react-i18next"; type FeatureMetricsProps = { lastUpdated: number; @@ -16,6 +17,7 @@ export default function FeatureMetrics({ setLastUpdated, }: FeatureMetricsProps) { // stats + const { t } = useTranslation(["views/system"]); const { data: initialStats } = useSWR( ["stats/history", { keys: "embeddings,service" }], @@ -87,7 +89,7 @@ export default function FeatureMetrics({ <>
- Features + {t("features.title")}