From c59be309d614473d0fad00c14580dc9d9adefb00 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 6 Sep 2024 14:20:20 -0600 Subject: [PATCH] Get emptyLabel property translated --- .../etemplate/Et2Select/Et2WidgetWithSelectMixin.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts index 2ffbfcc06f..a5ef719d9b 100644 --- a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts +++ b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts @@ -109,6 +109,19 @@ export const Et2WidgetWithSelectMixin = >(supe */ private _xmlOptions : SelectOption[] = []; + /** + * List of properties that get translated + * @returns object + */ + static get translate() + { + return { + ...super.translate, + emptyLabel: true, + } + } + + constructor(...args : any[]) { super(...args);