Fix I18n injection

pull/6240/head
Oliver Günther 7 years ago
parent 4b94b11b16
commit 9215e6fc7a
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 3
      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')

Loading…
Cancel
Save