cscg24-guacamole

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

ga.js (2360B)


      1//! moment.js locale configuration
      2//! locale : Irish or Irish Gaelic [ga]
      3//! author : André Silva : https://github.com/askpt
      4
      5import moment from '../moment';
      6
      7var months = [
      8        'Eanáir',
      9        'Feabhra',
     10        'Márta',
     11        'Aibreán',
     12        'Bealtaine',
     13        'Meitheamh',
     14        'Iúil',
     15        'Lúnasa',
     16        'Meán Fómhair',
     17        'Deireadh Fómhair',
     18        'Samhain',
     19        'Nollaig',
     20    ],
     21    monthsShort = [
     22        'Ean',
     23        'Feabh',
     24        'Márt',
     25        'Aib',
     26        'Beal',
     27        'Meith',
     28        'Iúil',
     29        'Lún',
     30        'M.F.',
     31        'D.F.',
     32        'Samh',
     33        'Noll',
     34    ],
     35    weekdays = [
     36        'Dé Domhnaigh',
     37        'Dé Luain',
     38        'Dé Máirt',
     39        'Dé Céadaoin',
     40        'Déardaoin',
     41        'Dé hAoine',
     42        'Dé Sathairn',
     43    ],
     44    weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
     45    weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
     46
     47export default moment.defineLocale('ga', {
     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: '[Inniu ag] LT',
     64        nextDay: '[Amárach ag] LT',
     65        nextWeek: 'dddd [ag] LT',
     66        lastDay: '[Inné ag] LT',
     67        lastWeek: 'dddd [seo caite] [ag] LT',
     68        sameElse: 'L',
     69    },
     70    relativeTime: {
     71        future: 'i %s',
     72        past: '%s ó shin',
     73        s: 'cúpla soicind',
     74        ss: '%d soicind',
     75        m: 'nóiméad',
     76        mm: '%d nóiméad',
     77        h: 'uair an chloig',
     78        hh: '%d uair an chloig',
     79        d: 'lá',
     80        dd: '%d lá',
     81        M: 'mí',
     82        MM: '%d míonna',
     83        y: 'bliain',
     84        yy: '%d bliain',
     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});