Skip to content

fix: localize page metadata - #788

Open
Laaaaaaaam wants to merge 1 commit into
666ghj:mainfrom
Laaaaaaaam:fix/localized-page-metadata
Open

fix: localize page metadata#788
Laaaaaaaam wants to merge 1 commit into
666ghj:mainfrom
Laaaaaaaam:fix/localized-page-metadata

Conversation

@Laaaaaaaam

@Laaaaaaaam Laaaaaaaam commented Aug 25, 2026

Copy link
Copy Markdown

Summary

  • Update the document title and meta description from the active locale.
  • Keep the document language attribute synchronized with the locale.

Fixes #786.

Testing

  • npm run build
  • Verified in the local Vite app that switching between Chinese and English updates the title, description, and lang; the English values persist after reload.

@R-zin R-zin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It localizes the page metadata that you’re explicitly updating.

When the locale changes, it updates:

  • Page title → meta.title
  • Meta description → meta.description
  • HTML language attribute →

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.

meta.title and meta.description are translated but never applied - browser tab stays Chinese in every language

2 participants