Fix article metadata, translations, language switchers, and CSS standardization#304
Merged
pethers merged 6 commits intonews-evening/2026-02-18-2bd1d50436a1fdabfrom Feb 18, 2026
Merged
Conversation
…R/ZH/KO translations Co-authored-by: pethers <[email protected]>
Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Update foreign policy declaration analysis for Ukraine commitment
Fix Evening Analysis type classification and complete multi-language translations
Feb 18, 2026
Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
Fix Evening Analysis type classification and complete multi-language translations
Add language switchers to 2026-02-18 news articles
Feb 18, 2026
Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
Add language switchers to 2026-02-18 news articles
Add language switchers to all 179 articles missing them
Feb 18, 2026
…embedded CSS (305 files) Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
Add language switchers to all 179 articles missing them
Fix article metadata, translations, language switchers, and CSS standardization
Feb 18, 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.
Addresses multiple content quality issues across 305 news articles: incorrect type classification, incomplete translations, broken language navigation, and design system violations.
Changes
Article Type Classification
2026-02-18-evening-analysisincorrectly classified asprospective(should beanalysis)SEO Structured Data
2026-02-18-evening-analysis-en.htmlTranslation Completeness
2026-02-18-evening-analysisLanguage Switcher Implementation
Problem: 179 articles missing language switchers entirely, preventing cross-language navigation
Solution: Auto-discovery script generates switchers between
<body>and<article>tags:Accurate Language Discovery
Problem: Language switchers showed all 14 languages regardless of available translations
2026-02-10-biodiversity-citizenshiphas EN/SV only, but showed all 14 linksSolution: Script scans filenames to detect available translations, generates switchers with only existing languages
Before:
After:
Design System Compliance
<style>blocks from 28 articles (2026-02-10, 2026-02-13, 2026-02-14, generic patterns)styles.css<style>.*?</style>with multiline/dotall flagsScripts Created
scripts/add-language-switchers.py- Initial 2026-02-18 articlesscripts/add-all-language-switchers.py- Remaining 179 articlesscripts/fix-language-switchers-and-css.py- Accurate discovery + CSS cleanupImpact
Screenshot
Language switcher now displays only 2 available languages (EN, SV) instead of all 14, eliminating broken links.
💡 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.