M&DMICHAEL & DiVIP STUDIO
077 206 88 88
24 Hoholia Street, Bucha, Ukraine
24/7 · Around the clock
← Back to journal

VIP STUDIO MICHAEL & Di · 26.10.2026

Language labels that match the content people actually read

Conceptual paper page with a large blue speech bubble and a small gold tag marking a passage in another language.
Original AI-generated editorial concept, not a screenshot or representation of a working interface.

A translated page can look finished while still carrying the language declaration of its original template. The opposite can happen too: the code announces a new language, but buttons, captions and error messages remain untranslated. Language metadata is useful only when it describes the content that is actually present. Treat that agreement as an editorial responsibility as well as a technical check.

1. Start with the language of the whole page

WCAG’s Language of Page criterion concerns a programmatically determinable default human language. In HTML, declare it with lang on the html element. Do not treat a translated URL or a language-menu selection as evidence that this declaration is correct.

For example, a Ukrainian article copied from an English template needs more than a translated headline. Review the opening text, navigation and supporting material, then check the rendered document. A value copied across every locale may survive unnoticed because it does not normally change the visible layout.

2. Review the text outside the article body

Make a small content inventory: heading, summary, image alternative text, captions, control labels, empty states and validation messages. A fully translated paragraph does not make an English-only button understandable to a reader who chose another language.

Decide whether remaining foreign text is intentional or simply unfinished. Translate accidental leftovers; do not disguise them by changing a language attribute. The practical issue of keeping the same destination when switching languages is covered in language switching without losing the page. Here the question is what the destination actually contains.

3. Mark genuine language changes at their boundaries

A page may intentionally include a quotation or passage in another language. Apply the appropriate language to the element containing that passage, without also relabelling the surrounding explanation. Use an existing paragraph where it fits, or a small inline wrapper for a phrase. Check where the passage ends so that later text returns to the correct inherited language.

The Language of Parts criterion has exceptions for proper names, technical terms, indeterminate language and expressions adopted into the surrounding language. Do not automatically wrap every brand or technical identifier as foreign speech. Equally, do not classify a whole foreign sentence as a technical term just to avoid identifying it. Editorial judgement should follow what readers are actually encountering.

4. Keep different language signals in their own roles

A document’s lang identifies its text language; hreflang on an alternate link does not replace it. Maintain the relationship between translated pages separately from the language of their contents. Neither attribute translates missing text or proves that a translation reads naturally.

Check structure at the same time. A correctly labelled language cannot repair an unclear outline. Our guide to headings as a readable map helps with that separate layer. Keep code identifiers and actual prose distinguishable in editorial notes so that reviewers do not accidentally translate syntax.

5. Inspect the code, then listen to real output

Inspect the rendered root declaration and the boundaries of foreign passages. Then test relevant browser and screen-reader combinations, including available voices. Language markup supports interpretation but does not guarantee identical pronunciation across software or reading modes. An unexpected voice is a reason to investigate, not proof by itself that the markup is wrong.

  • Does the default language match the actual page?
  • Are supporting labels and messages translated?
  • Are intentional foreign passages marked at the right scope?
  • Are names and technical terms handled thoughtfully?
  • Were both markup and real reading behaviour checked?

Record what was tested. A language label should be an accurate description of the reading experience, not a badge attached to an unfinished translation.

Sources

Read next

A review step that helps people send the right thing