You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have weekStart be 1 (start on Monday instead of Sunday), so my understanding is that we're supposed to use dayjs.locale() to override. So something like:
However, if I do this, then some functions break, such as dayjs().format('ll'), which gives me TypeError: Cannot read property 'replace' of undefined. Although dayjs().format('LL')does work.
I got around the problem by including formats in the locale info:
I want to have
weekStart
be 1 (start on Monday instead of Sunday), so my understanding is that we're supposed to usedayjs.locale()
to override. So something like:However, if I do this, then some functions break, such as
dayjs().format('ll')
, which gives meTypeError: Cannot read property 'replace' of undefined
. Althoughdayjs().format('LL')
does work.I got around the problem by including
formats
in the locale info:So my question is, am I supposed to include
formats
when overriding locale? Should I have to include other keys as well? Or is this a bug?Information
The text was updated successfully, but these errors were encountered: