From 9215e6fc7ab9e529e43abd8ec6b5bed25b04ba60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Tue, 20 Mar 2018 08:19:51 +0100 Subject: [PATCH] Fix I18n injection --- .../wp-edit/field-types/wp-edit-select-field.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/wp-edit/field-types/wp-edit-select-field.module.ts b/frontend/app/components/wp-edit/field-types/wp-edit-select-field.module.ts index 94bf5471dd..72392028b3 100644 --- a/frontend/app/components/wp-edit/field-types/wp-edit-select-field.module.ts +++ b/frontend/app/components/wp-edit/field-types/wp-edit-select-field.module.ts @@ -30,6 +30,7 @@ import {EditField} from '../wp-edit-field/wp-edit-field.module'; import {WorkPackageResourceInterface} from '../../api/api-v3/hal-resources/work-package-resource.service'; import {CollectionResource} from '../../api/api-v3/hal-resources/collection-resource.service'; import {HalResource} from '../../api/api-v3/hal-resources/hal-resource.service'; +import {I18nToken} from 'core-app/angular4-transition-utils'; export class SelectEditField extends EditField { public options:any[]; @@ -37,7 +38,7 @@ export class SelectEditField extends EditField { public text:{requiredPlaceholder:string, placeholder:string}; protected initialize() { - const I18n:any = this.$injector.get('I18n'); + const I18n:any = this.$injector.get(I18nToken); this.text = { requiredPlaceholder: I18n.t('js.placeholders.selection'), placeholder: I18n.t('js.placeholders.default')