@grafctory/trio - v0.4.0
    Preparing search index...

    Function text

    • Encodes a language map as language-tagged or plain literals.

      The und (undetermined) tag yields a plain xsd:string literal instead of a language-tagged one.

      Parameters

      • text: Some<{ [tag: string]: Some<string> }>

        The tag-to-content map(s) to encode

      Returns readonly (Tagged | Typed)[]

      The encoded tagged and plain literals

      RangeError On a content string holding an isolated UTF-16 surrogate code point, or on a key that is not a well-formed BCP 47 language tag