UNPKG

1.04 kBJavaScriptView Raw
1// English (Singapore) [en-sg]
2import dayjs from '../index';
3var locale = {
4 name: 'en-sg',
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 return n;
13 },
14 formats: {
15 LT: 'HH:mm',
16 LTS: 'HH:mm:ss',
17 L: 'DD/MM/YYYY',
18 LL: 'D MMMM YYYY',
19 LLL: 'D MMMM YYYY HH:mm',
20 LLLL: 'dddd, D MMMM YYYY HH:mm'
21 },
22 relativeTime: {
23 future: 'in %s',
24 past: '%s ago',
25 s: 'a few seconds',
26 m: 'a minute',
27 mm: '%d minutes',
28 h: 'an hour',
29 hh: '%d hours',
30 d: 'a day',
31 dd: '%d days',
32 M: 'a month',
33 MM: '%d months',
34 y: 'a year',
35 yy: '%d years'
36 }
37};
38dayjs.locale(locale, null, true);
39export default locale;
\No newline at end of file