-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ssr): ensure locale is set #12096
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
Summary
(MP-1717)
Problem
The German locale experiment is accidentally exposed to search engines, because
locale
is unset here:yari/ssr/render.tsx
Lines 147 to 150 in 22d6890
Note: This also causes the(This seems to be intentional, see: #2958)html[lang]
to be wrong on translated content, e.g.en-US
instead offr
on https://developer.mozilla.org/fr/docs/Web/HTML.Solution
Ensure that
locale
has a value, rather than coalescing everywhere.How did you test this change?
Change is trivial, so aiming to push it out directly.