fix(ja): localize category/heading, correct article type, fix JSON-LD description truncation#497
Merged
pethers merged 2 commits intonews/2026-02-24-opposition-motions-24e7583b05f68fd1from Feb 24, 2026
Conversation
…fix index description truncation Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Add opposition motions analysis for February 2026
fix(ja): localize category/heading, correct article type, fix JSON-LD description truncation
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four issues in the 2026-02-24 opposition motions release: Japanese article had un-localized UI strings and wrong article type in its index entry; the English index had a mid-word truncated JSON-LD description.
File fixes
news/index_ja.html—"type": "prospective"→"type": "analysis"for the 2026-02-24 opposition motions entrynews/2026-02-24-opposition-motions-ja.html— visible category spanAnalysis→分析; first section<h2>Opposition Motions</h2>→<h2>野党動議</h2>news/index.html— replace hard-truncated JSON-LD description (…waste refor) with full sentenceRoot cause fix (generator)
scripts/generate-news-indexes.ts— ItemList description wassubstring(0, 150)with no word-boundary handling:Pattern matches the word-boundary truncation already used for excerpts at line 811.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.