Checks that all lang attributes on the page have valid valuesDocumentation Index
Fetch the complete documentation index at: https://docs.squirrelscan.com/llms.txt
Use this file to discover all available pages before exploring further.
| Rule ID | a11y/valid-lang |
| Category | Accessibility |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Solution
All lang attributes should use valid BCP 47 language tags. This includes lang attributes on any element, not just<html>. Use lang to mark up content in a different language from the page default.
Enable / Disable
Disable this rule
squirrel.toml
Disable all Accessibility rules
squirrel.toml
Enable only this rule
squirrel.toml