@inrupt/solid-client
    Preparing search index...

    Function addStringWithLocale

    • Create a new Thing with a localised string added for a Property.

      This preserves existing values for the given Property. To replace them, see [[setStringWithLocale]].

      The original thing is not modified; this function returns a cloned Thing with updated values.

      Type Parameters

      • T extends Readonly<{}>

      Parameters

      • thing: T

        Thing to add a localised string value to.

      • property: string | Url

        Property for which to add the given string value.

      • value: string

        String to add to thing for the given property.

      • locale: string

        Locale of the added string.

      Returns T

      A new Thing equal to the input Thing with the given value added for the given Property.