vendor/static/moment/src/lib/locale/calendar.js
raw| 1 | export 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 | |
| 10 | import isFunction from '../utils/is-function'; |
| 11 | |
| 12 | export function calendar(key, mom, now) { |
| 13 | var output = this._calendar[key] || this._calendar['sameElse']; |
| 14 | return isFunction(output) ? output.call(mom, now) : output; |
| 15 | } |