calendar.js (442B)
1export var defaultCalendar = { 2 sameDay: '[Today at] LT', 3 nextDay: '[Tomorrow at] LT', 4 nextWeek: 'dddd [at] LT', 5 lastDay: '[Yesterday at] LT', 6 lastWeek: '[Last] dddd [at] LT', 7 sameElse: 'L', 8}; 9 10import isFunction from '../utils/is-function'; 11 12export function calendar(key, mom, now) { 13 var output = this._calendar[key] || this._calendar['sameElse']; 14 return isFunction(output) ? output.call(mom, now) : output; 15}