| @@ 5-81 (lines=77) @@ | ||
| 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 | })); |
|
| @@ 5-77 (lines=73) @@ | ||
| 2 | //! locale : Galician [gl] |
|
| 3 | //! author : Juan G. Hurtado : https://github.com/juanghurtado |
|
| 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 gl = moment.defineLocale('gl', { |
|
| 14 | months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'), |
|
| 15 | monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'), |
|
| 16 | monthsParseExact: true, |
|
| 17 | weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'), |
|
| 18 | weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'), |
|
| 19 | weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'), |
|
| 20 | weekdaysParseExact : true, |
|
| 21 | longDateFormat : { |
|
| 22 | LT : 'H:mm', |
|
| 23 | LTS : 'H:mm:ss', |
|
| 24 | L : 'DD/MM/YYYY', |
|
| 25 | LL : 'D MMMM YYYY', |
|
| 26 | LLL : 'D MMMM YYYY H:mm', |
|
| 27 | LLLL : 'dddd D MMMM YYYY H:mm' |
|
| 28 | }, |
|
| 29 | calendar : { |
|
| 30 | sameDay : function () { |
|
| 31 | return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
|
| 32 | }, |
|
| 33 | nextDay : function () { |
|
| 34 | return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
|
| 35 | }, |
|
| 36 | nextWeek : function () { |
|
| 37 | return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
|
| 38 | }, |
|
| 39 | lastDay : function () { |
|
| 40 | return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; |
|
| 41 | }, |
|
| 42 | lastWeek : function () { |
|
| 43 | return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
|
| 44 | }, |
|
| 45 | sameElse : 'L' |
|
| 46 | }, |
|
| 47 | relativeTime : { |
|
| 48 | future : function (str) { |
|
| 49 | if (str === 'uns segundos') { |
|
| 50 | return 'nuns segundos'; |
|
| 51 | } |
|
| 52 | return 'en ' + str; |
|
| 53 | }, |
|
| 54 | past : 'hai %s', |
|
| 55 | s : 'uns segundos', |
|
| 56 | m : 'un minuto', |
|
| 57 | mm : '%d minutos', |
|
| 58 | h : 'unha 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 ano', |
|
| 65 | yy : '%d anos' |
|
| 66 | }, |
|
| 67 | ordinalParse : /\d{1,2}º/, |
|
| 68 | ordinal : '%dº', |
|
| 69 | week : { |
|
| 70 | dow : 1, // Monday is the first day of the week. |
|
| 71 | doy : 7 // The week that contains Jan 1st is the first week of the year. |
|
| 72 | } |
|
| 73 | }); |
|
| 74 | ||
| 75 | return gl; |
|
| 76 | ||
| 77 | })); |
|