Skip to content

Scope client translation messages - #525

Merged
laugharn merged 1 commit into
release/2026-08-23-hydrogenfrom
refactor/server-first-translations
Aug 23, 2026
Merged

laugharn merged 1 commit into
release/2026-08-23-hydrogenfrom
refactor/server-first-translations

Conversation

@laugharn

Copy link
Copy Markdown
Collaborator

Summary

  • keep translations server-first and stop serializing the complete message catalog from the root layout
  • scope client messages to the nav/search, cart, agent, collection, product, and address-management islands that use them
  • retain only shared error-boundary copy at the root, where Next.js client error boundaries require it
  • document the translation boundary pattern and make it a template agent rule
  • update and sync the analytics skill so it does not restore the old full-catalog provider

Payload shape

The English catalog is about 15.5 KB on disk. The previous root provider sent all 359 messages to every route. The new base shell sends only common, nav, and cart; route-specific and opt-in namespaces are serialized only when their interactive islands render.

Verification

  • cd apps/template && pnpm lint — passed, 0 warnings and 0 errors
  • cd apps/template && pnpm build — passed; 32/32 static pages generated
  • cd apps/docs && pnpm typecheck — passed
  • changed docs oxfmt --check — passed
  • docs oxlint . — 0 errors; one pre-existing Satori <img> warning
  • npx tsx apps/docs/scripts/sync-skills.ts — one expected page updated, 0 errors
  • git diff --check — passed

@vercel

vercel Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
shop-docs Ready Ready Preview, v0 Aug 23, 2026 5:38pm
shop-template Ready Ready Preview, v0 Aug 23, 2026 5:38pm

@laugharn
laugharn merged commit 34f8fbd into release/2026-08-23-hydrogen Aug 23, 2026
7 checks passed
@laugharn
laugharn deleted the refactor/server-first-translations branch August 23, 2026 17:41

This branch was successfully deployed

2 active deployments
Preview – shop-template — 4dab841c Deployed Aug 23, 2026 by vercel[bot]
Preview – shop-docs — 4dab841c Deployed Aug 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant