Regular expression matching BCP 47 language tags.
Regular expression matching RFC 4647 basic language ranges.
Checks if a value is a valid language tag.
Checks if a value is a valid basic language range.
Checks if a language tag matches a basic language range.
Names the language identified by a language tag.
BCP 47 language tags and RFC 4647 basic language ranges.
Language Tags
Confirm that a value carries a well-formed language tag before handing it to an API that expects one:
Basic Language Ranges
Confirm in the same way that a value carries a well-formed basic language range, wildcard included:
Matching
Select the content whose language answers a request, testing a tag against the ranges a client accepts:
Naming
Present a tag to readers as the name of the language it identifies, in a language they understand:
See