From fc80a65e5bfe6cfc883ae14d81ec81ba63506397 Mon Sep 17 00:00:00 2001 From: JesmoDev <26099018+JesmoDev@users.noreply.github.com> Date: Mon, 20 May 2024 16:38:08 +0200 Subject: [PATCH] add localization for collection actions --- .../collection/action/collection-action-button.element.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/collection/action/collection-action-button.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/collection/action/collection-action-button.element.ts index 90aa744d03..41d0a95b18 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/collection/action/collection-action-button.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/collection/action/collection-action-button.element.ts @@ -71,7 +71,9 @@ export class UmbCollectionActionButtonElement extends UmbLitElement { @click=${this._onClick} look="outline" color="default" - label=${this.manifest?.meta.label || ''} + label=${ifDefined( + this.manifest?.meta.label ? this.localize.string(this.manifest.meta.label) : this.manifest?.name, + )} href="${ifDefined(this.manifest?.meta.href)}" .state=${this._buttonState}> `;