--- import { useTranslations, useTranslatedPath } from "../i18n/utils"; import Logo from "./Logo.astro"; import ToggleTheme from "@components/ThemeToggle.svelte"; function isActive(path: string) { return Astro.url.pathname === path; } const t = useTranslations(Astro.url); const translatePath = useTranslatedPath(Astro.url); const paths = [ { link: translatePath("/blog"), text: t("nav.blog"), }, { link: translatePath("/projects"), text: t("nav.projects"), }, { link: translatePath("/photos"), text: t("nav.photos"), }, { link: translatePath("/videos"), text: t("nav.videos"), }, ]; ---