Distinguish page language from a passage
A Hong Kong service page can be mostly Traditional Chinese while carrying an English cancellation clause, a quoted product instruction, or a language-switch link. A screen reader may otherwise apply the page's default pronunciation rules to the English passage. WCAG 2.2 success criterion 3.1.2 asks that the human language of each passage or phrase be programmatically determinable, with exceptions for proper names, technical terms, words of indeterminate language, and expressions that have become part of the surrounding vernacular. This is a decision about the actual content, not a demand to mark every English-looking letter on a Chinese page. Begin by confirming the main language of each published page. Then inspect places where the language truly changes within a sentence, paragraph, label, quote or link. A bilingual site may have separate English and Chinese pages, but each page can still contain a meaningful passage in the other language.
The page-level language and the language of a part solve different problems. The page default gives browsers and assistive technology a starting point for all unmarked text. Marking a genuine English passage inside a Chinese page lets that passage use English language rules while the rest remains Chinese. Do not use language metadata as a substitute for translating a service journey. If a Chinese booking page has English-only field errors or terms that customers must understand, the primary editorial question is whether those instructions should be written in Chinese. Markup can help pronunciation when an English phrase legitimately remains; it cannot make untranslated requirements understandable to someone who does not know English. Keep the content review and the markup review together so a developer does not perfectly label text that should have been localised in the first place.
Apply exceptions with judgement
W3C explicitly exempts proper names, technical terms, words with no clear language, and words or phrases adopted into the surrounding vernacular. A brand name on a Chinese product card is not automatically a separate English passage. Nor should a familiar loanword trigger a mechanical rule just because it uses Latin letters. The question is whether the author intends a change of language that affects how the phrase should be presented. Consider a full English instruction, ‘Keep the receipt for warranty service’, embedded in a Chinese help article: that is clearly an English passage with consequential meaning. In contrast, a model name or a technical token may be treated under the exception. Document borderline editorial decisions so new copy editors do not add inconsistent language wrappers around every product code. If pronunciation remains confusing despite a legitimate exception, W3C encourages language marking where helpful, but that editorial choice should be tested rather than assumed to work identically in every reader.
Use the simplest HTML structure that preserves the text and its intended language. W3C technique H58 describes putting a lang attribute on the element containing the different-language passage. For a full paragraph, the paragraph can carry the language; for a short phrase inside a sentence, a span can contain just that phrase. A correctly set page default and a narrow override make maintenance easier than wrapping every word independently. The language tag should identify the language actually used, not the customer's location or the currency of the transaction. For example, an English phrase is English even when the business is in Hong Kong. Choose a valid language tag and apply it consistently in the content system, including reusable labels and generated messages. H58 is one documented sufficient technique for HTML, not a claim that a particular tag guarantees a screen reader voice switch in every setup.
Test a bilingual support example
Imagine a Chinese support page explaining a warranty claim. It has a Chinese heading, a short English quotation from printed packaging, a model identifier, and a link labelled ‘English version’. First decide whether the quotation is necessary to understand a requirement; if it is, provide a clear Chinese explanation as well as the original wording where exact wording matters. Mark the English quotation as English. Treat the model identifier separately as a technical token rather than assuming it needs an English wrapper. Give the language-switch link an understandable name and a destination that actually opens the English version of the same useful page. The link's language may need its own markup when the visible label is an English phrase on a Chinese page. Keep this scenario distinct from search-engine alternate-language metadata: the question here is how a person and assistive technology read text within the page, not how a crawler discovers translated URLs.
Check the rendered page, not just a translation spreadsheet. Inspect the document language in the browser, then select the actual foreign-language passage and inspect the surrounding element's lang value. Confirm that the mark includes the intended phrase and does not accidentally include adjacent Chinese instructions. Use a screen reader to listen to the passage in context, while recognising that W3C notes limits in how some assistive technologies expose language inside computed accessible names. A language attribute can be correct in markup even when one links-list mode fails to switch voice. Record both the code-level finding and the listening result; do not treat one listening failure as proof that the language was never marked. Test English and Traditional Chinese versions, including shared components such as notices, form errors and language controls. When a content editor changes the quote or removes it, update the markup rather than leaving an empty or wrongly scoped language span.
Build language review into publishing
A sustainable checklist names the default language of each template, identifies the content fields that permit mixed-language passages, and assigns responsibility for adding language metadata when editors insert such text. Reviewers should look at real published states: normal content, an error after submission, an email or booking confirmation shown on the site, and a language switch. Check the meaning and availability of translated content before debating a small pronunciation detail. Then verify the markup and sample it with assistive technology. The next action for a small team is to choose one bilingual customer journey, list every intentional language change, classify exceptions, and repair the few passages where the language is currently unknowable to software. Repeat the check whenever a template or translation workflow changes. This creates a manageable rule based on actual writing rather than a blanket instruction to tag every foreign-looking word.
There is a further testing trap in reusable interface components. The same English product phrase may appear once as ordinary paragraph text, once as a button name, and once in a collapsed navigation list. A correctly scoped language attribute in the paragraph does not automatically cover the button or a copied label assembled elsewhere by the content system. Map where each text value is rendered, especially messages that arrive from a backend service after the page loads. Inspect the final DOM for each state rather than assuming the template source tells the whole story. W3C also explains that an accessible name can be flattened by some technology, which may lose language structure even when the markup is sound. Separate a coding defect from this interoperability limit: fix missing or wrong lang values in the page, then document any remaining pronunciation behaviour in the actual browser and assistive-technology combination tested. If the content owner cannot determine the language of a phrase, do not guess from its alphabet alone; ask the editor who wrote or approved it. This small workflow prevents invalid tags from being copied across hundreds of pages. Finally, keep a sample of mixed-language customer copy in release checks, since a new component can reintroduce the issue even after an earlier page was corrected.
Before you proceed
- Each page has the correct main language in its rendered document.
- Intentional foreign-language passages are marked with valid, scoped language metadata.
- Translations, exceptions and assistive-technology behaviour were reviewed separately.


