ga.js (3056B)
1//! moment.js locale configuration 2//! locale : Irish or Irish Gaelic [ga] 3//! author : André Silva : https://github.com/askpt 4 5;(function (global, factory) { 6 typeof exports === 'object' && typeof module !== 'undefined' 7 && typeof require === 'function' ? factory(require('../moment')) : 8 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 9 factory(global.moment) 10}(this, (function (moment) { 'use strict'; 11 12 //! moment.js locale configuration 13 14 var months = [ 15 'Eanáir', 16 'Feabhra', 17 'Márta', 18 'Aibreán', 19 'Bealtaine', 20 'Meitheamh', 21 'Iúil', 22 'Lúnasa', 23 'Meán Fómhair', 24 'Deireadh Fómhair', 25 'Samhain', 26 'Nollaig', 27 ], 28 monthsShort = [ 29 'Ean', 30 'Feabh', 31 'Márt', 32 'Aib', 33 'Beal', 34 'Meith', 35 'Iúil', 36 'Lún', 37 'M.F.', 38 'D.F.', 39 'Samh', 40 'Noll', 41 ], 42 weekdays = [ 43 'Dé Domhnaigh', 44 'Dé Luain', 45 'Dé Máirt', 46 'Dé Céadaoin', 47 'Déardaoin', 48 'Dé hAoine', 49 'Dé Sathairn', 50 ], 51 weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], 52 weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; 53 54 var ga = moment.defineLocale('ga', { 55 months: months, 56 monthsShort: monthsShort, 57 monthsParseExact: true, 58 weekdays: weekdays, 59 weekdaysShort: weekdaysShort, 60 weekdaysMin: weekdaysMin, 61 longDateFormat: { 62 LT: 'HH:mm', 63 LTS: 'HH:mm:ss', 64 L: 'DD/MM/YYYY', 65 LL: 'D MMMM YYYY', 66 LLL: 'D MMMM YYYY HH:mm', 67 LLLL: 'dddd, D MMMM YYYY HH:mm', 68 }, 69 calendar: { 70 sameDay: '[Inniu ag] LT', 71 nextDay: '[Amárach ag] LT', 72 nextWeek: 'dddd [ag] LT', 73 lastDay: '[Inné ag] LT', 74 lastWeek: 'dddd [seo caite] [ag] LT', 75 sameElse: 'L', 76 }, 77 relativeTime: { 78 future: 'i %s', 79 past: '%s ó shin', 80 s: 'cúpla soicind', 81 ss: '%d soicind', 82 m: 'nóiméad', 83 mm: '%d nóiméad', 84 h: 'uair an chloig', 85 hh: '%d uair an chloig', 86 d: 'lá', 87 dd: '%d lá', 88 M: 'mí', 89 MM: '%d míonna', 90 y: 'bliain', 91 yy: '%d bliain', 92 }, 93 dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, 94 ordinal: function (number) { 95 var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; 96 return number + output; 97 }, 98 week: { 99 dow: 1, // Monday is the first day of the week. 100 doy: 4, // The week that contains Jan 4th is the first week of the year. 101 }, 102 }); 103 104 return ga; 105 106})));