Skip to content

fix(preview): preserve typography when switching languages - #257

Merged
ThisIs-Developer merged 1 commit into
mainfrom
fix/locale-preview-typography
Sep 20, 2026
Merged

ThisIs-Developer merged 1 commit into
mainfrom
fix/locale-preview-typography

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

Selecting Japanese or Korean applied interface-language CSS to every Markdown preview, changing letter spacing, line height, text justification, wrapping, and heading weight even for English documents and release notes. Remove those overrides from the shared and bundled desktop stylesheets so switching languages preserves the normal document typography.

Add regression coverage for Japanese/Korean switching in both orders, returning to English, document reloads, frontmatter, tables, headings, mixed Japanese/Korean text, and release notes. Document the typography behavior in the localization guide.

Validation:

  • Reproduced the document and release-note typography failures before the CSS fix.
  • npm test: static/SEO checks and all 186 Chromium tests passed.
  • npx playwright test tests/e2e/smoke.spec.js tests/e2e/localization-typography.spec.js: all 18 checks passed across Chromium, Firefox, and WebKit.
  • Captured welcome-page and release-note preview screenshots under English, Japanese, and Korean; each surface was pixel-identical across the three languages.
  • Verified the shared and desktop stylesheets match and git diff --check passes.

@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
markdown-viwer Ready Ready Preview Sep 20, 2026 8:59pm UTC

@ThisIs-Developer
ThisIs-Developer merged commit 5b29c56 into main Sep 20, 2026
5 checks passed
@ThisIs-Developer
ThisIs-Developer deleted the fix/locale-preview-typography branch September 21, 2026 15:30

This branch was successfully deployed

1 active deployment
Preview — 9295b42a Deployed Sep 20, 2026 by vercel[bot]
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.

1 participant