Visitar URL original
fix(i18n): update pt_BR locale by SouViniVieira · Pull Request #5467 · dequelabs/axe-core · GitHub
Skip to content

fix(i18n): update pt_BR locale - #5467

Open
SouViniVieira wants to merge 1 commit into
dequelabs:developfrom
SouViniVieira:update-pt-br-locale
Open

SouViniVieira wants to merge 1 commit into
dequelabs:developfrom
SouViniVieira:update-pt-br-locale

Conversation

@SouViniVieira

Copy link
Copy Markdown

Updates the Brazilian Portuguese locale, which had not been fully updated since 2021.

Added (136 messages)

  • 8 rules that had no translation: aria-braille-equivalent, aria-conditional-attr, aria-deprecated-role, aria-prohibited-attr, aria-tab-name, meta-refresh-no-exceptions, summary-name and target-size
  • Missing check messages, including all target-size and target-offset messages (WCAG 2.2) and the current color-contrast messages

Fixed (3 existing messages)

  • unsupportedrole.fail used ${data.values}, but the check passes ${data}, so the role was never shown
  • only-dlitems.fail and duplicate-id.fail were missing their placeholder, so the offending elements were not listed

How it was made and tested

  • The file was regenerated with pnpm translate --lang=pt_BR, so keys follow _template.json; lang stays pt-BR
  • Terminology follows the existing translation
  • All placeholders match the English source
  • I ran axe with this locale against a test page with known issues and checked that every new message renders in Portuguese with its values filled in

The draft was prepared with AI assistance. I reviewed every string as a native Brazilian Portuguese speaker who works in accessibility.

Generated with Claude Code

Add the 136 messages missing from the Brazilian Portuguese locale,
including the WCAG 2.2 target-size rule, and fix three existing messages
whose placeholders no longer matched the English source
(unsupportedrole, only-dlitems and duplicate-id).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SouViniVieira
SouViniVieira requested a review from a team as a code owner October 14, 2026 15:26
@straker

straker commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Thanks for the pr. We have a lot of open prs at the moment so we'll try to get to this as soon as we can.

@SouViniVieira

Copy link
Copy Markdown
Author

Thanks for the pr. We have a lot of open prs at the moment so we'll try to get to this as soon as we can.

Thanks, no rush! Happy to adjust anything once you get to it.

This branch has not been deployed

No deployments
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