Miguel Camba

Results 297 comments of Miguel Camba
trafficstars

@svparijs if you use moment, something like this: ```js import moment from "moment"; export default { initialize() { moment.locale("fr"); } } ``` if you use luxon, something like this: ```js...

It doesn't need to be an initializer tho, it could be in the application route for instance, in case you want to load the current user first to check their...

@svparijs That config looks right to me. Maybe it's an issue with `ember-cli-moment-shim` that ember-power-calendar-moment uses? I've been using luxon myself for the last year or so

I also considered having the days component be another behavioural component without any markup a third component that is 100% markup, with little-to-none logic, but i'm not sure what would...

Probably the `{{power-calendar}}` component is logicless enough already. It just adds a div with class, that is all. It could be tagless, but it would force me to implement myself...

IIRC, optional peer dependencies has been something a lot of people has been waiting for ages. What would that `registerDateLibrary` do?

@xomaczar This component doesn't have that `extra` property in the API because the contextual components that compose it are explicit. So if you want to pass a property, you just...

@xomaczar have you tried doing something like this? ```hbs {{!-- nav.hbs --}} {{#if dayMode}} {{else}} {{/if}} ```

It does use moment in many places because using dates in JS without some sort of tool (it being moment.js, date.js or luxor) is pretty inconvenient. To be clear, I...

I totally agree, moment should be optional. I plan to tackle this myself soon (weeks) as one app that is using it right now will migrate from moment.js to luxon.