es-do.js 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 esDo = moment.defineLocale('es-do', {
  12. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  13. monthsShort : function (m, format) {
  14. if (!m) {
  15. return monthsShortDot;
  16. } else if (/-MMM-/.test(format)) {
  17. return monthsShort[m.month()];
  18. } else {
  19. return monthsShortDot[m.month()];
  20. }
  21. },
  22. monthsParseExact : true,
  23. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  24. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  25. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  26. weekdaysParseExact : true,
  27. longDateFormat : {
  28. LT : 'h:mm A',
  29. LTS : 'h:mm:ss A',
  30. L : 'DD/MM/YYYY',
  31. LL : 'D [de] MMMM [de] YYYY',
  32. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  33. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  34. },
  35. calendar : {
  36. sameDay : function () {
  37. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  38. },
  39. nextDay : function () {
  40. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  41. },
  42. nextWeek : function () {
  43. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  44. },
  45. lastDay : function () {
  46. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  47. },
  48. lastWeek : function () {
  49. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  50. },
  51. sameElse : 'L'
  52. },
  53. relativeTime : {
  54. future : 'en %s',
  55. past : 'hace %s',
  56. s : 'unos segundos',
  57. m : 'un minuto',
  58. mm : '%d minutos',
  59. h : 'una hora',
  60. hh : '%d horas',
  61. d : 'un día',
  62. dd : '%d días',
  63. M : 'un mes',
  64. MM : '%d meses',
  65. y : 'un año',
  66. yy : '%d años'
  67. },
  68. dayOfMonthOrdinalParse : /\d{1,2}º/,
  69. ordinal : '%dº',
  70. week : {
  71. dow : 1, // Monday is the first day of the week.
  72. doy : 4 // The week that contains Jan 4th is the first week of the year.
  73. }
  74. });
  75. return esDo;
  76. })));