Fix English body content in 52 non-English committee-reports articles (2026-02-16/17/18/24)#849
Draft
Fix English body content in 52 non-English committee-reports articles (2026-02-16/17/18/24)#849
Conversation
Copilot
AI
changed the title
[WIP] Fix committee-reports articles with English content in non-English versions
Investigation: 48 committee-reports articles body content not translated (en body left in non-EN files)
Mar 6, 2026
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Copilot
AI
changed the title
Investigation: 48 committee-reports articles body content not translated (en body left in non-EN files)
WIP: Translate English body content in 52 committee-reports articles across 13 non-EN languages
Mar 6, 2026
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Copilot
AI
changed the title
WIP: Translate English body content in 52 committee-reports articles across 13 non-EN languages
Fix English body content in 51 non-English committee-reports articles (2026-02-16/17/18/24)
Mar 6, 2026
…lish versions
Replace English body sections (h2/h3 headings and paragraphs) in 52 non-English
committee-reports articles across 4 dates with properly translated content.
The lede paragraphs and article-meta were already correctly translated; only the
body sections had English content. This fix uses the existing
generateArticleContent('committee-reports', lang) pipeline to generate
structured, fully-translated body HTML for all 13 non-English languages
(sv, da, no, fi, de, fr, es, nl, ar, he, ja, ko, zh).
Dates fixed: 2026-02-16, 2026-02-17, 2026-02-18 (10 reports each, same batch)
2026-02-24 (20 reports: NU ×6, SfU ×12, UbU ×1, KU ×1)
Also adds scripts/fix-committee-reports-body.ts as a reusable utility for
future backport translation needs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
089ac2b to
b0306e2
Compare
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Copilot
AI
changed the title
Fix English body content in 51 non-English committee-reports articles (2026-02-16/17/18/24)
Fix English body content in 52 non-English committee-reports articles (2026-02-16/17/18/24)
Mar 6, 2026
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
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 batches of committee-reports articles (
2026-02-16,2026-02-17,2026-02-18,2026-02-24) were generated with untranslated English<div class="article-content">body sections across all 13 non-English languages. Lede paragraphs and article-meta were already correctly localized; only the h2/h3 headings and analytical paragraphs remained in English.Changes
news/YYYY-MM-DD-committee-reports-{lang}.htmlforda,no,fi,de,fr,es,nl,ar,he,ja,ko,zh,svacross all four datesscripts/fix-committee-reports-body.ts— reusable fixer script added for applying the same repair pattern to future batches if neededSample h2 headings post-fix:
Original prompt
This section details on the original issue you should resolve
<issue_title>🔧 Fix committee-reports articles containing English content in non-English language versions</issue_title>
<issue_description>## 📋 Issue Type
Bug Fix - Translation Completeness
🎯 Objective
Fix ~48 committee-reports articles (4 dates × 12 languages) that contain English section headings and body paragraphs instead of content in the target language.
📊 Current State
The following committee-reports articles contain English content (headings and body text) despite being designated for non-English languages:
Affected Articles (4 dates × 12 languages = 48 articles)
Specific English Content Found
<h2>What to Watch</h2>,<h2>What to Watch in the Coming Weeks</h2>content="committee, reports, betänkanden, Ukraine aid, data protection..."Example (Danish article with English content)
File:
news/2026-02-16-committee-reports-da.html🚀 Desired State
All 48 articles fully translated into their target language:
data-translatemarkers removed if present🔧 Implementation Approach
Recommended Strategy: Re-generate or Batch-Translate
Option A (Preferred): Use the existing
scripts/generate_committee_articles.pytranslation system to regenerate the affected articles with proper translations.Option B: Create a targeted fix script similar to
scripts/fix-mixed-language-descriptions.pythat:news/2026-02-{16,17,18,24}-committee-reports-{lang}.htmlscripts/validate-news-translations.tsFiles to Fix (48 total)
🤖 Recommended Agent
agent:news-journalist — Has expertise in the article generation system, translation pipeline, and can use MCP tools to regenerate articles with proper translations. The content-generator agent could also assist with batch translation.
✅ Acceptance Criteria
data-translate="true"markers eliminatednpx tsx scripts/validate-news-translations.tspasses for all fixed fileshtmlhint)📚 References
scripts/data-transformers/constants/content-labels-part1.ts,content-labels-part2.tsscripts/translation-dictionary.tsscripts/fix-mixed-language-descriptions.pyscripts/generate_committee_articles.py🏷️ Labels
type:bug,component:i18n,component:news,translation,priority-high,component:content</issue_description><agent_instructions>Fix 48 committee-reports articles (dates: 2026-02-16, 2026-02-17, 2026-02-18, 2026-02-24, languages: da,no,fi,de,fr,es,nl,ar,he,ja,ko,zh) that contain English section headings and body content. Replace English headings like "What to Watch" with CONTENT_LABELS equivalents for each language. Translate English body paragraphs to the target language. Localize meta keywords. Remove data-translate markers. Run validate-news-translations.ts to verify fixes. Use the translation-dictionary.ts and content-labels constants for proper translations.</agent_instructions>
Comments on the Issue (you are @copilot in this section)
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.