Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ Two locales, English default:

Markdown overrides per locale live in `i18n/<locale>/docusaurus-plugin-content-pages/`. UI strings come from `i18n/<locale>/code.json` (generated by `npm run write-translations`).

### Previewing both languages locally

The Docusaurus dev server (`docusaurus start`) only serves **one language at a time**. `npm start` runs English; `npm run start:nl` runs Dutch. If you start the English server and click the language switcher, `/nl/` will render Docusaurus's internal "Page Not Found" — the route exists in the SPA but the locale isn't compiled in this dev process. The Dutch content is fine; the dev server just isn't serving it.

To test the language switcher end-to-end (both locales on the same port, like production), build once and serve:

```bash
npm run preview
# → http://localhost:3000/ (English)
# → http://localhost:3000/nl/ (Dutch)
```

`npm run preview` = `docusaurus build && docusaurus serve`. After a build exists in `build/`, `npm run serve` alone reuses it without rebuilding. Trade-off: no hot-reload — re-run for every change.

## History

This repository was migrated from the legacy Docusaurus v2.4.3 site in 2026 by extracting the new preset-based build from `design-system/sites/www/`.