Button group to switch languages.
Localized pathname function for links. inlang/paraglide-astro package Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
10
src/links.ts
10
src/links.ts
@ -2,22 +2,22 @@ import * as m from "./paraglide/messages.js"
|
||||
|
||||
interface Link {
|
||||
label: string
|
||||
to: string
|
||||
to: `/${string}`
|
||||
}
|
||||
|
||||
const Links: Link[] = [
|
||||
{
|
||||
label: m.home(),
|
||||
to: "/",
|
||||
to: "/"
|
||||
},
|
||||
{
|
||||
label: m.myProjects(),
|
||||
to: "/project",
|
||||
to: "/project"
|
||||
},
|
||||
{
|
||||
label: m.contactMe(),
|
||||
to: "/contact-me",
|
||||
},
|
||||
to: "/contact-me"
|
||||
}
|
||||
]
|
||||
|
||||
export default Links
|
||||
|
Reference in New Issue
Block a user