This page has an invalid lang attribute in the HTML tag: lang="invalid-lang-code"
Check: locale (automatic, detection not yet implemented)
Status: Future Issue
Detection logic would need to:
lang="english" - Should be lang="en"lang="eng" - Should be lang="en" (ISO 639-1, not 639-2)lang="EN" - Should be lowercase: lang="en"lang="en_US" - Should use hyphen: lang="en-US"lang="us" - US is a country, not language. Use lang="en-US"<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) -->
In Next.js layout.tsx:
export default function RootLayout({ children }) {
return (
<html lang="en"> {/* Use valid ISO 639-1 code */}
<body>{children}</body>
</html>
)
}