ionic-datepicker
ionic-datepicker copied to clipboard
Improvement request : integration with Moment.js
This (otherwise awesome) plugin could benefit from reusing locales as defined in Moment.js by slightly altering DatepickerNls :
this.getWeekdays = function(locale) { if (moment) { moment.locale(locale); return moment.weekdays(); } };
(same for Months)
This would guarantee consistency for apps already using Moment.js, plus provide a vast amount of high-quality translations for DatePicker
Excellent! Thanks =D
I'll work on this next week. Thank you for your suggestion.
No problemo, I had to work with those two components and as any good-therefore-lazy developer I saw an opportunity to reuse someone else's work :)