[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 // moment.js locale configuration 2 // locale : great britain english (en-gb) 3 // author : Chris Gedrim : https://github.com/chrisgedrim 4 5 (function (factory) { 6 if (typeof define === 'function' && define.amd) { 7 define(['moment'], factory); // AMD 8 } else if (typeof exports === 'object') { 9 module.exports = factory(require('../moment')); // Node 10 } else { 11 factory(window.moment); // Browser global 12 } 13 }(function (moment) { 14 return moment.defineLocale('en-gb', { 15 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 16 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), 17 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 18 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), 19 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), 20 longDateFormat : { 21 LT : 'HH:mm', 22 L : 'DD/MM/YYYY', 23 LL : 'D MMMM YYYY', 24 LLL : 'D MMMM YYYY LT', 25 LLLL : 'dddd, D MMMM YYYY LT' 26 }, 27 calendar : { 28 sameDay : '[Today at] LT', 29 nextDay : '[Tomorrow at] LT', 30 nextWeek : 'dddd [at] LT', 31 lastDay : '[Yesterday at] LT', 32 lastWeek : '[Last] dddd [at] LT', 33 sameElse : 'L' 34 }, 35 relativeTime : { 36 future : 'in %s', 37 past : '%s ago', 38 s : 'a few seconds', 39 m : 'a minute', 40 mm : '%d minutes', 41 h : 'an hour', 42 hh : '%d hours', 43 d : 'a day', 44 dd : '%d days', 45 M : 'a month', 46 MM : '%d months', 47 y : 'a year', 48 yy : '%d years' 49 }, 50 ordinal : function (number) { 51 var b = number % 10, 52 output = (~~(number % 100 / 10) === 1) ? 'th' : 53 (b === 1) ? 'st' : 54 (b === 2) ? 'nd' : 55 (b === 3) ? 'rd' : 'th'; 56 return number + output; 57 }, 58 week : { 59 dow : 1, // Monday is the first day of the week. 60 doy : 4 // The week that contains Jan 4th is the first week of the year. 61 } 62 }); 63 }));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |