@metreeca/core - v0.9.19
    Preparing search index...

    Function isTag

    • 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).

      Parameters

      • value: unknown

        The value to validate as a language tag

      Returns value is string

      true if the value matches the language tag pattern; false otherwise

      Tag