Skip to content

Fix HTML lang attribute not reflecting language variants#4186

Merged
nolannbiron merged 1 commit intomainfrom
nolann/rnd-10412-html-lang-attribute-not-reflecting-language-variants-always
Apr 14, 2026
Merged

Fix HTML lang attribute not reflecting language variants#4186
nolannbiron merged 1 commit intomainfrom
nolann/rnd-10412-html-lang-attribute-not-reflecting-language-variants-always

Conversation

@nolannbiron
Copy link
Copy Markdown
Member

Use the actual content language for the HTML lang attribute instead of the UI translation locale. Previously, languages without UI translations (e.g. Polish) would always show lang="en".

Use the actual content language for the HTML lang attribute instead of
the UI translation locale. Previously, languages without UI translations
(e.g. Polish) would always show lang="en".
@linear
Copy link
Copy Markdown

linear bot commented Apr 14, 2026

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 14, 2026

⚠️ No Changeset found

Latest commit: 605a06b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ✅ No changes detected - Apr 14, 2026, 10:53 AM
customers-v2-vercel (Inspect) ✅ No changes detected - Apr 14, 2026, 10:52 AM
v2-cloudflare (Inspect) 👍 Changes approved 5 changed Apr 14, 2026, 10:57 AM
v2-vercel (Inspect) 👍 Changes approved 5 changed Apr 14, 2026, 10:57 AM

@nolannbiron nolannbiron merged commit 2bdade3 into main Apr 14, 2026
17 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-10412-html-lang-attribute-not-reflecting-language-variants-always branch April 14, 2026 11:14
clairechabas added a commit that referenced this pull request Apr 14, 2026
* main:
  Fix HTML lang attribute not reflecting language variants (#4186)
  Docs Embed: Better support light/dark mode overrides (#4181)
  Translations dropdown should show language spaces that best matches the current space title (#4184)
  Fix llms.txt and llms-full.txt language variants filtering (#4179)
  Hide empty sidebar on OpenAPI pages (#4180)
clairechabas added a commit that referenced this pull request Apr 15, 2026
…ngs-in-page-outline

* main:
  Make ToC groups collapsible and other styles fixes/improvements (#4177)
  Fix HTML lang attribute not reflecting language variants (#4186)
  Docs Embed: Better support light/dark mode overrides (#4181)
  Translations dropdown should show language spaces that best matches the current space title (#4184)
  Fix llms.txt and llms-full.txt language variants filtering (#4179)
  Hide empty sidebar on OpenAPI pages (#4180)
  Rework page layout (#4013)
  Version Packages (#4163)
  Fix toolbar design (#4175)
  Extend gitbook/expr std lib with some additional methods (#4173)
  Prepare for step.content to be optional (#4174)
  Refactor test setup for improved mock restoration (#4176)
  Reduce search debounce (#4170)
  Exclude language variants from llms.txt and llms-full.txt (#4165)
  Fix MCP getPage tool returning page not found (#4166)
  Expose a ~gitbook/mcp/auth endpoint for non-VA adaptive content sites (#4155)
  Improve AI agent detection and readability by outputting 200 for page not found (#4164)
  Respect locale to format date in update block (#4160)
  Fix HTML lang attribute not reflecting site language variants (#4161)
  Improve Assistant form controls, i18n, and UX (#4159)
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.

2 participants