How do I translate the datepicker?

368 Views Asked by At

I am using angular2-datepicker.I am trying to translate the year and days which shown in the popup.Can anyone help me to sort this out?

enter image description here

.html

<div>
  <my-date-picker name="startdate" [options]="startDateOptions" placeholder=" 
  {{'SELECT_START_DATE'|translate}}" (dateChanged)="onStartDateChanged($event)" required></my-date-picker>
</div>

.ts

public startDateOptions: IMyDpOptions = {
    dateFormat: 'dd/mm/yyyy',
    editableDateField: false,
    openSelectorOnInputClick: true,
    firstDayOfWeek: 'su',
    satHighlight: true,
    selectionTxtFontSize: '13px',
    height: '26px',
    disableSince: this.getCurrentDate()
};
public endDateOptions: IMyDpOptions = this.startDateOptions;
0

There are 0 best solutions below