diff --git a/src/app/formulaire/elements/select-field.ts b/src/app/formulaire/elements/select-field.ts index d80ba97073bafd4ef918866bba3af6028342a609..9be231395892bab31c6003d5ac62774a64acedbb 100644 --- a/src/app/formulaire/elements/select-field.ts +++ b/src/app/formulaire/elements/select-field.ts @@ -116,7 +116,7 @@ export class SelectField extends Field { // some Select fields already have a translated label at this time; translate others if (e.label === undefined) { const aId = e.id.split("_"); - e.label = ServiceFactory.instance.i18nService.localizeText(`${aId[1].toUpperCase()}_${aId[2]}`, loc); + e.label = ServiceFactory.i18nService.localizeText(`${aId[1].toUpperCase()}_${aId[2]}`, loc); } } }