Skip to content

I18nCatalogRendererComponent

component

Renders the value(s) of an i18n catalog field (classification i18n:catalog[one, two, three]).

Catalog fields store the technical value, so the label has to be resolved from the localizations. This uses the same label keys as the yuv-i18n-catalog form element: for property name status and value open the key is catalog:status:open_label. Values without a matching localization fall back to the technical value.

Selector: yuv-i18n-catalog-renderer

Standalone: No

Type: Record<string, unknown> | U

Type: string

Required: Yes

Type: T | null

Required: Yes

Type: unknown

Default Value: computed<string>(() => \{ this.#currentLang(); const value = this.value(); if (value === null || value === undefined) return ''; // Catalog fields may be multi-select, in which case the value is an array of technical values. return (Array.isArray(value) ? value : [value]).map((val) => this.#translateValue(val)).join(', '); \})