UNPKG

ngx-foundation

Version:

Native Angular Foundation for Sites Components

80 lines 2.93 kB
// tslint:disable:comment-format binary-expression-operand-order max-line-length // tslint:disable:no-bitwise prefer-template cyclomatic-complexity // tslint:disable:no-shadowed-variable switch-default prefer-const // tslint:disable:one-variable-per-declaration newline-before-return import { getHours, getMonth } from '../utils/date-getters'; //! moment.js locale configuration //! locale : Spanish (United States) [es-us] //! author : bustta : https://github.com/bustta var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'); var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); export var esUsLocale = { abbr: 'es-us', months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), monthsShort: function (date, format, isUTC) { if (!date) { return monthsShortDot; } else if (/-MMM-/.test(format)) { return monthsShort[getMonth(date, isUTC)]; } else { return monthsShortDot[getMonth(date, isUTC)]; } }, monthsParseExact: true, weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), weekdaysParseExact: true, longDateFormat: { LT: 'h:mm A', LTS: 'h:mm:ss A', L: 'MM/DD/YYYY', LL: 'MMMM [de] D [de] YYYY', LLL: 'MMMM [de] D [de] YYYY h:mm A', LLLL: 'dddd, MMMM [de] D [de] YYYY h:mm A' }, calendar: { sameDay: function (date) { return '[hoy a la' + ((getHours(date) !== 1) ? 's' : '') + '] LT'; }, nextDay: function (date) { return '[mañana a la' + ((getHours(date) !== 1) ? 's' : '') + '] LT'; }, nextWeek: function (date) { return 'dddd [a la' + ((getHours(date) !== 1) ? 's' : '') + '] LT'; }, lastDay: function (date) { return '[ayer a la' + ((getHours(date) !== 1) ? 's' : '') + '] LT'; }, lastWeek: function (date) { return '[el] dddd [pasado a la' + ((getHours(date) !== 1) ? 's' : '') + '] LT'; }, sameElse: 'L' }, relativeTime: { future: 'en %s', past: 'hace %s', s: 'unos segundos', ss: '%d segundos', m: 'un minuto', mm: '%d minutos', h: 'una hora', hh: '%d horas', d: 'un día', dd: '%d días', M: 'un mes', MM: '%d meses', y: 'un año', yy: '%d años' }, dayOfMonthOrdinalParse: /\d{1,2}º/, ordinal: '%dº', week: { dow: 0, // Sunday is the first day of the week. doy: 6 // The week that contains Jan 1st is the first week of the year. } }; //# sourceMappingURL=es-us.js.map