Skip to content

Fix localization issues in 2026-03-09 opposition motions articles (14 languages)#939

Merged
pethers merged 1 commit intomain-5e391782e116efe8from
copilot/sub-pr-935-again
Mar 9, 2026
Merged

Fix localization issues in 2026-03-09 opposition motions articles (14 languages)#939
pethers merged 1 commit intomain-5e391782e116efe8from
copilot/sub-pr-935-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

PR #935 introduced 14 language variants of the opposition motions article with several localization regressions identified in review. This PR addresses all of them.

Fixes

  • Skip-link not localized — All 13 non-EN files had "Skip to main content" hardcoded; replaced with per-language strings matching the pattern established in 2026-02-13-evening-analysis-*.html
  • Back-to-news links pointing to wrong index — All 13 non-EN files (header + footer <a> elements) linked to index.html; corrected to index_<lang>.html (e.g. index_da.html, index_sv.html)
  • V party motion count inconsistency — Coalition Dynamics section showed Left Party (V): 5 motions in all 14 files; corrected to 4 to match the lede, party breakdown table, and PR data
  • English body text in non-English articles — All 12 non-EN/non-SV files had untranslated English paragraphs in every "Why It Matters" block (19 per article); translated all to target language
  • Inaccurate wordCount in Schema.org structured data — EN article hardcoded "wordCount": 2400; corrected to 1854 (actual count)

Scope

Issue Files affected
Skip-link text 13 (all except en)
Back-to-news href 13 (all except en)
V count 5→4 14
Why It Matters translation 12 (all except en, sv)
wordCount 1 (en)

💡 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.

Copilot AI changed the title [WIP] Add opposition motions articles for 2026-03-09 Fix localization issues in 2026-03-09 opposition motions articles (14 languages) Mar 9, 2026
@pethers pethers marked this pull request as ready for review March 9, 2026 11:44
@pethers pethers merged commit c6528ad into main-5e391782e116efe8 Mar 9, 2026
1 of 2 checks passed
@pethers pethers deleted the copilot/sub-pr-935-again branch March 9, 2026 11:44
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.

2 participants