Add i18n support with NL/EN language switching (ST-001)
- Add English translations to cv-data.ts with getCvData(lang) helper - Create app/[lang]/ routing with static generation for nl and en - Add language switcher in nav (NL / EN toggle) - Add middleware for Accept-Language auto-redirect on root path - Root layout reads x-lang header to set <html lang> correctly - All components accept lang prop and render translated content Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
61e603b5d7
commit
d352a7d496
13 changed files with 540 additions and 177 deletions
24
app/page.tsx
24
app/page.tsx
|
|
@ -1,23 +1,5 @@
|
|||
import { Nav } from "@/components/nav";
|
||||
import { Hero } from "@/components/hero";
|
||||
import { MotivationSection } from "@/components/motivation";
|
||||
import { ExperienceSection } from "@/components/experience";
|
||||
import { SkillsSection } from "@/components/skills";
|
||||
import { AppsSection } from "@/components/apps";
|
||||
import { ContactSection } from "@/components/contact";
|
||||
import { Footer } from "@/components/footer";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Nav />
|
||||
<Hero />
|
||||
<MotivationSection />
|
||||
<ExperienceSection />
|
||||
<SkillsSection />
|
||||
<AppsSection />
|
||||
<ContactSection />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
export default function RootPage() {
|
||||
redirect("/nl");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue