How to translate ng-bootstrap input date-picker - NgbInputDatepicker i18n?

老子叫甜甜 提交于 2020-01-15 09:36:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!