One view per page with a lang prop and two thin route wrappers; localePath and switchPath build the paths, loc resolves plain or paired values, and a Node script checks key parity.
- Internal paths end with a slash to match canonical URLs; GitHub Pages redirects the other form.