Skip to content

ADG-9617 add meta title and description to translations#878

Merged
IldarKamalov merged 3 commits into
masterfrom
ADG-9617
Jun 1, 2026
Merged

ADG-9617 add meta title and description to translations#878
IldarKamalov merged 3 commits into
masterfrom
ADG-9617

Conversation

@IldarKamalov
Copy link
Copy Markdown
Member

@IldarKamalov IldarKamalov commented Jun 1, 2026

Translated title and tagline via Root swizzle

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds runtime translation support for the Docusaurus site title and tagline by swizzling @theme/Root, so localized metadata (title/description) can be derived from siteConfig per locale.

Changes:

  • Introduces a Root wrapper that translates siteConfig.title and siteConfig.tagline and re-provides them via DocusaurusContext.
  • Adds siteConfig.title / siteConfig.tagline entries to the English translation catalog (i18n/en/code.json).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/theme/Root/index.js Wraps the app Root to override siteConfig.title/tagline with translated values in Docusaurus context.
i18n/en/code.json Adds translation keys for the site title and tagline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/theme/Root/index.js Outdated
Comment thread src/theme/Root/index.js
Comment thread src/theme/Root/index.js Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Preview was deployed to: https://pull-request-878.kb-adg.pages.dev/

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Preview was deployed to: https://pull-request-878.kb-adg.pages.dev/

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Preview was deployed to: https://pull-request-878.kb-adg.pages.dev/

@IldarKamalov IldarKamalov merged commit 320bf61 into master Jun 1, 2026
4 checks passed
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