This type represents an attribute whose value is a localized text.

interface LocalizableTextAttribute {
    name?: string;
    type: "ltext";
    value: LocalizedString;
}

Properties

Properties

name?: string

The name of this attribute must match a name of the product types attribute definitions. The name is required if this type is used in a product variant and must not be set when used in a product variant patch.

type: "ltext"

A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language. json { "de": "Hundefutter", "en": "dog food" }