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
This commit is contained in:
Josh Hawkins 2026-03-06 22:58:52 -06:00
parent df59442cd0
commit 8590416003
2 changed files with 23 additions and 6 deletions

View File

@ -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<FrigateConfig>("config", {

View File

@ -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",