gd.js (3076B)
1//! moment.js locale configuration 2//! locale : Scottish Gaelic [gd] 3//! author : Jon Ashdown : https://github.com/jonashdown 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 'Am Faoilleach', 16 'An Gearran', 17 'Am Màrt', 18 'An Giblean', 19 'An Cèitean', 20 'An t-Ògmhios', 21 'An t-Iuchar', 22 'An Lùnastal', 23 'An t-Sultain', 24 'An Dàmhair', 25 'An t-Samhain', 26 'An Dùbhlachd', 27 ], 28 monthsShort = [ 29 'Faoi', 30 'Gear', 31 'Màrt', 32 'Gibl', 33 'Cèit', 34 'Ògmh', 35 'Iuch', 36 'Lùn', 37 'Sult', 38 'Dàmh', 39 'Samh', 40 'Dùbh', 41 ], 42 weekdays = [ 43 'Didòmhnaich', 44 'Diluain', 45 'Dimàirt', 46 'Diciadain', 47 'Diardaoin', 48 'Dihaoine', 49 'Disathairne', 50 ], 51 weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], 52 weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; 53 54 var gd = moment.defineLocale('gd', { 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: '[An-diugh aig] LT', 71 nextDay: '[A-màireach aig] LT', 72 nextWeek: 'dddd [aig] LT', 73 lastDay: '[An-dè aig] LT', 74 lastWeek: 'dddd [seo chaidh] [aig] LT', 75 sameElse: 'L', 76 }, 77 relativeTime: { 78 future: 'ann an %s', 79 past: 'bho chionn %s', 80 s: 'beagan diogan', 81 ss: '%d diogan', 82 m: 'mionaid', 83 mm: '%d mionaidean', 84 h: 'uair', 85 hh: '%d uairean', 86 d: 'latha', 87 dd: '%d latha', 88 M: 'mìos', 89 MM: '%d mìosan', 90 y: 'bliadhna', 91 yy: '%d bliadhna', 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 gd; 105 106})));