b3d3a40b72b26833d5d7a12550ff979bbbe3672a3329b197e56bdeb71a3a35d2334fb5e6387abac53656a0e11b89de120e58ca66f84cb0e487da605cd7a550 2.3 KB

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