Skip to content

localeData().months() or weekdays() throws exception or undefined in 14 locales #3805

Closed
@timfish

Description

Previously reported in this issue but they're two separate issues.

localeData().monthsShort() appears to be broken for:

  • es
  • es-do
  • nl
  • nl-be
  • fy

Both m and format are undefined when getting the locale data:

    monthsShort : function (m, format) {
        if (/-MMM-/.test(format)) {
            return monthsShort[m.month()];
        } else {
            return monthsShortDot[m.month()];
        }
    }

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions