Skip to content
Learn Netverks

lang-codes

Language tags

BCP 47 language identifiers for `lang` and `hreflang` attributes.

Use BCP 47 tags on lang and hreflang. Primary language subtags are usually ISO 639-1 two-letter codes; regions extend with a hyphen (en-US, en-GB).

ExampleMeaning
enEnglish (general).
en-USEnglish as used in the United States.
frFrench.
deGerman.
jaJapanese.
zh-HansChinese written in simplified characters.
x-defaulthreflang fallback for unmatched locales.

← Back to reference index