问题
We are using the 'ng-bootstrap' date picker input component.
While the date-picker itself can be translated using NgbDatepickerI18n
according to the example at this plnkr, the input date picker uses the NgbInputDatepicker
directive.
How can this directive be translated using the same services that are used for translating the date-picker?
回答1:
You would use the exact same way. The NgbInputDatepicker, when toggled, displays an NgbDatepicker, which gets its labels from a service.
来源:https://stackoverflow.com/questions/42504283/how-to-translate-ng-bootstrap-input-date-picker-ngbinputdatepicker-i18n