Bez popisu

es-do.js 3.1KB

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