Skip to content

feat(a11y): mark content that differs from the interface language (ENG-156) - #114

Merged
odanieldcs merged 1 commit into
mainfrom
feature/eng-156
Oct 12, 2026
Merged

odanieldcs merged 1 commit into
mainfrom
feature/eng-156

Conversation

@odanieldcs

@odanieldcs odanieldcs commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Mark titles and article bodies with lang only when the content language differs from the interface, so a screen reader switches for that text.
  • Leave dates, notices, tags, event names, and page chrome in the interface language, including on the blog, home, and community listings.

Test plan

  • On /en/blog/[slug], the title and body are lang="pt-BR"; the date, language notice, and back link have no lang, and <html lang="en"> stays.
  • On /en, /en/blog, /en/blog?view=grid, and /en/community, Portuguese titles (and home descriptions) are lang="pt-BR"; page headings, dates, and calls to action are not.
  • On /, /blog, /blog?view=grid, /blog/[slug], and /community, main has no extra lang.
  • pnpm test and the English Playwright spec pass.

…G-156)

Screen readers should switch language on titles and article bodies, while dates, notices, and page chrome stay with the interface.
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
danieldcs-com Ready Ready Preview Oct 12, 2026 2:59am UTC

@odanieldcs
odanieldcs merged commit 906acc5 into main Oct 12, 2026
8 checks passed
@odanieldcs
odanieldcs deleted the feature/eng-156 branch October 12, 2026 03:06

This branch was successfully deployed

1 active deployment
Preview — 4828b378 Deployed Oct 12, 2026 by vercel[bot]
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.

1 participant