BCP47
BCP 47, Best Current Practice 47, is an IETF standard that defines a comprehensive system for identifying human languages in software, data formats, and communications. It provides a uniform way to tag language, script, region, and related variants so applications can select appropriate content, locales, and processing rules.
A language tag in BCP 47 is a hyphen-separated sequence of subtags. The primary language subtag comes
The official registry for subtags is maintained by IANA, in the Language Subtag Registry. Subtags are registered
BCP 47 is widely used in computing and web technologies. It underpins language selection in the HTML