From ff6273af6427315705541c40782aedf2acaecc70 Mon Sep 17 00:00:00 2001 From: Simon Axelsson Date: Thu, 25 Jun 2026 18:22:32 +0200 Subject: [PATCH] feat(i18n): localize 404 not-found page (EN base + SV toggle) Co-Authored-By: Claude Sonnet 4.6 --- app/not-found.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/not-found.tsx b/app/not-found.tsx index 17ce2c5..35f43bb 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -1,7 +1,11 @@ -import Link from "next/link"; +"use client"; + +import Link from "next/link"; import { Header } from "@/components/header"; +import { useT } from "@/components/locale-provider"; export default function NotFound() { + const t = useT(); return (
@@ -14,26 +18,26 @@ export default function NotFound() { 404

- 404 — Not found + {t({ en: "404 — Not found", sv: "404 — Sidan hittades ej" })}

- This page doesn't exist. + {t({ en: "This page doesn't exist.", sv: "Den här sidan finns inte." })}

- The link may be outdated or the page was moved. Nothing guessed. + {t({ en: "The link may be outdated or the page was moved. Nothing guessed.", sv: "Länken kan vara inaktuell eller sidan har flyttats. Inget gissades." })}

- Home → + {t({ en: "Home →", sv: "Hem →" })} - Catalog + {t({ en: "Catalog", sv: "Katalog" })}