Validates language tags according to BCP 47/RFC 5646 § 2.1.
A language tag is a sequence of subtags identifying a natural language (e.g., en, fr-CA, zh-Hans-CN).
Parameters
value: unknown
The value to validate as a language tag
Returns valueisstring
true if the value matches the language tag pattern; false otherwise
Checks if a value is a valid language tag.
Validates language tags according to BCP 47/RFC 5646 § 2.1. A language tag is a sequence of subtags identifying a natural language (e.g.,
en,fr-CA,zh-Hans-CN).