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

    Function isTag

    • Checks if a value is a valid language tag.

      Validates language tags according to BCP 47/RFC 5646.

      Parameters

      • value: unknown

        The value to validate as a language tag

      Returns value is string

      true if the value is a non-empty string matching the BCP 47 pattern

      Tag