Repository navigation
TRAC-2717: fix - Use the Storefront language list in local previews - #1429
Open
parthshahp wants to merge 2 commits into
Open
parthshahp wants to merge 2 commits into
parthshahp wants to merge 2 commits into
Conversation
parthshahp
force-pushed
the
parthshah/ltrac-3011-stencil-cli-local-development-does-not
branch
from
November 23, 2026 15:39
d538cdd to
7a840c4
Compare
parthshahp
marked this pull request as ready for review
November 24, 2026 14:25
rtalvarez
approved these changes
Nov 24, 2026
jairo-bc
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fromsettings.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 noAccept-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 startpreview with a simulated Storefront response and Cornerstone 6.22.0 translations now showsSpring til hovedindholdeven 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
langattribute.cc @bigcommerce/storefront-team