Start updating paraglide to v2

This commit is contained in:
2025-07-01 20:51:59 +02:00
parent c9cb20cd38
commit e5a95e0c97
12 changed files with 52 additions and 948 deletions

View File

@ -1,9 +1,10 @@
---
import LocaleLink from "./links/LocaleLink.astro"
import { type NavLink, resolvePathname } from "@/utils/linking"
import { type NavLink } from "@/utils/linking"
import { deLocalizeHref } from "@/paraglide/runtime"
const pathname = Astro.url.pathname
const currentPath = resolvePathname(pathname)
const currentPath = deLocalizeHref(pathname)
const isEnglish = pathname.startsWith("/en")
---