diff --git a/web/src/app/not-found.tsx b/web/src/app/not-found.tsx index 7280378..28536b0 100644 --- a/web/src/app/not-found.tsx +++ b/web/src/app/not-found.tsx @@ -1,11 +1,18 @@ "use client"; +import { useEffect, useState } from "react"; + import Link from "next/link"; import { Button } from "@/components/ui/button"; import { t } from "@/i18n"; export default function NotFound() { + // This page is prerendered in the build-time locale; render the text only on the + // client so a reader in another locale gets no hydration mismatch. + const [mounted, setMounted] = useState(false); + useEffect(() => setMounted(true), []); + if (!mounted) return
; return (

{t("Page not found.")}