diff --git a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts index 6f678ce7f4..eade867523 100644 --- a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts +++ b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts @@ -235,7 +235,7 @@ export const Et2widgetWithSelectMixin = >(supe new_options.push({ value: et2_readAttrWithDefault(options[i], "value", options[i].textContent), // allow options to contain multiple translated sub-strings eg: {Firstname}.{Lastname} - label: options[i].textContent.replace(/{([^}]+)}/g, function(str, p1) + label: options[i].textContent.replace(/{([^}]+)}/g, (str, p1) => { return this.egw().lang(p1); }),