add localization for collection actions

This commit is contained in:
JesmoDev
2024-05-20 16:38:08 +02:00
parent f7a21c1808
commit fc80a65e5b

View File

@@ -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}></uui-button>
`;