Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. QA
  3. Language declaration
  4. The declared language is not the language of the text

QA finding

The declared language is not the language of the text

QA Error Severity: Medium

Part of the audit Language declaration. Finding id: qa.languageMismatch.

What it costs you

A screen reader reads the text with the pronunciation rules of the declared language, which makes it hard or impossible to follow. Search engines and translation tools are told the wrong language too.

What to do

Set lang on the html element to the real language of the page, and put a lang attribute on any passage in another language.

What it checks

  • Declared language differs from the actual text
  • Text in another language not marked

How to fix it

Mark the language where it changes

    How to check: Recheck the page: declared and detected language agree.

    Thresholds

    Thresholds for The declared language is not the language of the text
    NameDefaultMeaning
    min_words30Pages and passages with fewer words than this are not returned; language detection is unreliable on short text.
    • All audits
    • About sus.bot
    • Open the app
    • Contact support