A page can carry four flawless translations and still be impossible to follow. The Arabic string for "Continue" is spelled correctly, yet the page still lays out left to right, the screen reader pronounces it with an English voice, and the reading order jumps the moment the text flips. None of that shows up in a translation review, because none of it lives in the words.

Translation is the easy part precisely because it is visible. A review can scan a string table and sign off on it. The layers that decide whether content is understood sit underneath: the declared language of the document, the language of each passage, the base direction, and the order in which a reader reaches things. Skip those and a perfectly translated interface still fails the people it was translated for.

Four layers under the text

A translation workflow does not make the following decisions, and each one has a named standard or guideline behind it.

LayerWhat gets declaredSource and levelFailure mode
Default languagelang on the root elementWCAG 3.1.1, Level AScreen reader guesses the voice
Passages in other languageslang on the switching elementWCAG 3.1.2, Level AAMixed text read in one accent
Base directiondir set in markup on <html>W3C i18n quick tipsNumbers and punctuation land on the wrong side
Reading orderLogical DOM order kept intactWCAG 1.3.2, Level AMirroring scrambles the sequence
Mirroring choicesMedia controls and calendars left aloneW3C i18n quick tipsPlay icons and dates reversed into nonsense

What a language tag does

Two WCAG success criteria cover language. Criterion 3.1.1, Language of Page, is Level A and asks for a lang attribute on the root element so the default language is programmatically determinable. Criterion 3.1.2, Language of Parts, is Level AA and asks for the same on each passage that switches language, with exceptions for proper names and technical terms. The purpose is practical: a screen reader uses these values to load the right pronunciation rules and voice pack. W3C strongly encourages 3.1.2 even for teams that claim only Level A, because a document's language rarely stays uniform from top to bottom.

WebAIM Million 2026, which scans the top million home pages automatically, found 13.5% missing a document language declaration. That is down from 15.8% in 2025 and far below the 33.1% recorded in 2019. One caveat is easy to miss: an automatic scan can only see whether a declaration exists, not whether the value is correct, so the real situation is likely worse than the number suggests.

Direction and the bidirectional algorithm

Setting dir="rtl" on the <html> element is the W3C i18n recommendation for right-to-left documents, and lower elements should not repeat it without a reason. Direction and language are two independent attributes: dir does nothing for 3.1.1 or 3.1.2. Once direction is declared, the Unicode bidirectional algorithm handles mixed strings on its own, so numbers, Latin product names, and punctuation settle into sensible positions. W3C recommends logical start and end over physical left and right, and using markup rather than CSS to establish the base direction.

Here is the part that gets lost in a word-count pipeline: not everything should mirror. Media playback buttons and progress bars usually stay left to right, and a Hijri calendar is not a Gregorian one with the pages turned around. W3C also advises against stitching sentences together at runtime, so a counter such as "Page 1 of 10" belongs in a placeholder like "Page %1$d of %2$d" that keeps its order after translation. Reaching for Unicode control characters or CSS reverse ordering to fix the visual flow breaks search and screen readers, because the underlying sequence never changed.

Reading order survives the flip

WCAG 1.3.2, Meaningful Sequence, is Level A: when the order of content carries meaning, a correct order must be programmatically determinable. That is the quiet reason visual mirroring has limits. A layout can be flipped on screen while the DOM keeps a logical sequence, and assistive technology follows the DOM. Break that relationship and a mirrored interface reads like a sentence assembled backwards, even when every glyph faces the right way.

The market data, handled carefully

Numbers about the value of localization get waved around more than almost any other figure in this field, so they deserve careful wording. CSA Research's "Can't Read, Won't Buy" surveyed 8,709 consumers across 29 countries and reported that 76% prefer products with information in their own language, 40% avoid buying from sites in other languages, and 75% are more likely to buy again from native-language support. Those figures are SECOND-HAND: no first-party page was retrieved, the year is unclear, and the work is often cited as a 2016 business-to-consumer study. They are directional, not a 2026 measurement, and certainly not a sales forecast. Other widely circulated percentages should be left out entirely. Speaker counts for right-to-left languages are similarly conflicting and unreliable, and none of them can be converted into an online or mini-program audience.

Where the tradeoffs sit

The honest tradeoff is that the effort lands in the runtime and the design system rather than in any single translation. Language attributes and logical properties have to live in the component layer, because individual content teams cannot retrofit them after the fact. There is also a hard limit worth naming: declaring lang does not guarantee a screen reader will switch voices. W3C documents cases where language changes are not exposed through the accessible name and where "flat" names hide the switch, and that behavior sits outside the author's control. Good markup makes correct pronunciation possible; it does not force it.

One fix in a shared runtime

Done once in a shared runtime, these decisions propagate. An open catalog such as Cross Mini App that treats language tags, base direction, and meaningful sequence as part of its component contract gives every mini program published into it the same foundation. Translation can stay the visible, celebrated step, while the structural work happens underneath it, where one correction reaches thousands of apps at once.

Sources