Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<

const lookup = items.reduce(
(acc, item) => {
acc[item.unique] = item;
acc[item.unique] = {
...item,
name: this.localize.string(item.name),
description: this.localize.string(item.description),
};
return acc;
},
{} as { [key: string]: UmbDocumentTypeItemModel },
Expand Down Expand Up @@ -244,8 +248,8 @@ export class UmbBlockCatalogueModalElement extends UmbModalBaseElement<
return html`
<uui-card-block-type
href=${ifDefined(href)}
name=${this.localize.string(block.name)}
description=${this.localize.string(block.description)}
name=${block.name}
description=${ifDefined(block.description)}
.background=${block.backgroundColor}
@open=${() => this.#chooseBlock(block.contentElementTypeKey)}>
${when(
Expand Down
Loading