Utility class to hold one or more values with their associated (optional) locale

Implements

  • default

Constructors

Properties

_defaultLocale: string
_locale?: string
_value: string | string[]

Accessors

  • get locale(): string

    Returns string

    Deprecated

    Don't use, only used for backwards compatibility reasons

  • get value(): string

    Returns string

    Deprecated

    Use PropertyValue#getValue instead

Methods

  • Parse a localized value from a IIIF v2 property value

    Parameters

    • rawVal: any

      value from IIIF resource

    • Optional defaultLocale: string

      deprecated: defaultLocale the default locale to use for this value

    Returns null | LocalizedValue