Fix missing translation in Select group & dropdown options

This commit is contained in:
nathan 2023-02-09 13:35:40 -07:00
parent bf764df720
commit 96558b9da8
2 changed files with 3 additions and 2 deletions

View File

@ -144,7 +144,7 @@ export class Et2DropdownButton extends Et2widgetWithSelectMixin(Et2Button)
return html`
<sl-menu-item value="${option.value}">
${icon}
${option.label}
${this.noLang ? option.label : this.egw().lang(option.label)}
</sl-menu-item>`;
}

View File

@ -275,7 +275,8 @@ export const Et2widgetWithSelectMixin = <T extends Constructor<LitElement>>(supe
return this._optionTemplate(option);
}
return html`
<sl-menu-label>${option.label}</sl-menu-label>
<sl-menu-label>${this.noLang ? option.label : this.egw().lang(option.label)}</sl-menu-label>
${option.value.map(this._optionTemplate.bind(this))}
<sl-divider></sl-divider>
`;