Skip to content

release: v1.8.0 — bilingual release notes pipeline - #104

Merged
RealZST merged 2 commits into
mainfrom
release/v1.8.0
Jul 24, 2026
Merged

release: v1.8.0 — bilingual release notes pipeline#104
RealZST merged 2 commits into
mainfrom
release/v1.8.0

Conversation

@RealZST

@RealZST RealZST commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Prepares the v1.8.0 release (Oh My Pi agent support, #103) and ships the bilingual release-notes pipeline decided after v1.7.0:

  • localizeChangelog comment-block support — translations can live inside HTML comment blocks (<!-- lang:zh ... -->): the GitHub release page renders English only, while desktop and web clients ≥1.8.0 localize the same body by UI language. Legacy fence format stays supported.
  • Desktop fence fallback in the release workflowscripts/notes-desktop-variant.mjs converts comment blocks into the legacy fence format for latest.json only (releaseBody input of tauri-action), so desktop clients ≤1.7.0 keep getting localized update notes today. Verified against tauri-action v0 source that releaseBody feeds only latest.json, never the GitHub release body.
  • Bilingual v1.8.0.md release notes (English plain text + Chinese comment block), written before tagging this time.
  • Version bump to 1.8.0.

Per-client behavior for this release: desktop update dialog localizes (fence variant), GitHub page shows English only, web dialog shows English (old web clients read the GitHub body verbatim — localized from v1.9.0 onward once the comment-block parser is in users' hands).

Test plan

  • localizeChangelog: 9 unit tests incl. comment-block extraction, plain-text-as-English, legacy-fence compat; full vitest suite 265/265; tsc --noEmit clean.
  • notes-desktop-variant.mjs: exercised on the real v1.8.0 body, a no-block body (passthrough), and a minimal body; output verified against the actual v1.7.0 cleanChangelog/localizeChangelog code — zh UI shows Chinese only, en UI shows English + What's Changed, no fence-swallowing.
  • release.yml: YAML validated; single tauri-action step confirmed.

After merge: tag v1.8.0 on main to trigger the release workflow.

RealZST and others added 2 commits July 24, 2026 15:12
… fallback

Release notes can now keep translations inside HTML comment blocks
(<!-- lang:zh ... -->): the GitHub release page renders English only,
while clients >=1.8.0 localize the same body on both desktop and web.
Legacy fence format stays supported.

For clients <=1.7.0 (fence parser only), the release workflow derives a
fence-format variant for latest.json via scripts/notes-desktop-variant.mjs,
so existing desktop installs keep getting localized update notes. The
variant drops the "New Contributors" / "Full Changelog" tails, which the
old cleanChangelog would otherwise let swallow a following fence line.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@RealZST
RealZST merged commit 1654a0d into main Jul 24, 2026
3 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.

1 participant