mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-14 16:01:13 +03:00
fix: fix embedding time locale
This commit is contained in:
parent
c67170aa20
commit
57ee01b1ed
@ -24,6 +24,7 @@ import useSWR from "swr";
|
|||||||
import useSWRInfinite from "swr/infinite";
|
import useSWRInfinite from "swr/infinite";
|
||||||
import { useDocDomain } from "@/hooks/use-doc-domain";
|
import { useDocDomain } from "@/hooks/use-doc-domain";
|
||||||
import { JINA_EMBEDDING_MODELS } from "@/lib/const";
|
import { JINA_EMBEDDING_MODELS } from "@/lib/const";
|
||||||
|
import { useDateLocale } from "@/hooks/use-date-locale";
|
||||||
|
|
||||||
const API_LIMIT = 25;
|
const API_LIMIT = 25;
|
||||||
|
|
||||||
@ -43,6 +44,8 @@ export default function Explore() {
|
|||||||
const { t } = useTranslation(["views/explore"]);
|
const { t } = useTranslation(["views/explore"]);
|
||||||
const { getLocaleDocUrl } = useDocDomain();
|
const { getLocaleDocUrl } = useDocDomain();
|
||||||
|
|
||||||
|
const dateLocale = useDateLocale();
|
||||||
|
|
||||||
const { data: config } = useSWR<FrigateConfig>("config", {
|
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||||
revalidateOnFocus: false,
|
revalidateOnFocus: false,
|
||||||
});
|
});
|
||||||
@ -417,7 +420,10 @@ export default function Explore() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{reindexState.time_remaining >= 0 &&
|
{reindexState.time_remaining >= 0 &&
|
||||||
(formatSecondsToDuration(reindexState.time_remaining) ||
|
(formatSecondsToDuration(
|
||||||
|
reindexState.time_remaining,
|
||||||
|
dateLocale,
|
||||||
|
) ||
|
||||||
t(
|
t(
|
||||||
"exploreIsUnavailable.embeddingsReindexing.finishingShortly",
|
"exploreIsUnavailable.embeddingsReindexing.finishingShortly",
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user