← Back to Test Matrix
⚠️ Issue: invalid locale (future detection)

Invalid Locale Test Page

This page has an invalid lang attribute in the HTML tag: lang="invalid-lang-code"

What's wrong?

Expected Detection:

Check: locale (automatic, detection not yet implemented)

Status: Future Issue

Detection logic would need to:

Common Invalid Examples:

Valid Examples:

<html lang="en">           <!-- English -->
<html lang="en-US">        <!-- English (United States) -->
<html lang="en-GB">        <!-- English (United Kingdom) -->
<html lang="fr">           <!-- French -->
<html lang="fr-CA">        <!-- French (Canada) -->
<html lang="es">           <!-- Spanish -->
<html lang="es-MX">        <!-- Spanish (Mexico) -->
<html lang="de">           <!-- German -->
<html lang="ja">           <!-- Japanese -->
<html lang="zh-Hans">      <!-- Chinese (Simplified) -->
<html lang="zh-Hant">      <!-- Chinese (Traditional) -->

How to Fix:

In Next.js layout.tsx:

export default function RootLayout({ children }) {
  return (
    <html lang="en">  {/* Use valid ISO 639-1 code */}
      <body>{children}</body>
    </html>
  )
}

Why This Matters:

Resources: