1 // moment.js locale configuration
2 // locale : canadian english (en-ca)
3 // author : Jonathan Abourbih : https://github.com/jonbca
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
11 factory(window
.moment
); // Browser global
14 return moment
.defineLocale('en-ca', {
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('_'),
24 LLL
: 'D MMMM, YYYY LT',
25 LLLL
: 'dddd, D MMMM, YYYY LT'
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',
50 ordinal : function (number
) {
52 output
= (~~(number
% 100 / 10) === 1) ? 'th' :
55 (b
=== 3) ? 'rd' : 'th';
56 return number
+ output
;