mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-03 01:22:17 +03:00
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:
@@ -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", {
|
||||
|
||||
+12
-5
@@ -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",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user