Skip to content

Comments

Update Arabic translations for the evening analysis article, enhancing clarity and accuracy.#181

Merged
pethers merged 32 commits intomainfrom
tss
Feb 15, 2026
Merged

Update Arabic translations for the evening analysis article, enhancing clarity and accuracy.#181
pethers merged 32 commits intomainfrom
tss

Conversation

@pethers
Copy link
Member

@pethers pethers commented Feb 15, 2026

No description provided.

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

…emnant

- Translate all Swedish h3 titles and body text to Hebrew, Japanese, Korean, Chinese
- Fix og:locale metadata for each language (he_IL, ja_JP, ko_KR, zh_CN)
- Translate site-tagline and section headers to target languages
- Replace undefined document links with actual references
- Fix remaining English 'Parliamentary Pulse' h2 in Finnish evening analysis
- All 13 non-SV languages now fully translated (51+ article files total)
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

- Remove </p></p> double closing tags (20 files)
- Remove <p><p> double opening tags (6 committee-reports files)
- HTMLHint: 97 files scanned, 0 errors
- All 900 tests pass
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copilot AI and others added 4 commits February 15, 2026 10:58
…and-index

[WIP] Separate screenshot script changes from translation PR
Separate screenshot script changes from Arabic translation PR
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

@pethers
Copy link
Member Author

pethers commented Feb 15, 2026

@copilot remove all references for for sample html files. DO NOT want any samples, only real code !!

Why was this restored ? Is it used by agentic workflows or why was it restored ?

2026-02-14-sample-no-embedded-css-en.html
sample-economist-style.html

Copy link
Contributor

Copilot AI commented Feb 15, 2026

@pethers I've opened a new pull request, #187, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits February 15, 2026 11:06
- Delete news/sample-economist-style.html
- Delete news/2026-02-14-sample-no-embedded-css-en.html
- Update scripts/take-screenshot.js to use real article (2026-02-13-evening-analysis-en.html)
- Update NEWS_ARTICLE_STYLING_GUIDE.md to reference real examples instead of sample
- Regenerate news/index.html and sitemap.xml to remove sample file entries
- HTMLHint validation: 124 files, 0 errors

Co-authored-by: pethers <[email protected]>
Remove sample HTML files from production codebase
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 50 out of 51 changed files in this pull request and generated 16 comments.

Comments suppressed due to low confidence (1)

scripts/take-screenshot.js:16

  • The screenshot script now targets a single hard-coded dated article file. This will break as soon as that file is renamed/removed and makes the script less reusable. Consider accepting the target HTML path as a CLI arg (with a sensible default), or resolving the newest English article dynamically from news/index.html.

Comment on lines 392 to 394
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-nl.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-nl.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines 392 to 394
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-ko.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-ko.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines 447 to 449
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-da.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-da.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines 406 to 408
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-ar.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-ar.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines +210 to +213
<h3>국가 공무원 파견 조건 개선</h3>
<p><strong>위원회:</strong> SoU</p>
<p><strong>문서:</strong> <a href="https://data.riksdagen.se/dokument/HD01SoU36.html" class="document-link" rel="noopener noreferrer">undefined</a></p>
<p>의회 사안에 대한 위원회 보고서.</p>
<p><strong>문서:</strong> <a href="https://data.riksdagen.se/dokument/HD01SoU36.html" class="document-link" rel="noopener noreferrer">SoU36</a></p>
<p>국가 소속 인력의 해외 파견에 대한 조건을 개선하기 위한 위원회 보고서.</p>
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The visible article content now has correct document labels, but the JSON-LD NewsArticle "articleBody" still contains "undefined" document link labels (visible via search for "undefined" in this file). Please regenerate/update the structured data so it matches the visible article content for SEO consistency.

Copilot uses AI. Check for mistakes.
Comment on lines 229 to 231
<p><strong>Author:</strong> undefined</p>
<p><strong>Party:</strong> undefined</p>
<p><strong>Document:</strong> <a href="https://data.riksdagen.se/dokument/HD023901.html" class="document-link" rel="noopener noreferrer">Mot. 2025/26:3901</a></p>
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page renders "Author: undefined" / "Party: undefined" for motions in the list, which is user-facing broken content. The generator should either populate these fields from data sources or omit the lines / use an explicit fallback like "Unknown" when data is missing.

Copilot uses AI. Check for mistakes.
Comment on lines 392 to 394
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-ja.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-ja.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines 408 to 410
"date": "2026-02-13T18:00:00.000Z",
"type": "analysis",
"type": "prospective",
"slug": "2026-02-13-evening-analysis-he.html",
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The evening analysis entry (slug 2026-02-13-evening-analysis-he.html) is being reclassified from "analysis" to "prospective" here, while the English index keeps it as "analysis". This will make type filtering inconsistent across languages; please keep the type aligned (likely "analysis").

Copilot uses AI. Check for mistakes.
Comment on lines 235 to 237
<h3>Vägtrafik- och fordonsfrågor</h3>
<p><strong>Kommitté:</strong> TU</p>
<p><strong>Dokument:</strong> <a href="https://data.riksdagen.se/dokument/HD01TU9.html" class="document-link" rel="noopener noreferrer">undefined</a></p>
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several document links in this article still render anchor text as "undefined" (e.g., the TU document link). This looks like a templating/data-mapping error and should be replaced with the actual document identifier (as other languages do, e.g., "TU9", "SoU36", etc.).

Copilot uses AI. Check for mistakes.
Comment on lines +210 to 213
<h3>改善国家工作人员外派条件</h3>
<p><strong>委员会:</strong> SoU</p>
<p><strong>文件:</strong> <a href="https://data.riksdagen.se/dokument/HD01SoU36.html" class="document-link" rel="noopener noreferrer">undefined</a></p>
<p><strong>文件:</strong> <a href="https://data.riksdagen.se/dokument/HD01SoU36.html" class="document-link" rel="noopener noreferrer">SoU36</a></p>
<p>关于议会事务的委员会报告。</p>
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The visible article content now has correct document labels, but the JSON-LD NewsArticle "articleBody" still contains "undefined" document link labels (visible via search for "undefined" in this file). Please regenerate/update the structured data so it matches the visible article content for SEO consistency.

Copilot uses AI. Check for mistakes.
@pethers
Copy link
Member Author

pethers commented Feb 15, 2026

@copilot open a new pull request to apply changes based on the comments in this thread make sure all translations is complete/correct as well.

Copy link
Contributor

Copilot AI commented Feb 15, 2026

@pethers I've opened a new pull request, #188, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits February 15, 2026 11:33
…analysis in 9 non-English indices

Co-authored-by: pethers <[email protected]>
…ions and fix document links in committee reports

Co-authored-by: pethers <[email protected]>
Fix type classification and undefined content across multi-language news articles
@pethers pethers merged commit b8885e8 into main Feb 15, 2026
10 checks passed
@pethers pethers deleted the tss branch February 15, 2026 11:42
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

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