Ambert
05/14/2024, 8:21 AM<uui-button type="button"
look="outline"
color="default"
label="Cancel"
ng-click="vm.closeModal()"></uui-button>
Which works like a charm,
However I want to localize the label, but I can't seem to find any docs on it.. If anyone knows, i'll make a quick PR about it to the docs aswell 🙂
I see docs about it here, https://docs.umbraco.com/umbraco-cms/v/14.latest-rc/tutorials/creating-a-custom-dashboard/extending-the-dashboard-using-umbraco-ui-library
But not when the button has properties declaredD_Inventor
05/14/2024, 3:40 PMD_Inventor
05/14/2024, 3:40 PMD_Inventor
05/14/2024, 3:51 PMUmbElementMixin
, so if your element uses that mixin, it should be able to call this.localize.term( /* arguments */ )
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/a31e74f090d989ede0be8c42d27b5d341c6c6793/src/libs/element-api/element.mixin.ts#L12
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/a31e74f090d989ede0be8c42d27b5d341c6c6793/src/packages/core/localization/localize.element.ts#L39Ambert
05/14/2024, 4:09 PMAmbert
05/14/2024, 4:11 PMAmbert
05/14/2024, 4:11 PMD_Inventor
05/14/2024, 4:11 PMD_Inventor
05/14/2024, 4:12 PMAmbert
05/14/2024, 4:14 PMAmbert
05/14/2024, 4:14 PMD_Inventor
05/14/2024, 6:48 PMAmbert
05/16/2024, 6:14 AMAmbert
05/16/2024, 6:19 AMAmbert
05/16/2024, 7:12 AMAmbert
05/16/2024, 7:12 AMD_Inventor
05/16/2024, 7:14 AMD_Inventor
05/16/2024, 7:15 AM<umb-button>
directive does internally as well