HTML Localization & A11y Checker
Audit a localized HTML page for language, direction, anchors, code samples, accessible names, and broken entities before it is published.
100% client-side: Your HTML files never leave your browser.
Nothing to list.
Why localized HTML fails accessibility checks
A localized documentation page can look finished and still fail a screen reader or a deep link. Language, direction, names, anchors, and code samples are part of the published page. WCAG 2.1 and the European Accessibility Act expect that contract to survive translation.
Single-file mode checks the localized document alone. Comparison mode places the original beside it and flags anchors, code, and accessible names that should have changed.
Multilingual WCAG and EAA checklist
Each row is a check this page runs. Empty alt is valid on a decorative image. A missing alt on an informative image is not.
| Check | Success criterion | What must stay true |
|---|---|---|
| lang on the html element | 3.1.1 Language of Page | Present, non-empty, and a real BCP 47 tag. A country code, an underscore, and x-default fail. |
| dir on the html element | 1.3.2 Meaningful Sequence | Arabic, Hebrew, Persian, and Urdu require rtl so the reading order stays correct. |
| alt on informative images | 1.1.1 Non-text Content | Informative images need alt text. Empty alt, role presentation, role none, or aria-hidden true marks a decorative image. |
| aria-label on controls | 1.1.1 Non-text Content | Names longer than five characters must change with the page. An exact copy of the source is reported. |
| unique id values | 4.1.1 Parsing | Each id appears once so fragments and references resolve to one element. |
| label for targets | 1.3.1 Info and Relationships | The for value must match an id in the same file, or the control has no accessible name. |
| title element | 2.4.2 Page Titled | The title exists and is not blank. Tabs and screen readers announce it first. |
Automating parity checks in CI/CD
Teams that run automated builds can pair this browser checker with check_docs.py in the html-localization-toolkit on GitHub. The script repeats headless parity checks for ids, code blocks, and accessibility strings on each pull request.
FAQ
How does a screen reader react to a wrong lang attribute?
It picks voice and pronunciation from lang. A wrong or missing value makes a German page sound English, or leaves the choice to the previous page.
Why does translating an id break labels and deep links?
for, aria-labelledby, and hash links must match the id exactly. A translated id breaks the label and sends an old deep link to the top of the page.
How should broken nbsp and mdash entities be fixed?
A space after the ampersand, or a missing semicolon, shows the raw name. Put the semicolon back. Query strings in href and src are left alone.
Why can inline code change order during translation?
Target word order can swap two tokens. Inline code is compared as a multiset unless that option is off. A pre block stays in order, and a changed command is always reported.
Does the audit upload HTML?
No. The check runs in the browser. Files stay on the computer, and input over 2 MB is refused.
See translating HTML documentation for stable headings, and which HTML attributes should be translated for names and alt text. Lock commands with the brand and code protector, then check the cluster in the hreflang and canonical validator. More utilities are in the tools hub. Static pages start from the HTML Translate home page.