* web: preload the locale catalog to kill the flash of English
The locale catalog chunk previously downloaded only after the entry bundle
booted, so a non-English page briefly rendered in English. The server now
tells the browser which catalog to fetch up front.
- the web build emits dist/manifest.json mapping each locale tag to its
content-hashed catalog chunk (esbuild metafile), for both build and watch
- a {% locale_modulepreload %} template tag reads that manifest (cached
in-process, tolerant of a missing/malformed file) and emits a
<link rel=modulepreload> for the request's resolved locale; the source
locale and en-XA pseudo-locale emit nothing
- wire the tag into skeleton.html next to the entry scripts
Full production-build verification of the manifest is pending a working web
dependency install (this tree is missing the MDX build deps); the plugin's
metafile->manifest mapping is covered by the template-tag tests and an
isolated esbuild probe. Making first render await the catalog import is a
small follow-up that pairs with the C4 LocaleContextController rework.
Co-authored-by: Playpen Agent <[email protected]>
* no more mark safe
Signed-off-by: Jens Langhammer <[email protected]>
* actually no we need it
Signed-off-by: Jens Langhammer <[email protected]>
* ts ts ts claude
Signed-off-by: Jens Langhammer <[email protected]>
---------
Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Playpen Agent <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>