You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.0 KiB

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