| Rule ID | i18n/lang-attribute |
| Category | Internationalization |
| Scope | Per-page |
| Severity | warning |
| Weight | 4/10 |
Solution
The lang attribute on the html element declares the page’s language, helping browsers, screen readers, and search engines process content correctly. Add lang=“xx” to your html tag using a valid ISO 639-1 code (e.g., “en”, “es”, “fr”). For regional variants, use lang=“en-US” or “en-GB”. This improves accessibility and helps search engines serve your content to the right audience.Enable / Disable
Disable this rule
squirrel.toml
Disable all Internationalization rules
squirrel.toml
Enable only this rule
squirrel.toml