diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx index 35860ed35c..b5b19c8afb 100644 --- a/web/src/pages/Explore.tsx +++ b/web/src/pages/Explore.tsx @@ -24,6 +24,7 @@ import useSWR from "swr"; import useSWRInfinite from "swr/infinite"; import { useDocDomain } from "@/hooks/use-doc-domain"; import { JINA_EMBEDDING_MODELS } from "@/lib/const"; +import { useDateLocale } from "@/hooks/use-date-locale"; const API_LIMIT = 25; @@ -43,6 +44,8 @@ export default function Explore() { const { t } = useTranslation(["views/explore"]); const { getLocaleDocUrl } = useDocDomain(); + const dateLocale = useDateLocale(); + const { data: config } = useSWR("config", { revalidateOnFocus: false, }); @@ -417,7 +420,10 @@ export default function Explore() { )} {reindexState.time_remaining >= 0 && - (formatSecondsToDuration(reindexState.time_remaining) || + (formatSecondsToDuration( + reindexState.time_remaining, + dateLocale, + ) || t( "exploreIsUnavailable.embeddingsReindexing.finishingShortly", ))}