es-do.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //! moment.js locale configuration
  2. //! locale : Spanish (Dominican Republic) [es-do]
  3. ;(function (global, factory) {
  4. typeof exports === 'object' && typeof module !== 'undefined'
  5. && typeof require === 'function' ? factory(require('../moment')) :
  6. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  7. factory(global.moment)
  8. }(this, (function (moment) { 'use strict';
  9. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  10. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  11. var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  12. var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  13. var esDo = moment.defineLocale('es-do', {
  14. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  15. monthsShort : function (m, format) {
  16. if (!m) {
  17. return monthsShortDot;
  18. } else if (/-MMM-/.test(format)) {
  19. return monthsShort[m.month()];
  20. } else {
  21. return monthsShortDot[m.month()];
  22. }
  23. },
  24. monthsRegex: monthsRegex,
  25. monthsShortRegex: monthsRegex,
  26. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  27. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  28. monthsParse: monthsParse,
  29. longMonthsParse: monthsParse,
  30. shortMonthsParse: monthsParse,
  31. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  32. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  33. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  34. weekdaysParseExact : true,
  35. longDateFormat : {
  36. LT : 'h:mm A',
  37. LTS : 'h:mm:ss A',
  38. L : 'DD/MM/YYYY',
  39. LL : 'D [de] MMMM [de] YYYY',
  40. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  41. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  42. },
  43. calendar : {
  44. sameDay : function () {
  45. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  46. },
  47. nextDay : function () {
  48. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  49. },
  50. nextWeek : function () {
  51. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  52. },
  53. lastDay : function () {
  54. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  55. },
  56. lastWeek : function () {
  57. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  58. },
  59. sameElse : 'L'
  60. },
  61. relativeTime : {
  62. future : 'en %s',
  63. past : 'hace %s',
  64. s : 'unos segundos',
  65. ss : '%d segundos',
  66. m : 'un minuto',
  67. mm : '%d minutos',
  68. h : 'una hora',
  69. hh : '%d horas',
  70. d : 'un día',
  71. dd : '%d días',
  72. M : 'un mes',
  73. MM : '%d meses',
  74. y : 'un año',
  75. yy : '%d años'
  76. },
  77. dayOfMonthOrdinalParse : /\d{1,2}º/,
  78. ordinal : '%dº',
  79. week : {
  80. dow : 1, // Monday is the first day of the week.
  81. doy : 4 // The week that contains Jan 4th is the first week of the year.
  82. }
  83. });
  84. return esDo;
  85. })));