NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
move username to i18n key (#17818)
Josh Hawkins484ea100378e
diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.jsonindex bab58a7a4c..774a2d6e8d 100644--- a/web/public/locales/en/views/settings.json+++ b/web/public/locales/en/views/settings.json@@ -483,7 +483,7 @@},"changeRole": {"title": "Change User Role",- "desc": "Update permissions for",+ "desc": "Update permissions for <strong>{{username}}</strong>","roleInfo": {"intro": "Select the appropriate role for this user:","admin": "Admin",diff --git a/web/src/components/overlay/RoleChangeDialog.tsx b/web/src/components/overlay/RoleChangeDialog.tsxindex f17930bead..c631523980 100644--- a/web/src/components/overlay/RoleChangeDialog.tsx+++ b/web/src/components/overlay/RoleChangeDialog.tsx@@ -1,4 +1,4 @@-import { useTranslation } from "react-i18next";+import { Trans, useTranslation } from "react-i18next";import { Button } from "../ui/button";import {Dialog,@@ -46,8 +46,14 @@ export default function RoleChangeDialog({{t("users.dialog.changeRole.title")}</DialogTitle><DialogDescription>- {t("users.dialog.changeRole.desc")}- <span className="font-medium"> {username}</span>+ <Trans+ i18nKey="users.dialog.changeRole.desc"+ ns="views/settings"+ values={{ username }}+ components={{+ strong: <span className="font-medium" />,+ }}+ /></DialogDescription></DialogHeader>