hypra

SEM-013: lang isn't a language code

Warning: the page still builds, but this is most likely a mistake.

Screen readers choose their voice from the page's language, and browsers their translation offer and hyphenation. They understand codes like en, de or pt-BR, not names like English.

Fails

page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.", lang: "English") {
  h1 "Shoes"

}
warning[SEM-013]: `English` isn't a language code
 --> page.hypra:1:101
  |
1 | page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.", lang: "English") {
  |                                                                                                     ^^^^^^^^^
  = help: use a code like "en", "de" or "pt-BR"; screen readers pick their voice from it
  = docs: https://hypralang.dev/rules/sem-013/

0 errors, 1 warning

Fixed

page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.", lang: "en") {
  h1 "Shoes"

}