An EPUB declares one main language, but very few books stay inside it for every sentence. A French novel might quote a line of English dialogue, a memoir might reproduce a sentence from a letter written in German, a travel narrative might report a conversation in Portuguese. When a screen reader or braille display reaches one of these phrases without knowing it changes language, it applies the pronunciation rules of the book's main language anyway — turning recognizable words into something the listener can't parse. The foreign-language tagging tool lets you select any such phrase directly in the reader view, mark its real language (and, when it matters, its region), and decide whether that tag belongs in the finished EPUB.
xml:lang OptionalEvery tag applied in the editor is written into the EPUB's content at export. Each one adds a matching pair of attributes, lang and xml:lang, to the labelled passage. Both carry the same BCP 47 language code, such as en, la, or pt. The pair goes on a new span around the passage, or on the existing elements when the passage runs across whole paragraphs. Cantook Access does not set or change the language declared on the document's root <html> element. These attributes tell a reading system's speech engine or braille driver to switch pronunciation rules for exactly the text they cover. The switch back happens the moment that element ends.
This tagging is separate from the book's overall declared language. No feature checkbox in the accessibility-metadata editor covers it, because it applies phrase by phrase. WCAG Success Criterion 3.1.2 (Language of Parts) makes this markup a requirement for WCAG 2.x Level AA conformance whenever a passage's language genuinely differs from the surrounding content. It carves out four exceptions: proper names, technical terms, words of indeterminate language, and loanwords fully absorbed into the surrounding language's everyday vocabulary. English absorbed "rendezvous" long ago, and nobody expects a screen reader to switch to French for it. The requirement only applies where a genuine, non-exempt change exists, so tagging every unfamiliar-looking word would go beyond what it asks.
lang and xml:lang are scoped to the element they're set on and everything nested inside it. They do not need to be repeated on descendant elements unless the language changes again inside the tagged phrase. Reading-system support for switching pronunciation at these boundaries varies, so correct markup is necessary but not sufficient — it is the EPUB content's job to expose the language change; whether a given reading system acts on it is outside your control.
A mispronounced word is more than an inconvenience for someone relying on synthesized speech or a refreshable braille display to read the whole book. Braille output that ignores a language switch can turn a recognizable phrase into an unreadable string of contractions built for the wrong language. Synthesized speech that ignores it can render a phrase so distorted that a listener assumes it's a rendering error rather than a genuine foreign-language passage. For language learners, bilingual readers, and anyone reading in a second language, an untagged phrase removes exactly the cue — correct pronunciation — that would have told them the author changed languages on purpose.
A French novel has a character say, in the middle of an otherwise all-French paragraph, "Carpe diem." Left untagged, a French text-to-speech voice reads those two words using French vowel and consonant rules, producing a sound no French or Latin speaker would recognize as the phrase. Tagged as Latin, the phrase can switch to a Latin pronunciation for exactly those two words, if a Latin voice is available. The reading then returns to French for the rest of the sentence. The listener gets what a sighted reader understands instantly from the italics on the page.
Tagging starts in the reader view. Select the phrase that needs a different language, and the editor opens the Add a new label popup, with Cancel and Add label actions. The popup doesn't detect anything. It preselects a language, and the languages already used in the project sit at the top of the list. Check that choice and change it if needed. Show more expands the full language list, and Show less collapses it again. The Detected badge belongs to a different place: it appears in the detail panel, on labels the tool found by itself. A phrase that never gets selected never gets tagged. While working through the EPUB, keep an eye out for anything in the reader view that visually reads as foreign, such as italics, quotation marks, or another script.

Some languages sound or spell differently enough by region that a single language code isn't precise enough — the same French word can be pronounced differently in Quebec than in France, and Portuguese diverges further between Brazil and Portugal. The region field (a globe-icon control next to the language choice) adds that locale distinction on top of the language, corresponding to the region subtag portion of a BCP 47 tag like pt-BR. Leave it on "No region" whenever the base language code is precise enough on its own — adding a region that doesn't reflect an actual pronunciation or spelling difference adds noise without adding accuracy.
Each tag is either To Review or Reviewed, a two-state progress model close to the alt-text tool's Draft/Ready split (see Describing images so no reader misses what they show). The starting state depends on where the tag came from. A tag you add yourself starts as Reviewed. So does a detection the tool is highly confident about. Other detections start in To Review. Changing a tag's language or region in the detail panel also moves it to Reviewed. A Reviewed tag therefore doesn't by itself mean a person has checked it.
The left rail's All, To Review, and Reviewed filters help you work through outstanding tags without losing track of what's settled. For each tag, the detail panel offers three outcomes. Accept confirms the language (and region) and moves the tag to Reviewed. Skip moves on to the next tag and leaves this one as it is. Reject removes the tag because the phrase isn't actually foreign after all, for example a proper name, a technical term, or a fully absorbed loanword.
Tags still in To Review are exported as they stand. Only Reject keeps a tag out of the exported EPUB.

A foreign-language passage or a recurring foreign term rarely appears only once. Find and Replace, in the Edit menu, opens a drawer that searches the existing tags across the whole book. From there you can change a wrongly detected language or remove unwanted tags in bulk. It never searches the book's text and never creates tags. A new tag always starts from a selection in the reader view (see Correcting multiple similar passages in a single action).
Find similar is a shortcut into that drawer. It appears in the detail panel only when other tags share most of this tag's words. It opens Find and Replace with the tag's text already entered, then jumps to the next matching tag. It searches existing tags only and applies nothing by itself. To extend a decision, use Replace or Replace all in the drawer.
Selecting several tags in the list opens the multi-select editor. It sets the language, the region, or the status (To Review or Reviewed) on all of them at once, and its Remove label button rejects them together.
If review decisions need to start over, after a translation pass for instance, Reset Review in the Edit menu returns every tag to To Review after a confirmation step. The tags themselves stay. Only the review state is cleared.
The decision that matters for every selected phrase is the same one: does its language genuinely differ from the surrounding text, outside WCAG's named exceptions? If yes, tag it, set its region only when pronunciation or spelling truly depends on locale, and move it to Reviewed once confirmed. Work through the "To Review" filter first, lean on Find similar for anything that repeats, and treat Reset Review as a deliberate restart rather than routine housekeeping.
Create accessible and reliable EPUBs. Increase efficiency, publish with confidence, and provide an inclusive experience for every reader.
© 2026 De Marque. All rights reserved.