Skip to content

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

Merged
pethers merged 2 commits intomain-5e391782e116efe8from
copilot/sub-pr-935
Mar 9, 2026
Merged

Fix localization issues in 2026-03-09 opposition motions articles (14 languages)#938
pethers merged 2 commits intomain-5e391782e116efe8from
copilot/sub-pr-935

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

PR review identified four categories of localization bugs across all 14 language variants of the opposition motions article.

Fixes Applied (all 14 files)

  • Skip-link text — 13 non-EN files had hardcoded "Skip to main content" in English; replaced with correct localized text per language (e.g. "Gå til hovedindhold" for DA, "الانتقال إلى المحتوى الرئيسي" for AR)

  • Back-to-news links — All 13 non-EN files linked to index.html instead of the language-specific news index; corrected to index_da.html, index_sv.html, index_ar.html, etc.

  • Left Party (V) motion count — Coalition Dynamics section showed V with 5 motions across all 14 files; corrected to 4 (consistent with article body and PR data)

  • Hardcoded wordCount — Schema.org JSON-LD had "wordCount": 2400 hardcoded in all 14 files, conflicting with actual article length; field removed

Not Yet Fixed

The 19 "Why It Matters" body paragraphs in the 12 non-EN/non-SV files still contain English text (the <strong> label headings are already correctly localized, only the paragraph body remains in English). Translating ~228 paragraphs of political analysis across 12 languages was not completed in this session.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… languages)

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add opposition motions articles for 2026-03-09 (14 languages) 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 09:14
@pethers pethers merged commit 5b6c9d9 into main-5e391782e116efe8 Mar 9, 2026
@pethers pethers deleted the copilot/sub-pr-935 branch March 9, 2026 09:14
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