google / google/fonts

[Type tester] HTML lang attribute should be set for language

Open
#5,230 0 comments 0 reactions 0 assignees View on GitHub
I API / Website / Platform I Request I Tools / workflow / repo
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

When selecting a Continent / Language the sample text is not tagged with the appropriate HTML lang attribute.
The language specific font features are therefore not displayed.

**To Reproduce**
- Go to https://fonts.google.com/noto/specimen/Noto+Sans+Devanagari/tester
- Select Asia / Nepali
- the following Nepali sample is seen but with Hindi shapes
Screenshot 2022-09-13 at 11 00 50

With the `lang="ne"` HTML attribute the Nepali sample should look like this:
Screenshot 2022-09-13 at 11 00 57

For example, see this word on the fourth line of text:
- no tagging
![Hindi-shaping](https://user-images.githubusercontent.com/1923747/189859809-6dac8924-84bf-4003-8503-37a4abbdb0be.jpg)
- with `lang="ne"`
![Nepali](https://user-images.githubusercontent.com/1923747/189859814-94b5f3ac-6c87-4344-8a58-e3abe6927dc4.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.