Valid language tag
A string of characters is considered a valid language tag if the characters conform to the BCP47 language tag syntax and has a primary language subtag that exists in the IANA language subtag registry.
A string of characters is considered a valid language tag if the characters conform to the BCP47 language tag syntax and has a primary language subtag that exists in the IANA language subtag registry.