@metreeca/blue - v0.12.0
    Preparing search index...

    Function tag

    • Creates a shape for language tag values.

      Fixes the datatype to xsd:string and admits BCP 47 language tags identifying a natural language, from a bare language subtag to a fully qualified tag carrying script, region, variant, extension and private-use subtags (for example, en, fr-CA, zh-Hans-CN); subtags are matched case-insensitively, as the standard prescribes, and grandfathered tags are not accepted.

      Reach for it wherever a member records the language of a value; language ranges, which select values rather than identify a language, are constrained by languageIn instead.

      Type Parameters

      Parameters

      Returns StringShape<{ inferred from <C> }>

      An immutable shape admitting language tags, narrowed to the values the constraints enumerate

      TraceError Where the stated constraints contradict one another