Page language code is invalid on Next.js
What this is
The `lang` attribute holds a value that is not a valid language code, so assistive technology cannot pick the right voice.
Who it affects
- Screen reader users
Standards
How to fix it
- Replace the value with a valid BCP 47 code such as `en`, `en-GB`, `de`, `fr`, `es`.
On Next.js
Set `<html lang="en">` in `app/layout.tsx` (or per-locale layouts).
Other platforms
Prompt for an AI coding tool
Scan your site with AccessibilityBrief and you get a ready-to-use prompt for this problem, with the exact elements on your pages filled in.
Check your own website
Paste a web address. The free scan checks one page and shows what it finds.
More fixes
Automated testing detects only a portion of WCAG issues. Manual testing is required to assess full conformance.