Closed veelci closed 4 years ago
Thanks.
I think we must now make it configurable to load a different locale as import locales from 'date-fns/locale'
will probably include all locales, even if the developers doesn't need them.
Yes. import locales from 'date-fns/locale'
will import all locales from date-fns. I attempted to dynamically import them via ember-auto-import's dynamic import, but import()
requires a string literal.
I've seen other libraries such as ember-moment require which locales are needed to be specified in environment.js. That may be the route to go here.
Update date-fns dependency to ^2.2.1, implement localeStartOfWeek(), getWeekdaysShort(), getWeekdaysMin(), and getWeekDays()