Skip to content
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(client): fallback page lang to site lang (close #1365) #1380

Merged
merged 3 commits into from Jul 11, 2023

Conversation

vordimous
Copy link
Contributor

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Provide a description in this PR that addresses what the PR is solving. If this PR is going to solve an existing issue, please reference the issue (e.g. close #123).

What is the purpose of this pull request?

  • Bug fix
  • New feature
  • Documentation update
  • Other

Description

Some pages were rendered with the wrong locale lang set. I have updated the resolver to look at the page data and the siteLocaleData. Additionally, I have set the default to be the same as the other Locale classes: en-US. This should ensure all pages have the correct locale lang set

fixes #1365

@Mister-Hope
Copy link
Member

LGTM

@meteorlxy meteorlxy changed the title Update resolvers.resolvePageLang to pull from siteLocaleData fix(client): fallback page lang to site lang (close #1365) Jul 11, 2023
@meteorlxy meteorlxy merged commit debd65d into vuepress:main Jul 11, 2023
29 checks passed
@meteorlxy
Copy link
Member

Thanks for your contributions! ❤️

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.

[Bug report] lang on the 404 page is not set and defaults the Locale to "en"
3 participants