PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/moment/src/locale/en-gb.js

https://bitbucket.org/coleman333/smartsite
JavaScript | 59 lines | 53 code | 3 blank | 3 comment | 0 complexity | 1321955b1ec98ec5fd507f7f819d45b6 MD5 | raw file
 1//! moment.js locale configuration
 2//! locale : English (United Kingdom) [en-gb]
 3//! author : Chris Gedrim : https://github.com/chrisgedrim
 4
 5import moment from '../moment';
 6
 7export default moment.defineLocale('en-gb', {
 8    months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
 9    monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10    weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
11    weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
12    weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
13    longDateFormat : {
14        LT : 'HH:mm',
15        LTS : 'HH:mm:ss',
16        L : 'DD/MM/YYYY',
17        LL : 'D MMMM YYYY',
18        LLL : 'D MMMM YYYY HH:mm',
19        LLLL : 'dddd, D MMMM YYYY HH:mm'
20    },
21    calendar : {
22        sameDay : '[Today at] LT',
23        nextDay : '[Tomorrow at] LT',
24        nextWeek : 'dddd [at] LT',
25        lastDay : '[Yesterday at] LT',
26        lastWeek : '[Last] dddd [at] LT',
27        sameElse : 'L'
28    },
29    relativeTime : {
30        future : 'in %s',
31        past : '%s ago',
32        s : 'a few seconds',
33        ss : '%d seconds',
34        m : 'a minute',
35        mm : '%d minutes',
36        h : 'an hour',
37        hh : '%d hours',
38        d : 'a day',
39        dd : '%d days',
40        M : 'a month',
41        MM : '%d months',
42        y : 'a year',
43        yy : '%d years'
44    },
45    dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
46    ordinal : function (number) {
47        var b = number % 10,
48            output = (~~(number % 100 / 10) === 1) ? 'th' :
49            (b === 1) ? 'st' :
50            (b === 2) ? 'nd' :
51            (b === 3) ? 'rd' : 'th';
52        return number + output;
53    },
54    week : {
55        dow : 1, // Monday is the first day of the week.
56        doy : 4  // The week that contains Jan 4th is the first week of the year.
57    }
58});
59