--- import config from "@/config/config.json"; import Base from "@/layouts/Base.astro"; import { getLangFromUrl, getTranslations } from "@/lib/utils/i18nUtils"; import type { ContentEntryMap } from "astro:content"; import { supportedLang } from "@/lib/utils/i18nUtils"; export function getStaticPaths() { const paths = supportedLang.map((lang) => ({ params: { lang: lang || undefined }, })); return paths; } const lang = getLangFromUrl(Astro.url); const { page_not_found_content, page_not_found, back_to_home } = await getTranslations(lang as keyof ContentEntryMap); const { defaultLang } = config.language; const href = lang && lang !== defaultLang ? `/${lang}/` : "/"; ---
404

{page_not_found}

{page_not_found_content}

{back_to_home}