25 lines
1.6 KiB
Markdown
25 lines
1.6 KiB
Markdown
# Add Multilingual Support (German/English)
|
|||
|
|
|
||
|
|
## Why
|
||
|
|
The website is currently German-only, limiting accessibility for international visitors. Adding English language support will make the site more accessible to a global audience of HR professionals, recruiters, and potential collaborators who may not speak German.
|
||
|
|
|
||
|
|
## What Changes
|
||
|
|
- Configure Hugo's multilingual mode with German (de) as default and English (en) as secondary language
|
||
|
|
- Restructure content directory to support language-specific content (`content/de/` and `content/en/`)
|
||
|
|
- Translate all existing German content to English (home page, CV page, navigation, footer)
|
||
|
|
- Add language switcher UI component in navigation that maintains current page context
|
||
|
|
- Implement browser language detection to automatically select appropriate language for new visitors
|
||
|
|
- Preserve language preference across page navigation using URL-based language routing (`/de/` and `/en/` paths)
|
||
|
|
- Update templates to support language-specific strings and navigation
|
||
|
|
|
||
|
|
## Impact
|
||
|
|
- Affected specs: `internationalization` (new capability)
|
||
|
|
- Affected code:
|
||
|
|
- `/hugo.toml` (multilingual configuration)
|
||
|
|
- `/content/` directory structure (reorganize to language-specific subdirectories)
|
||
|
|
- `/layouts/partials/nav.html` (add language switcher)
|
||
|
|
- `/layouts/partials/header.html` (update if needed)
|
||
|
|
- All content files (duplicate and translate to English)
|
||
|
|
- User-facing: Language switcher in navigation, English version of all content, automatic language detection
|
||
|
|
- **BREAKING**: Content file paths change from `/content/*.md` to `/content/{de,en}/*.md`
|