From 85904160030ab9943cd0c65c9bdccf2215b79c2b Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 6 Mar 2026 22:58:52 -0600 Subject: [PATCH] add missing i18n namespaces react 19 enforces Suspense more strictly, so components using useTranslation() with unloaded namespaces would suspend, blanking the content behind the empty Suspense fallback --- web/src/pages/Explore.tsx | 12 +++++++++++- web/src/utils/i18n.ts | 17 ++++++++++++----- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx index 8f50e982e..d018e6c29 100644 --- a/web/src/pages/Explore.tsx +++ b/web/src/pages/Explore.tsx @@ -39,7 +39,17 @@ const SEARCH_FILTER_ARRAY_KEYS = [ export default function Explore() { // search field handler - const { t } = useTranslation(["views/explore"]); + const { t } = useTranslation([ + "views/explore", + "views/search", + "components/filter", + "views/events", + "components/camera", + "components/dialog", + "views/faceLibrary", + "views/settings", + "components/player", + ]); const { getLocaleDocUrl } = useDocDomain(); const { data: config } = useSWR("config", { diff --git a/web/src/utils/i18n.ts b/web/src/utils/i18n.ts index 242e09e92..ccfeded94 100644 --- a/web/src/utils/i18n.ts +++ b/web/src/utils/i18n.ts @@ -40,23 +40,30 @@ i18n "common", "objects", "audio", + "components/auth", "components/camera", "components/dialog", "components/filter", "components/icons", + "components/input", "components/player", - "views/events", "views/chat", + "views/classificationModel", + "views/configEditor", + "views/events", "views/explore", + "views/exports", + "views/faceLibrary", "views/live", + "views/motionSearch", + "views/replay", + "views/search", "views/settings", "views/system", - "views/exports", - "views/explore", - "config/global", "config/cameras", - "config/validation", + "config/global", "config/groups", + "config/validation", ], defaultNS: "common",