Skip to content
Snippets Groups Projects
Commit 34a7e7f7 authored by Mathias Chouet's avatar Mathias Chouet
Browse files

Fix #400 - for real !

parent 10b82fc7
No related branches found
No related tags found
No related merge requests found
Pipeline #137928 passed
......@@ -126,7 +126,10 @@ export class SelectField extends Field {
public updateLocalisation(loc: StringMap) {
super.updateLocalisation(loc);
for (const e of this._entries) {
e.label = ServiceFactory.instance.i18nService.localizeText(e.id, loc);
// some Select fields already have a translated label at this time; translate others
if (e.label === undefined) {
e.label = ServiceFactory.instance.i18nService.localizeText(e.id, loc);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment