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