cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

en-ca.js (1902B)


      1//! moment.js locale configuration
      2//! locale : English (Canada) [en-ca]
      3//! author : Jonathan Abourbih : https://github.com/jonbca
      4
      5import moment from '../moment';
      6
      7export default moment.defineLocale('en-ca', {
      8    months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
      9        '_'
     10    ),
     11    monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
     12    weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
     13        '_'
     14    ),
     15    weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
     16    weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
     17    longDateFormat: {
     18        LT: 'h:mm A',
     19        LTS: 'h:mm:ss A',
     20        L: 'YYYY-MM-DD',
     21        LL: 'MMMM D, YYYY',
     22        LLL: 'MMMM D, YYYY h:mm A',
     23        LLLL: 'dddd, MMMM D, YYYY h:mm A',
     24    },
     25    calendar: {
     26        sameDay: '[Today at] LT',
     27        nextDay: '[Tomorrow at] LT',
     28        nextWeek: 'dddd [at] LT',
     29        lastDay: '[Yesterday at] LT',
     30        lastWeek: '[Last] dddd [at] LT',
     31        sameElse: 'L',
     32    },
     33    relativeTime: {
     34        future: 'in %s',
     35        past: '%s ago',
     36        s: 'a few seconds',
     37        ss: '%d seconds',
     38        m: 'a minute',
     39        mm: '%d minutes',
     40        h: 'an hour',
     41        hh: '%d hours',
     42        d: 'a day',
     43        dd: '%d days',
     44        M: 'a month',
     45        MM: '%d months',
     46        y: 'a year',
     47        yy: '%d years',
     48    },
     49    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
     50    ordinal: function (number) {
     51        var b = number % 10,
     52            output =
     53                ~~((number % 100) / 10) === 1
     54                    ? 'th'
     55                    : b === 1
     56                      ? 'st'
     57                      : b === 2
     58                        ? 'nd'
     59                        : b === 3
     60                          ? 'rd'
     61                          : 'th';
     62        return number + output;
     63    },
     64});