‘CustomDatepickerI18n’ does not implement inherited abstract member ‘getDayAriaLabel’ from class ‘NgbDatepickerI18n’

Hi,After upgrading from v1.1.1 to 2.0.0 I’ve got this error

‘CustomDatepickerI18n’ does not implement inherited abstract member ‘getDayAriaLabel’ from class ‘NgbDatepickerI18n’

on a custom control:

....
@Injectable()
export class CustomDatepickerI18n extends NgbDatepickerI18n {

  constructor(private _i18n: I18n) {
    super();
  }
........

thanks

1 possible answer(s) on “‘CustomDatepickerI18n’ does not implement inherited abstract member ‘getDayAriaLabel’ from class ‘NgbDatepickerI18n’

  1. Thanks solved:

     getDayAriaLabel(date: NgbDateStruct): string {
        return `${date.day}-${date.month}-${date.year}`;
      }
    

    what about autoclose Datepicker popup when is closed outside: #783