Commit 527d546efa035043c2cde8d37c1d30c0e476e228
1 parent
a63a70f8
Exists in
master
and in
39 other branches
Adding spanish locale of bootstrap-datetimepicker
Showing
1 changed file
with
66 additions
and
0 deletions
Show diff stats
src/static/third-party/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.es.js
0 → 100644
| ... | ... | @@ -0,0 +1,66 @@ |
| 1 | +// moment.js language configuration | |
| 2 | +// language : 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 | + return moment.lang('es', { | |
| 15 | + months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), | |
| 16 | + monthsShort : "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), | |
| 17 | + weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), | |
| 18 | + weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"), | |
| 19 | + weekdaysMin : "Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"), | |
| 20 | + longDateFormat : { | |
| 21 | + LT : "H:mm", | |
| 22 | + L : "DD/MM/YYYY", | |
| 23 | + LL : "D [de] MMMM [de] YYYY", | |
| 24 | + LLL : "D [de] MMMM [de] YYYY LT", | |
| 25 | + LLLL : "dddd, D [de] MMMM [de] YYYY LT" | |
| 26 | + }, | |
| 27 | + calendar : { | |
| 28 | + sameDay : function () { | |
| 29 | + return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | |
| 30 | + }, | |
| 31 | + nextDay : function () { | |
| 32 | + return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | |
| 33 | + }, | |
| 34 | + nextWeek : function () { | |
| 35 | + return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | |
| 36 | + }, | |
| 37 | + lastDay : function () { | |
| 38 | + return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | |
| 39 | + }, | |
| 40 | + lastWeek : function () { | |
| 41 | + return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | |
| 42 | + }, | |
| 43 | + sameElse : 'L' | |
| 44 | + }, | |
| 45 | + relativeTime : { | |
| 46 | + future : "en %s", | |
| 47 | + past : "hace %s", | |
| 48 | + s : "unos segundos", | |
| 49 | + m : "un minuto", | |
| 50 | + mm : "%d minutos", | |
| 51 | + h : "una hora", | |
| 52 | + hh : "%d horas", | |
| 53 | + d : "un día", | |
| 54 | + dd : "%d días", | |
| 55 | + M : "un mes", | |
| 56 | + MM : "%d meses", | |
| 57 | + y : "un año", | |
| 58 | + yy : "%d años" | |
| 59 | + }, | |
| 60 | + ordinal : '%dº', | |
| 61 | + week : { | |
| 62 | + dow : 1, // Monday is the first day of the week. | |
| 63 | + doy : 4 // The week that contains Jan 4th is the first week of the year. | |
| 64 | + } | |
| 65 | + }); | |
| 66 | +})); | ... | ... |