Skip to content

feat: internationalize release notes — website changelog + English GitHub notes#198

Merged
huhamhire merged 2 commits into
devfrom
feat/changelog-i18n
Jul 5, 2026
Merged

feat: internationalize release notes — website changelog + English GitHub notes#198
huhamhire merged 2 commits into
devfrom
feat/changelog-i18n

Conversation

@huhamhire

Copy link
Copy Markdown
Owner

Internationalizes release notes by moving the bilingual venue to the website and keeping the GitHub Release single-language. Two commits.

1. Website hosts a bilingual changelog page (6f7c3cf)

  • CHANGELOG.md / CHANGELOG.zh-CN.md are synced into the VitePress site through the existing sync-docs pipeline → /changelog (EN) and /zh/changelog (ZH). The language-switcher line is stripped and escaping links (LICENSE / NOTICE) are rewritten to GitHub, same as the guide.
  • A Changelog nav entry per locale; generated pages are gitignored.
  • The download page's "Release notes" link now points at the on-site changelog (per locale, base-aware) instead of the GitHub release page.
  • Zero new maintenance: the two CHANGELOG files remain the single source of truth (already kept in sync each release).

2. GitHub Release notes → single-language English + link (9bb6119)

  • release.yml injects the English canonical CHANGELOG.md (was the Chinese mirror), so the Release body is single-language and short.
  • RELEASE_NOTES.md fully englishified (preview warning, install, first-launch, license) + a line: "Full changelog — every version, in English and 简体中文: <website>/changelog" for other-language readers.
  • packaging-release.md updated to document the English-injection + website-changelog model.

Why this shape

GitHub Release notes are static server-rendered Markdown — no JS, no navigator.language, so <details> collapsibles can't adapt to the viewer's locale and full bilingual inline just doubles the length. The website (VitePress i18n) is the venue that renders per-locale and adapts, so bilingual lives there; GitHub stays single-language English (matching the project's English-canonical external surfaces) and links out.

Verification

npm run build in website/ passes (sync copies both CHANGELOG files, no dead links, pages render). RELEASE_NOTES.md has no residual Chinese; release.yml injection source is CHANGELOG.md.

🤖 Generated with Claude Code

huhamhire and others added 2 commits July 5, 2026 17:06
Sync CHANGELOG.md / CHANGELOG.zh-CN.md into the VitePress site (EN root at
/changelog, zh at /zh/changelog) through the existing sync-docs pipeline:
the language-switcher line is stripped and escaping links (LICENSE / NOTICE)
are rewritten to absolute GitHub URLs, same as the guide. Adds a Changelog
nav entry per locale and gitignores the generated pages. The download page's
"Release notes" link now points at the on-site changelog (per locale) instead
of the GitHub release page.

First step toward internationalizing release notes: the site becomes the
real bilingual venue (VitePress i18n renders per-locale and adapts to the
visitor's locale), so the GitHub Release can later drop to a single language
and link here.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… changelog

The GitHub Release body now injects the English canonical CHANGELOG.md
(previously the Chinese mirror) and RELEASE_NOTES.md is fully English. This
keeps the Release page single-language and short; the bilingual venue is the
website changelog (built from both CHANGELOG files, per-locale rendering),
linked from the notes for other-language readers.

- release.yml: awk source CHANGELOG.zh-CN.md → CHANGELOG.md; comments/warning updated.
- RELEASE_NOTES.md: englishified (preview warning, install, first-launch, license) + a
  "full changelog (EN & 简体中文): <website>/changelog" line.
- packaging-release.md: document the English-injection + website-changelog model.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huhamhire huhamhire added enhancement New feature or request documentation Improvements or additions to documentation labels Jul 5, 2026
@huhamhire huhamhire merged commit 72b234a into dev Jul 5, 2026
3 checks passed
@huhamhire huhamhire deleted the feat/changelog-i18n branch July 5, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant