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