You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the script subtag defines the writing system used for the language, and is always 4 characters long, with the first letter capitalized. This subtag is particularly useful as there are two different writing systems in Chinese: simplified (Hans) and traditional (Hant).
For example, I can have each of the following valid lang attributes:
zh-CN
zh-Hant
zh-Hans-CN
But now the js-a11y/lang rule is rejecting the last two.
According to the documentation for lang attribute on MDN, a valid HTML lang attribute is composed of three parts:
language-[script]-[region]
where the script subtag defines the writing system used for the language, and is always 4 characters long, with the first letter capitalized. This subtag is particularly useful as there are two different writing systems in Chinese: simplified (
Hans
) and traditional (Hant
).For example, I can have each of the following valid lang attributes:
zh-CN
zh-Hant
zh-Hans-CN
But now the js-a11y/lang rule is rejecting the last two.
Reference:
The text was updated successfully, but these errors were encountered: