SSR and i18n

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
2024-10-12 18:29:44 +02:00
parent 1a2fec6a59
commit 740cba625d
20 changed files with 273 additions and 62 deletions

View File

@ -1,22 +1,31 @@
import * as m from "./paraglide/messages.js"
import * as m from "@/paraglide/messages.js"
import type { NavLink } from "@/utils/linking.ts"
interface Link {
label: string
to: `/${string}`
label: () => string
to: NavLink
}
const Links: Link[] = [
{
label: m.home(),
label: m.home,
to: "/"
},
{
label: m.myProjects(),
to: "/project"
label: m.myProjects,
to: "/projects"
},
{
label: m.contactMe(),
to: "/contact-me"
label: m.myLinks,
to: "/links"
},
{
label: m.hardware,
to: "/hardware"
},
{
label: m.contactMe,
to: "/contact"
}
]