feat(i18n): nl at root URLs + keep devtools in the docker demo

Serve the source locale (nl) at / instead of /nl/: angular.json sourceLocale is now
{ code: 'nl', subPath: '' } → nl output at browser/ root (base href /), en stays /en/.
Rework localeLinks (nl → bare path, en → /en/…) + spec, and serve-i18n.mjs (nl assets at
root, en under /en/, / serves the nl index). And build the docker demo (+ serve:i18n) with
`--configuration development --localize` so isDevMode() stays true and the dev `⚙ state`
panel + role/scenario switchers render in the localized compose demo (they were correctly
gated off in the previous production build). Verified: nl base href /, en /en/, ngDevMode present.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
eho
2026-07-23 19:24:33 +02:00
co-authored by Claude Opus 4.8
parent deb5d77e04
commit c00e607b8f
6 changed files with 35 additions and 31 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
"gen": "plop",
"gen:value-object": "plop value-object",
"gen:form-machine": "plop form-machine",
"serve:i18n": "ng build --localize && node scripts/serve-i18n.mjs",
"serve:i18n": "ng build --configuration development --localize && node scripts/serve-i18n.mjs",
"ci": "bash scripts/ci-local.sh",
"e2e": "playwright test",
"extract-i18n": "ng extract-i18n --output-path src/locale"