Merge "Improve cache assertions in WatchedItemStoreUnitTest"
[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((typeof global !== 'undefined' ? global : this).moment); // node or other 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 LTS : 'LT:ss',
32 L : 'DD/MM/YYYY',
33 LL : 'D [de] MMMM [de] YYYY',
34 LLL : 'D [de] MMMM [de] YYYY LT',
35 LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
36 },
37 calendar : {
38 sameDay : function () {
39 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
40 },
41 nextDay : function () {
42 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
43 },
44 nextWeek : function () {
45 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
46 },
47 lastDay : function () {
48 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
49 },
50 lastWeek : function () {
51 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
52 },
53 sameElse : 'L'
54 },
55 relativeTime : {
56 future : 'en %s',
57 past : 'hace %s',
58 s : 'unos segundos',
59 m : 'un minuto',
60 mm : '%d minutos',
61 h : 'una hora',
62 hh : '%d horas',
63 d : 'un día',
64 dd : '%d días',
65 M : 'un mes',
66 MM : '%d meses',
67 y : 'un año',
68 yy : '%d años'
69 },
70 ordinalParse : /\d{1,2}º/,
71 ordinal : '%dº',
72 week : {
73 dow : 1, // Monday is the first day of the week.
74 doy : 4 // The week that contains Jan 4th is the first week of the year.
75 }
76 });
77 }));