corrade-nucleus-nucleons – Blame information for rev 38
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
38 | office | 1 | //! moment.js locale configuration |
2 | //! locale : Spanish [es] |
||
3 | //! author : Julio Napurí : https://github.com/julionc |
||
4 | |||
5 | import moment from '../moment'; |
||
6 | |||
7 | var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), |
||
8 | monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); |
||
9 | |||
10 | export default moment.defineLocale('es', { |
||
11 | months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'), |
||
12 | monthsShort : function (m, format) { |
||
13 | if (!m) { |
||
14 | return monthsShortDot; |
||
15 | } else if (/-MMM-/.test(format)) { |
||
16 | return monthsShort[m.month()]; |
||
17 | } else { |
||
18 | return monthsShortDot[m.month()]; |
||
19 | } |
||
20 | }, |
||
21 | monthsParseExact : true, |
||
22 | weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), |
||
23 | weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), |
||
24 | weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), |
||
25 | weekdaysParseExact : true, |
||
26 | longDateFormat : { |
||
27 | LT : 'H:mm', |
||
28 | LTS : 'H:mm:ss', |
||
29 | L : 'DD/MM/YYYY', |
||
30 | LL : 'D [de] MMMM [de] YYYY', |
||
31 | LLL : 'D [de] MMMM [de] YYYY H:mm', |
||
32 | LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' |
||
33 | }, |
||
34 | calendar : { |
||
35 | sameDay : function () { |
||
36 | return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
||
37 | }, |
||
38 | nextDay : function () { |
||
39 | return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
||
40 | }, |
||
41 | nextWeek : function () { |
||
42 | return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
||
43 | }, |
||
44 | lastDay : function () { |
||
45 | return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
||
46 | }, |
||
47 | lastWeek : function () { |
||
48 | return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
||
49 | }, |
||
50 | sameElse : 'L' |
||
51 | }, |
||
52 | relativeTime : { |
||
53 | future : 'en %s', |
||
54 | past : 'hace %s', |
||
55 | s : 'unos segundos', |
||
56 | m : 'un minuto', |
||
57 | mm : '%d minutos', |
||
58 | h : 'una hora', |
||
59 | hh : '%d horas', |
||
60 | d : 'un día', |
||
61 | dd : '%d días', |
||
62 | M : 'un mes', |
||
63 | MM : '%d meses', |
||
64 | y : 'un año', |
||
65 | yy : '%d años' |
||
66 | }, |
||
67 | dayOfMonthOrdinalParse : /\d{1,2}º/, |
||
68 | ordinal : '%dº', |
||
69 | week : { |
||
70 | dow : 1, // Monday is the first day of the week. |
||
71 | doy : 4 // The week that contains Jan 4th is the first week of the year. |
||
72 | } |
||
73 | }); |
||
74 |