Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring Axe locale #430

Open
goulvench opened this issue Jan 10, 2025 · 0 comments
Open

Allow configuring Axe locale #430

goulvench opened this issue Jan 10, 2025 · 0 comments

Comments

@goulvench
Copy link

Hi, I've searched in the codebase for locale and lang(uage) but nothing relevant comes up.

Requirements

  • Add a report_locale method
  • Pass the selected locale to Axe-core (axe.configure({locale: ?}) before running checks.

User Story

We're automatically auditing a website to make sure that code changes don't introduce accessibility issues.
The website maintainers are not native English speakers, and would be better able to understand and fix issues using the translated messages.
Axe-core includes a dozen locales, it would be great if the issues reported back to Rspec could be translated.

Acceptance Criteria

expect(page).to be_axe_clean.report_locale(:ja) returns japanese messages.

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

No branches or pull requests

1 participant