cscg24-guacamole

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

gd.js (2380B)


      1//! moment.js locale configuration
      2//! locale : Scottish Gaelic [gd]
      3//! author : Jon Ashdown : https://github.com/jonashdown
      4
      5import moment from '../moment';
      6
      7var months = [
      8        'Am Faoilleach',
      9        'An Gearran',
     10        'Am Màrt',
     11        'An Giblean',
     12        'An Cèitean',
     13        'An t-Ògmhios',
     14        'An t-Iuchar',
     15        'An Lùnastal',
     16        'An t-Sultain',
     17        'An Dàmhair',
     18        'An t-Samhain',
     19        'An Dùbhlachd',
     20    ],
     21    monthsShort = [
     22        'Faoi',
     23        'Gear',
     24        'Màrt',
     25        'Gibl',
     26        'Cèit',
     27        'Ògmh',
     28        'Iuch',
     29        'Lùn',
     30        'Sult',
     31        'Dàmh',
     32        'Samh',
     33        'Dùbh',
     34    ],
     35    weekdays = [
     36        'Didòmhnaich',
     37        'Diluain',
     38        'Dimàirt',
     39        'Diciadain',
     40        'Diardaoin',
     41        'Dihaoine',
     42        'Disathairne',
     43    ],
     44    weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
     45    weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
     46
     47export default moment.defineLocale('gd', {
     48    months: months,
     49    monthsShort: monthsShort,
     50    monthsParseExact: true,
     51    weekdays: weekdays,
     52    weekdaysShort: weekdaysShort,
     53    weekdaysMin: weekdaysMin,
     54    longDateFormat: {
     55        LT: 'HH:mm',
     56        LTS: 'HH:mm:ss',
     57        L: 'DD/MM/YYYY',
     58        LL: 'D MMMM YYYY',
     59        LLL: 'D MMMM YYYY HH:mm',
     60        LLLL: 'dddd, D MMMM YYYY HH:mm',
     61    },
     62    calendar: {
     63        sameDay: '[An-diugh aig] LT',
     64        nextDay: '[A-màireach aig] LT',
     65        nextWeek: 'dddd [aig] LT',
     66        lastDay: '[An-dè aig] LT',
     67        lastWeek: 'dddd [seo chaidh] [aig] LT',
     68        sameElse: 'L',
     69    },
     70    relativeTime: {
     71        future: 'ann an %s',
     72        past: 'bho chionn %s',
     73        s: 'beagan diogan',
     74        ss: '%d diogan',
     75        m: 'mionaid',
     76        mm: '%d mionaidean',
     77        h: 'uair',
     78        hh: '%d uairean',
     79        d: 'latha',
     80        dd: '%d latha',
     81        M: 'mìos',
     82        MM: '%d mìosan',
     83        y: 'bliadhna',
     84        yy: '%d bliadhna',
     85    },
     86    dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
     87    ordinal: function (number) {
     88        var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
     89        return number + output;
     90    },
     91    week: {
     92        dow: 1, // Monday is the first day of the week.
     93        doy: 4, // The week that contains Jan 4th is the first week of the year.
     94    },
     95});