Skip to content

TRAC-2717: fix - Use the Storefront language list in local previews - #1429

Open
parthshahp wants to merge 2 commits into
masterfrom
parthshah/ltrac-3011-stencil-cli-local-development-does-not
Open

parthshahp wants to merge 2 commits into
masterfrom
parthshah/ltrac-3011-stencil-cli-local-development-does-not

Conversation

@parthshahp

@parthshahp parthshahp commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What?

Use the ordered language list in the final Storefront Pencil response header, X-BC-Stencil-Accept-Language, to render local theme strings. Paper still handles translation lookup and fallback order. The CLI no longer guesses from settings.request.locale. If the header is missing or blank, the CLI keeps its existing store/browser selection rules and uses the store default when the browser sends no Accept-Language.

This draft is the CLI half of a cross-repository fix. Storefront #6375 must be deployed for the reported locale mismatch to be fixed against a real store. Older Storefront versions continue to work without the header.

All 358 tests and lint passed locally. A real stencil start preview with a simulated Storefront response and Cornerstone 6.22.0 translations now shows Spring til hovedindhold even when the first browser language matches the page locale. Tests cover ordered fallback, older responses, and the single-response remote render path. No authenticated store or deployment was used.

Tickets / Documentation

Screenshots (if appropriate)

No screenshots. Verified the rendered text and HTML lang attribute.

cc @bigcommerce/storefront-team

@parthshahp parthshahp changed the title TRAC-2717: fix - Use the storefront page locale for local theme strings TRAC-2717: fix - Use the Storefront language list in local previews Nov 23, 2026
@parthshahp
parthshahp force-pushed the parthshah/ltrac-3011-stencil-cli-local-development-does-not branch from d538cdd to 7a840c4 Compare November 23, 2026 15:39
@parthshahp
parthshahp marked this pull request as ready for review November 24, 2026 14:25
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.

3 participants