[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> es.js (source)

   1  //! moment.js locale configuration
   2  //! locale : Spanish [es]
   3  //! author : Julio Napurí : https://github.com/julionc
   4  
   5  ;(function (global, factory) {
   6     typeof exports === 'object' && typeof module !== 'undefined'
   7         && typeof require === 'function' ? factory(require('../moment')) :
   8     typeof define === 'function' && define.amd ? define(['../moment'], factory) :
   9     factory(global.moment)
  10  }(this, function (moment) { 'use strict';
  11  
  12  
  13      var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  14          monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  15  
  16      var es = moment.defineLocale('es', {
  17          months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  18          monthsShort : function (m, format) {
  19              if (/-MMM-/.test(format)) {
  20                  return monthsShort[m.month()];
  21              } else {
  22                  return monthsShortDot[m.month()];
  23              }
  24          },
  25          monthsParseExact : true,
  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',
  32              LTS : 'H:mm:ss',
  33              L : 'DD/MM/YYYY',
  34              LL : 'D [de] MMMM [de] YYYY',
  35              LLL : 'D [de] MMMM [de] YYYY H:mm',
  36              LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  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              m : 'un minuto',
  61              mm : '%d minutos',
  62              h : 'una hora',
  63              hh : '%d horas',
  64              d : 'un día',
  65              dd : '%d días',
  66              M : 'un mes',
  67              MM : '%d meses',
  68              y : 'un año',
  69              yy : '%d años'
  70          },
  71          ordinalParse : /\d{1,2}º/,
  72          ordinal : '%dº',
  73          week : {
  74              dow : 1, // Monday is the first day of the week.
  75              doy : 4  // The week that contains Jan 4th is the first week of the year.
  76          }
  77      });
  78  
  79      return es;
  80  
  81  }));


Generated: Wed Feb 24 01:01:36 2021 Cross-referenced by PHPXref 0.7.1