Start updating paraglide to v2
This commit is contained in:
@ -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")
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user