Skip to content

Commit 9f954f7

Browse files
committed
fix link translation imprint
1 parent 7d9ff87 commit 9f954f7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/components/Footer.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { Locale } from "next-intl";
33
import Link from "next/link";
44
import LocaleSwitcher from "./LocaleSwitcher";
55
import { getTranslations } from "next-intl/server";
6+
import { Link as IntlLink } from "@/src/i18n/navigation";
67

78
export default async function Footer({ lang }: { lang: Locale }) {
89
const t = await getTranslations({ namespace: "Navigation", locale: lang });
@@ -62,7 +63,7 @@ export default async function Footer({ lang }: { lang: Locale }) {
6263
<ul className="space-y-4">
6364
<li>
6465
<Link
65-
href="#projects"
66+
href="/#projects"
6667
className="text-zinc-400 hover:text-white transition-colors flex items-center gap-2 group"
6768
>
6869
<span className="w-1.5 h-1.5 rounded-full bg-fuchsia-400 opacity-0 group-hover:opacity-100 transition-opacity" />
@@ -71,7 +72,7 @@ export default async function Footer({ lang }: { lang: Locale }) {
7172
</li>
7273
<li>
7374
<Link
74-
href="#services"
75+
href="/#services"
7576
className="text-zinc-400 hover:text-white transition-colors flex items-center gap-2 group"
7677
>
7778
<span className="w-1.5 h-1.5 rounded-full bg-fuchsia-400 opacity-0 group-hover:opacity-100 transition-opacity" />
@@ -80,7 +81,7 @@ export default async function Footer({ lang }: { lang: Locale }) {
8081
</li>
8182
<li>
8283
<Link
83-
href="#about"
84+
href="/#about"
8485
className="text-zinc-400 hover:text-white transition-colors flex items-center gap-2 group"
8586
>
8687
<span className="w-1.5 h-1.5 rounded-full bg-fuchsia-400 opacity-0 group-hover:opacity-100 transition-opacity" />
@@ -89,7 +90,7 @@ export default async function Footer({ lang }: { lang: Locale }) {
8990
</li>
9091
<li>
9192
<Link
92-
href="#contact"
93+
href="/#contact"
9394
className="text-zinc-400 hover:text-white transition-colors flex items-center gap-2 group"
9495
>
9596
<span className="w-1.5 h-1.5 rounded-full bg-fuchsia-400 opacity-0 group-hover:opacity-100 transition-opacity" />
@@ -119,18 +120,18 @@ export default async function Footer({ lang }: { lang: Locale }) {
119120
{t("ghostbyte_all_rights_reserved")}
120121
</p>
121122
<div className="flex gap-6">
122-
<Link
123+
<IntlLink
123124
href="/privacy-policy"
124125
className="text-sm text-gray-400 hover:text-fuchsia-400 transition-colors"
125126
>
126127
{t("privacy_policy")}
127-
</Link>
128-
<Link
128+
</IntlLink>
129+
<IntlLink
129130
href="/imprint"
130131
className="text-sm text-gray-400 hover:text-fuchsia-400 transition-colors"
131132
>
132133
{t("imprint")}
133-
</Link>
134+
</IntlLink>
134135
</div>
135136
</div>
136137
</div>

0 commit comments

Comments
 (0)