Fix English body content in 52 non-English committee-reports articles (2026-02-16/17/18/24)#849
Fix English body content in 52 non-English committee-reports articles (2026-02-16/17/18/24)#849
Conversation
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
…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>
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
089ac2b to
b0306e2
Compare
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
|
@copilot fix issues in TypeScript & JavaScript Testing / Unit Tests (Vitest) (pull_request) |
… failures Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Fixed in commit |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
2026-02-16/17/18/24-committee-reports-{lang}.htmlfor 13 languages eachscripts/fix-committee-reports-body.tsreusable utility scriptnews-evening-analysis.md— added error table with Tool not found, Empty results, Stale data, Timeout, Too broad resultsnews-article-generator.md— added error table with Tool not found, Empty results, Stale data, Timeoutnews-realtime-monitor.md— added error table with Tool not found, Empty results, Stale data, TimeoutOriginal 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.