Add i18n to home sections, improve consent management and middleware asset handling

Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-12 15:57:28 +00:00
parent 6a4055500b
commit 683735cc63
11 changed files with 173 additions and 85 deletions

View File

@@ -48,6 +48,41 @@ jest.mock("next-intl", () => ({
};
return map[key] || key;
}
if (namespace === "home.hero") {
const map: Record<string, string> = {
"features.f1": "Next.js & Flutter",
"features.f2": "Docker Swarm & CI/CD",
"features.f3": "Self-Hosted Infrastructure",
description:
"Student and passionate self-hoster building full-stack web apps and mobile solutions. I run my own infrastructure and love exploring DevOps.",
ctaWork: "View My Work",
ctaContact: "Contact Me",
};
return map[key] || key;
}
if (namespace === "home.about") {
const map: Record<string, string> = {
title: "About Me",
p1: "Hi, I'm Dennis a student and passionate self-hoster based in Osnabrück, Germany.",
p2: "I love building full-stack web applications with Next.js and mobile apps with Flutter. But what really excites me is DevOps: I run my own infrastructure and automate deployments with CI/CD.",
p3: "When I'm not coding or tinkering with servers, you'll find me gaming, jogging, or experimenting with automation workflows.",
funFactTitle: "Fun Fact",
funFactBody:
"Even though I automate a lot, I still use pen and paper for my calendar and notes it helps me stay focused.",
};
return map[key] || key;
}
if (namespace === "home.contact") {
const map: Record<string, string> = {
title: "Contact Me",
subtitle:
"Interested in working together or have questions about my projects? Feel free to reach out!",
getInTouch: "Get In Touch",
getInTouchBody:
"I'm always available to discuss new opportunities, interesting projects, or simply chat about technology and innovation.",
};
return map[key] || key;
}
return key;
},
NextIntlClientProvider: ({ children }: { children: React.ReactNode }) =>