How to use the cldr.extractDayNames function in cldr

To help you get started, we’ve selected a few cldr examples, based on popular ways it is used in public projects.

github ArminTamzarian / node-calendar / node-calendar.js View on Github external
function _extractLocaleDays(abbr, locale) {
      if(abbr) {
        return cldr ? cldr.extractDayNames(locale).format.abbreviated : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
      }
      else {
        return cldr ? cldr.extractDayNames(locale).format.wide : ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
      }
    };