Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lang and hreflang to language pages for screen reader UX (#2033)
* Add lang and hreflang for screen reader UX I wanted to add `lang` and `hreflang` to the link element for translated languages. `Lang` is used by screen readers to switch language profiles to provide the correct accent and pronunciation. >If you have multiple versions of a page for different languages or regions, tell Google about these different variations. Doing so will help Google Search point users to the most appropriate version of your page by language or region. > Note that even without taking action, Google might still find alternate language versions of your page, but it is usually best for you to explicitly indicate your language- or region-specific pages. Source: https://support.google.com/webmasters/answer/189077?hl=en * add hrefLang and Lang attributes * add alternate pages to head * Apply suggestions from code review Co-Authored-By: Alexey Pyltsyn <lex61rus@gmail.com> * mark english hreflang as x-default * make english the default on the languages page * rethink default-x
- Loading branch information