UNPKG

1.16 kBJavaScriptView Raw
1// English (New Zealand) [en-nz]
2import dayjs from '../index';
3var locale = {
4 name: 'en-nz',
5 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
6 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
7 weekStart: 1,
8 weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
9 monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
10 weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
11 ordinal: function ordinal(n) {
12 var s = ['th', 'st', 'nd', 'rd'];
13 var v = n % 100;
14 return "[" + n + (s[(v - 20) % 10] || s[v] || s[0]) + "]";
15 },
16 formats: {
17 LT: 'h:mm A',
18 LTS: 'h:mm:ss A',
19 L: 'DD/MM/YYYY',
20 LL: 'D MMMM YYYY',
21 LLL: 'D MMMM YYYY h:mm A',
22 LLLL: 'dddd, D MMMM YYYY h:mm A'
23 },
24 relativeTime: {
25 future: 'in %s',
26 past: '%s ago',
27 s: 'a few seconds',
28 m: 'a minute',
29 mm: '%d minutes',
30 h: 'an hour',
31 hh: '%d hours',
32 d: 'a day',
33 dd: '%d days',
34 M: 'a month',
35 MM: '%d months',
36 y: 'a year',
37 yy: '%d years'
38 }
39};
40dayjs.locale(locale, null, true);
41export default locale;
\No newline at end of file