node_modules/moment/src/lib/locale/prototype.js (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
import { Locale } from './constructor'; var proto = Locale.prototype; import { calendar } from './calendar'; import { longDateFormat } from './formats'; import { invalidDate } from './invalid'; import { ordinal } from './ordinal'; import { preParsePostFormat } from './pre-post-format'; import { relativeTime, pastFuture } from './relative'; import { set } from './set'; proto.calendar = calendar; proto.longDateFormat = longDateFormat; proto.invalidDate = invalidDate; proto.ordinal = ordinal; proto.preparse = preParsePostFormat; proto.postformat = preParsePostFormat; proto.relativeTime = relativeTime; proto.pastFuture = pastFuture; proto.set = set; // Month import { localeMonthsParse, localeMonths, localeMonthsShort, monthsRegex, monthsShortRegex } from '../units/month'; proto.months = localeMonths; proto.monthsShort = localeMonthsShort; proto.monthsParse = localeMonthsParse; proto.monthsRegex = monthsRegex; proto.monthsShortRegex = monthsShortRegex; // Week import { localeWeek, localeFirstDayOfYear, localeFirstDayOfWeek } from '../units/week'; proto.week = localeWeek; proto.firstDayOfYear = localeFirstDayOfYear; proto.firstDayOfWeek = localeFirstDayOfWeek; // Day of Week import { localeWeekdaysParse, localeWeekdays, localeWeekdaysMin, localeWeekdaysShort, weekdaysRegex, weekdaysShortRegex, weekdaysMinRegex } from '../units/day-of-week'; proto.weekdays = localeWeekdays; proto.weekdaysMin = localeWeekdaysMin; proto.weekdaysShort = localeWeekdaysShort; proto.weekdaysParse = localeWeekdaysParse; proto.weekdaysRegex = weekdaysRegex; proto.weekdaysShortRegex = weekdaysShortRegex; proto.weekdaysMinRegex = weekdaysMinRegex; // Hours import { localeIsPM, localeMeridiem } from '../units/hour'; proto.isPM = localeIsPM; proto.meridiem = localeMeridiem; |