translate permissions groups

This commit is contained in:
Mads Rasmussen
2023-09-28 13:03:53 +02:00
parent c95ddd5aa1
commit fd47f13914

View File

@@ -68,7 +68,9 @@ export class UmbUserGroupDefaultPermissionListElement extends UmbLitElement {
return html`
${Object.entries(groupedPermissions).map(
([group, manifests]) => html`
${group !== 'undefined' ? html` <h5>${group}</h5> ` : nothing}
${group !== 'undefined'
? html` <h5><umb-localize .key=${`actionCategories_${group}`}>${group}</umb-localize></h5> `
: nothing}
${manifests.map((manifest) => html` ${this.#renderPermission(manifest)} `)}
`,
)}