Skip to content

LocaleData: weekdays is not a function on instance level #1017

Closed
@Phil147

Description

@Phil147

Describe the bug
When using localeData from an instance the error weekdays is not a function is thrown.

Steps to reproduce:

dayjs().localeData().weekdays()

Using the global function it works:

dayjs.localeData().weekdays()

Expected behavior
localeData returns the same objects for local and global calls.

It is also documented that way: https://day.js.org/docs/en/plugin/locale-data

Information

  • Day.js Version 1.8.34

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions