Merge "Chunked upload result should consistently have a "stage" value for "Poll""
[lhc/web/wiklou.git] / resources / lib / moment / locale / es.js
1 // moment.js locale configuration
2 // locale : spanish (es)
3 // author : Julio Napurí : https://github.com/julionc
4
5 (function (factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
10 } else {
11 factory(window.moment); // Browser global
12 }
13 }(function (moment) {
14 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
15 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
16
17 return moment.defineLocale('es', {
18 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
19 monthsShort : function (m, format) {
20 if (/-MMM-/.test(format)) {
21 return monthsShort[m.month()];
22 } else {
23 return monthsShortDot[m.month()];
24 }
25 },
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 longDateFormat : {
30 LT : 'H:mm',
31 L : 'DD/MM/YYYY',
32 LL : 'D [de] MMMM [de] YYYY',
33 LLL : 'D [de] MMMM [de] YYYY LT',
34 LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
35 },
36 calendar : {
37 sameDay : function () {
38 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
39 },
40 nextDay : function () {
41 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
42 },
43 nextWeek : function () {
44 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
45 },
46 lastDay : function () {
47 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
48 },
49 lastWeek : function () {
50 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
51 },
52 sameElse : 'L'
53 },
54 relativeTime : {
55 future : 'en %s',
56 past : 'hace %s',
57 s : 'unos segundos',
58 m : 'un minuto',
59 mm : '%d minutos',
60 h : 'una hora',
61 hh : '%d horas',
62 d : 'un día',
63 dd : '%d días',
64 M : 'un mes',
65 MM : '%d meses',
66 y : 'un año',
67 yy : '%d años'
68 },
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 }));