Template:Lang tag

language abbreviation

Converts a language abbreviation from Template:Localized name to its BCP 47 language tag for use with the HTML  attribute.

Examples: