1.2 KiB
1.2 KiB
ADDED Requirements
Requirement: Locale content JSON files contain nav strings
src/content/en.json and src/content/nl.json SHALL each contain a top-level "nav" key with the following structure:
links: array of objects withlabel: stringandhref: stringfor each nav linkcta: string — label for the Connect CTA buttonctaHref: string — href for the Connect CTA buttonlangSwitch: object withen: stringandnl: stringlabels for the language switcher
Scenario: en.json nav section has correct structure
- WHEN
src/content/en.jsonis parsed as JSON - THEN it SHALL have a
navobject containinglinks(array of 3 items withlabelandhref),ctastring,ctaHrefstring, andlangSwitchobject withenandnlkeys
Scenario: nl.json nav section has Dutch labels
- WHEN
src/content/nl.jsonis parsed as JSON - THEN
nav.linksSHALL contain Dutch labels ("Diensten", "AI Launchpad", "Over Ons"),nav.ctaSHALL be "Verbind", andnav.ctaHrefSHALL be "/nl/contact"
Scenario: Build succeeds with nav strings added
- WHEN
npm run buildis executed after addingnavkeys to both JSON files - THEN the build SHALL complete without TypeScript errors