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

    Function getStringWithLocale

    • Returns the localized string value of the specified Property from a [[Thing]]. If the Property is not present as a string in the specified locale, returns null. If the Property has multiple string values for the specified locale, returns one of its values.

      Parameters

      • thing: Thing

        The [[Thing]] to read a localised string value from.

      • property: string | Url

        The Property whose localised string value to return.

      • locale: string

        The desired locale for the string value.

      Returns null | string

      A localised string value for the given Property if present in the specified locale, or null otherwise.