mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:15:05 +08:00
DEV: updates moment.js and moment-timezone.js
This commit is contained in:
parent
8fc2b0124f
commit
5a40b3b478
|
@ -24,8 +24,8 @@
|
|||
"jquery.cookie": "1.4.1",
|
||||
"magnific-popup": "1.1.0",
|
||||
"markdown-it": "8.4.1",
|
||||
"moment": "2.22.1",
|
||||
"moment-timezone": "0.5.14",
|
||||
"moment": "2.24.0",
|
||||
"moment-timezone": "0.5.25",
|
||||
"moment-timezone-names-translations": "https://github.com/discourse/moment-timezone-names-translations",
|
||||
"mousetrap": "https://github.com/discourse/mousetrap#firefox-alt-key",
|
||||
"pikaday": "1.7.0",
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
relativeTime : {
|
||||
future : '%s sonra',
|
||||
past : '%s əvvəl',
|
||||
s : 'birneçə saniyyə',
|
||||
s : 'birneçə saniyə',
|
||||
ss : '%d saniyə',
|
||||
m : 'bir dəqiqə',
|
||||
mm : '%d dəqiqə',
|
||||
|
@ -95,7 +95,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
weekdays : {
|
||||
format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
|
||||
standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
||||
isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
|
||||
isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
|
||||
},
|
||||
weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||
weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
|
||||
|
@ -122,7 +122,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
37
vendor/assets/javascripts/moment-locale/cs.js
vendored
37
vendor/assets/javascripts/moment-locale/cs.js
vendored
|
@ -10,6 +10,12 @@
|
|||
|
||||
var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
|
||||
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
|
||||
|
||||
var monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
|
||||
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
||||
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
||||
var monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
|
||||
|
||||
function plural(n) {
|
||||
return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
|
||||
}
|
||||
|
@ -76,28 +82,15 @@
|
|||
var cs = moment.defineLocale('cs', {
|
||||
months : months,
|
||||
monthsShort : monthsShort,
|
||||
monthsParse : (function (months, monthsShort) {
|
||||
var i, _monthsParse = [];
|
||||
for (i = 0; i < 12; i++) {
|
||||
// use custom parser to solve problem with July (červenec)
|
||||
_monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
|
||||
}
|
||||
return _monthsParse;
|
||||
}(months, monthsShort)),
|
||||
shortMonthsParse : (function (monthsShort) {
|
||||
var i, _shortMonthsParse = [];
|
||||
for (i = 0; i < 12; i++) {
|
||||
_shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
|
||||
}
|
||||
return _shortMonthsParse;
|
||||
}(monthsShort)),
|
||||
longMonthsParse : (function (months) {
|
||||
var i, _longMonthsParse = [];
|
||||
for (i = 0; i < 12; i++) {
|
||||
_longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
|
||||
}
|
||||
return _longMonthsParse;
|
||||
}(months)),
|
||||
monthsRegex : monthsRegex,
|
||||
monthsShortRegex : monthsRegex,
|
||||
// NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
|
||||
// Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
|
||||
monthsStrictRegex : /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
|
||||
monthsShortStrictRegex : /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
|
||||
monthsParse : monthsParse,
|
||||
longMonthsParse : monthsParse,
|
||||
shortMonthsParse : monthsParse,
|
||||
weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
|
||||
weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
ordinal : '%d-мӗш',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 7, // Sunday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
66
vendor/assets/javascripts/moment-locale/en-SG.js
vendored
Normal file
66
vendor/assets/javascripts/moment-locale/en-SG.js
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
//! moment.js locale configuration
|
||||
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
var enSG = moment.defineLocale('en-SG', {
|
||||
months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
||||
monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'DD/MM/YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY HH:mm',
|
||||
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[Today at] LT',
|
||||
nextDay : '[Tomorrow at] LT',
|
||||
nextWeek : 'dddd [at] LT',
|
||||
lastDay : '[Yesterday at] LT',
|
||||
lastWeek : '[Last] dddd [at] LT',
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'in %s',
|
||||
past : '%s ago',
|
||||
s : 'a few seconds',
|
||||
ss : '%d seconds',
|
||||
m : 'a minute',
|
||||
mm : '%d minutes',
|
||||
h : 'an hour',
|
||||
hh : '%d hours',
|
||||
d : 'a day',
|
||||
dd : '%d days',
|
||||
M : 'a month',
|
||||
MM : '%d months',
|
||||
y : 'a year',
|
||||
yy : '%d years'
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
|
||||
ordinal : function (number) {
|
||||
var b = number % 10,
|
||||
output = (~~(number % 100 / 10) === 1) ? 'th' :
|
||||
(b === 1) ? 'st' :
|
||||
(b === 2) ? 'nd' :
|
||||
(b === 3) ? 'rd' : 'th';
|
||||
return number + output;
|
||||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return enSG;
|
||||
|
||||
})));
|
|
@ -17,7 +17,7 @@
|
|||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'DD-MM-YYYY',
|
||||
L : 'DD/MM/YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY HH:mm',
|
||||
LLLL : 'dddd D MMMM YYYY HH:mm'
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
ordinal : '%da',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
19
vendor/assets/javascripts/moment-locale/es-us.js
vendored
19
vendor/assets/javascripts/moment-locale/es-us.js
vendored
|
@ -11,6 +11,9 @@
|
|||
var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
|
||||
monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
|
||||
|
||||
var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
|
||||
var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
|
||||
|
||||
var esUs = moment.defineLocale('es-us', {
|
||||
months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
|
||||
monthsShort : function (m, format) {
|
||||
|
@ -22,7 +25,13 @@
|
|||
return monthsShortDot[m.month()];
|
||||
}
|
||||
},
|
||||
monthsParseExact : true,
|
||||
monthsRegex: monthsRegex,
|
||||
monthsShortRegex: monthsRegex,
|
||||
monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
|
||||
monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
|
||||
monthsParse: monthsParse,
|
||||
longMonthsParse: monthsParse,
|
||||
shortMonthsParse: monthsParse,
|
||||
weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
|
||||
weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
|
||||
weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
|
||||
|
@ -31,9 +40,9 @@
|
|||
LT : 'h:mm A',
|
||||
LTS : 'h:mm:ss A',
|
||||
L : 'MM/DD/YYYY',
|
||||
LL : 'MMMM [de] D [de] YYYY',
|
||||
LLL : 'MMMM [de] D [de] YYYY h:mm A',
|
||||
LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A'
|
||||
LL : 'D [de] MMMM [de] YYYY',
|
||||
LLL : 'D [de] MMMM [de] YYYY h:mm A',
|
||||
LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
|
||||
},
|
||||
calendar : {
|
||||
sameDay : function () {
|
||||
|
@ -73,7 +82,7 @@
|
|||
ordinal : '%dº',
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
ordinal : '%dم',
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -35,13 +35,13 @@
|
|||
past : '%s síðani',
|
||||
s : 'fá sekund',
|
||||
ss : '%d sekundir',
|
||||
m : 'ein minutt',
|
||||
m : 'ein minuttur',
|
||||
mm : '%d minuttir',
|
||||
h : 'ein tími',
|
||||
hh : '%d tímar',
|
||||
d : 'ein dagur',
|
||||
dd : '%d dagar',
|
||||
M : 'ein mánaði',
|
||||
M : 'ein mánaður',
|
||||
MM : '%d mánaðir',
|
||||
y : 'eitt ár',
|
||||
yy : '%d ár'
|
||||
|
|
76
vendor/assets/javascripts/moment-locale/ga.js
vendored
Normal file
76
vendor/assets/javascripts/moment-locale/ga.js
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
//! moment.js locale configuration
|
||||
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
|
||||
var months = [
|
||||
'Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Méitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deaireadh Fómhair', 'Samhain', 'Nollaig'
|
||||
];
|
||||
|
||||
var monthsShort = ['Eaná', 'Feab', 'Márt', 'Aibr', 'Beal', 'Méit', 'Iúil', 'Lúna', 'Meán', 'Deai', 'Samh', 'Noll'];
|
||||
|
||||
var weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Satharn'];
|
||||
|
||||
var weekdaysShort = ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'];
|
||||
|
||||
var weekdaysMin = ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'];
|
||||
|
||||
var ga = moment.defineLocale('ga', {
|
||||
months: months,
|
||||
monthsShort: monthsShort,
|
||||
monthsParseExact: true,
|
||||
weekdays: weekdays,
|
||||
weekdaysShort: weekdaysShort,
|
||||
weekdaysMin: weekdaysMin,
|
||||
longDateFormat: {
|
||||
LT: 'HH:mm',
|
||||
LTS: 'HH:mm:ss',
|
||||
L: 'DD/MM/YYYY',
|
||||
LL: 'D MMMM YYYY',
|
||||
LLL: 'D MMMM YYYY HH:mm',
|
||||
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
calendar: {
|
||||
sameDay: '[Inniu ag] LT',
|
||||
nextDay: '[Amárach ag] LT',
|
||||
nextWeek: 'dddd [ag] LT',
|
||||
lastDay: '[Inné aig] LT',
|
||||
lastWeek: 'dddd [seo caite] [ag] LT',
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime: {
|
||||
future: 'i %s',
|
||||
past: '%s ó shin',
|
||||
s: 'cúpla soicind',
|
||||
ss: '%d soicind',
|
||||
m: 'nóiméad',
|
||||
mm: '%d nóiméad',
|
||||
h: 'uair an chloig',
|
||||
hh: '%d uair an chloig',
|
||||
d: 'lá',
|
||||
dd: '%d lá',
|
||||
M: 'mí',
|
||||
MM: '%d mí',
|
||||
y: 'bliain',
|
||||
yy: '%d bliain'
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
|
||||
ordinal: function (number) {
|
||||
var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
|
||||
return number + output;
|
||||
},
|
||||
week: {
|
||||
dow: 1, // Monday is the first day of the week.
|
||||
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return ga;
|
||||
|
||||
})));
|
|
@ -14,8 +14,8 @@
|
|||
'ss': [number + ' secondanim', number + ' second'],
|
||||
'm': ['eka mintan', 'ek minute'],
|
||||
'mm': [number + ' mintanim', number + ' mintam'],
|
||||
'h': ['eka horan', 'ek hor'],
|
||||
'hh': [number + ' horanim', number + ' horam'],
|
||||
'h': ['eka voran', 'ek vor'],
|
||||
'hh': [number + ' voranim', number + ' voram'],
|
||||
'd': ['eka disan', 'ek dis'],
|
||||
'dd': [number + ' disanim', number + ' dis'],
|
||||
'M': ['eka mhoinean', 'ek mhoino'],
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
},
|
||||
week: {
|
||||
dow: 0, // Sunday is the first day of the week.
|
||||
doy: 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy: 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
68
vendor/assets/javascripts/moment-locale/it-ch.js
vendored
Normal file
68
vendor/assets/javascripts/moment-locale/it-ch.js
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
//! moment.js locale configuration
|
||||
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
var itCh = moment.defineLocale('it-ch', {
|
||||
months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
|
||||
monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
|
||||
weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
|
||||
weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
|
||||
weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY HH:mm',
|
||||
LLLL : 'dddd D MMMM YYYY HH:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[Oggi alle] LT',
|
||||
nextDay: '[Domani alle] LT',
|
||||
nextWeek: 'dddd [alle] LT',
|
||||
lastDay: '[Ieri alle] LT',
|
||||
lastWeek: function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[la scorsa] dddd [alle] LT';
|
||||
default:
|
||||
return '[lo scorso] dddd [alle] LT';
|
||||
}
|
||||
},
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : function (s) {
|
||||
return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
|
||||
},
|
||||
past : '%s fa',
|
||||
s : 'alcuni secondi',
|
||||
ss : '%d secondi',
|
||||
m : 'un minuto',
|
||||
mm : '%d minuti',
|
||||
h : 'un\'ora',
|
||||
hh : '%d ore',
|
||||
d : 'un giorno',
|
||||
dd : '%d giorni',
|
||||
M : 'un mese',
|
||||
MM : '%d mesi',
|
||||
y : 'un anno',
|
||||
yy : '%d anni'
|
||||
},
|
||||
dayOfMonthOrdinalParse : /\d{1,2}º/,
|
||||
ordinal: '%dº',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return itCh;
|
||||
|
||||
})));
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
|
||||
var ja = moment.defineLocale('ja', {
|
||||
months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
|
||||
monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
|
||||
weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
|
||||
weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
118
vendor/assets/javascripts/moment-locale/ku.js
vendored
Normal file
118
vendor/assets/javascripts/moment-locale/ku.js
vendored
Normal file
|
@ -0,0 +1,118 @@
|
|||
//! moment.js locale configuration
|
||||
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
&& typeof require === 'function' ? factory(require('../moment')) :
|
||||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
var symbolMap = {
|
||||
'1': '١',
|
||||
'2': '٢',
|
||||
'3': '٣',
|
||||
'4': '٤',
|
||||
'5': '٥',
|
||||
'6': '٦',
|
||||
'7': '٧',
|
||||
'8': '٨',
|
||||
'9': '٩',
|
||||
'0': '٠'
|
||||
}, numberMap = {
|
||||
'١': '1',
|
||||
'٢': '2',
|
||||
'٣': '3',
|
||||
'٤': '4',
|
||||
'٥': '5',
|
||||
'٦': '6',
|
||||
'٧': '7',
|
||||
'٨': '8',
|
||||
'٩': '9',
|
||||
'٠': '0'
|
||||
},
|
||||
months = [
|
||||
'کانونی دووەم',
|
||||
'شوبات',
|
||||
'ئازار',
|
||||
'نیسان',
|
||||
'ئایار',
|
||||
'حوزەیران',
|
||||
'تەمموز',
|
||||
'ئاب',
|
||||
'ئەیلوول',
|
||||
'تشرینی یەكەم',
|
||||
'تشرینی دووەم',
|
||||
'كانونی یەکەم'
|
||||
];
|
||||
|
||||
|
||||
var ku = moment.defineLocale('ku', {
|
||||
months : months,
|
||||
monthsShort : months,
|
||||
weekdays : 'یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه'.split('_'),
|
||||
weekdaysShort : 'یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه'.split('_'),
|
||||
weekdaysMin : 'ی_د_س_چ_پ_ه_ش'.split('_'),
|
||||
weekdaysParseExact : true,
|
||||
longDateFormat : {
|
||||
LT : 'HH:mm',
|
||||
LTS : 'HH:mm:ss',
|
||||
L : 'DD/MM/YYYY',
|
||||
LL : 'D MMMM YYYY',
|
||||
LLL : 'D MMMM YYYY HH:mm',
|
||||
LLLL : 'dddd, D MMMM YYYY HH:mm'
|
||||
},
|
||||
meridiemParse: /ئێواره|بهیانی/,
|
||||
isPM: function (input) {
|
||||
return /ئێواره/.test(input);
|
||||
},
|
||||
meridiem : function (hour, minute, isLower) {
|
||||
if (hour < 12) {
|
||||
return 'بهیانی';
|
||||
} else {
|
||||
return 'ئێواره';
|
||||
}
|
||||
},
|
||||
calendar : {
|
||||
sameDay : '[ئهمرۆ كاتژمێر] LT',
|
||||
nextDay : '[بهیانی كاتژمێر] LT',
|
||||
nextWeek : 'dddd [كاتژمێر] LT',
|
||||
lastDay : '[دوێنێ كاتژمێر] LT',
|
||||
lastWeek : 'dddd [كاتژمێر] LT',
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'له %s',
|
||||
past : '%s',
|
||||
s : 'چهند چركهیهك',
|
||||
ss : 'چركه %d',
|
||||
m : 'یهك خولهك',
|
||||
mm : '%d خولهك',
|
||||
h : 'یهك كاتژمێر',
|
||||
hh : '%d كاتژمێر',
|
||||
d : 'یهك ڕۆژ',
|
||||
dd : '%d ڕۆژ',
|
||||
M : 'یهك مانگ',
|
||||
MM : '%d مانگ',
|
||||
y : 'یهك ساڵ',
|
||||
yy : '%d ساڵ'
|
||||
},
|
||||
preparse: function (string) {
|
||||
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
||||
return numberMap[match];
|
||||
}).replace(/،/g, ',');
|
||||
},
|
||||
postformat: function (string) {
|
||||
return string.replace(/\d/g, function (match) {
|
||||
return symbolMap[match];
|
||||
}).replace(/,/g, '،');
|
||||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return ku;
|
||||
|
||||
})));
|
|
@ -49,8 +49,8 @@
|
|||
sameDay : '[Бүгүн саат] LT',
|
||||
nextDay : '[Эртең саат] LT',
|
||||
nextWeek : 'dddd [саат] LT',
|
||||
lastDay : '[Кече саат] LT',
|
||||
lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
|
||||
lastDay : '[Кечээ саат] LT',
|
||||
lastWeek : '[Өткөн аптанын] dddd [күнү] [саат] LT',
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
|
@ -77,7 +77,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
},
|
||||
week: {
|
||||
dow: 1, // Monday is the first day of the week.
|
||||
doy: 4 // The week that contains Jan 1st is the first week of the year.
|
||||
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
|
||||
|
||||
var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
|
||||
var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
|
||||
var monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
|
||||
|
||||
var nlBe = moment.defineLocale('nl-be', {
|
||||
months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
monthsRegex: monthsRegex,
|
||||
monthsShortRegex: monthsRegex,
|
||||
monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
|
||||
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
|
||||
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
|
||||
|
||||
monthsParse : monthsParse,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
|
||||
|
||||
var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
|
||||
var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
|
||||
var monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
|
||||
|
||||
var nl = moment.defineLocale('nl', {
|
||||
months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
monthsRegex: monthsRegex,
|
||||
monthsShortRegex: monthsRegex,
|
||||
monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
|
||||
monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
|
||||
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
|
||||
|
||||
monthsParse : monthsParse,
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
};
|
||||
|
||||
var paIn = moment.defineLocale('pa-in', {
|
||||
// There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
|
||||
// There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
|
||||
months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
|
||||
monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
|
||||
weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
|
||||
|
@ -51,7 +51,7 @@
|
|||
calendar : {
|
||||
sameDay : '[ਅਜ] LT',
|
||||
nextDay : '[ਕਲ] LT',
|
||||
nextWeek : 'dddd, LT',
|
||||
nextWeek : '[ਅਗਲਾ] dddd, LT',
|
||||
lastDay : '[ਕਲ] LT',
|
||||
lastWeek : '[ਪਿਛਲੇ] dddd, LT',
|
||||
sameElse : 'L'
|
||||
|
@ -114,7 +114,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
|
||||
var ptBr = moment.defineLocale('pt-br', {
|
||||
months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
|
||||
monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
||||
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
|
||||
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
|
||||
weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
|
||||
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
||||
weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
|
||||
var pt = moment.defineLocale('pt', {
|
||||
months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
|
||||
monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
|
||||
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
|
||||
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
|
||||
weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
|
||||
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
||||
weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
} else if (number < 5) {
|
||||
result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
|
||||
} else {
|
||||
result += withoutSuffix || isFuture ? 'sekund' : 'sekund';
|
||||
result += 'sekund';
|
||||
}
|
||||
return result;
|
||||
case 'm':
|
||||
|
@ -163,7 +163,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
|
||||
var te = moment.defineLocale('te', {
|
||||
months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
|
||||
monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
|
||||
months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
|
||||
monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
|
||||
monthsParseExact : true,
|
||||
weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
|
||||
weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
|
||||
|
@ -79,7 +79,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 6, // Saturday is the first day of the week.
|
||||
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 12 // The week that contains Jan 12th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@
|
|||
'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
|
||||
};
|
||||
|
||||
if (m === true) {
|
||||
return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
|
||||
}
|
||||
if (!m) {
|
||||
return weekdays['nominative'];
|
||||
}
|
||||
|
@ -141,7 +144,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
},
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 7 // The week that contains Jan 7th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
234
vendor/assets/javascripts/moment.js
vendored
234
vendor/assets/javascripts/moment.js
vendored
|
@ -1142,22 +1142,36 @@
|
|||
function createDate (y, m, d, h, M, s, ms) {
|
||||
// can't just apply() to create a date:
|
||||
// https://stackoverflow.com/q/181348
|
||||
var date = new Date(y, m, d, h, M, s, ms);
|
||||
|
||||
var date;
|
||||
// the date constructor remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
|
||||
date.setFullYear(y);
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
date = new Date(y + 400, m, d, h, M, s, ms);
|
||||
if (isFinite(date.getFullYear())) {
|
||||
date.setFullYear(y);
|
||||
}
|
||||
} else {
|
||||
date = new Date(y, m, d, h, M, s, ms);
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
function createUTCDate (y) {
|
||||
var date = new Date(Date.UTC.apply(null, arguments));
|
||||
|
||||
var date;
|
||||
// the Date.UTC function remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
|
||||
date.setUTCFullYear(y);
|
||||
if (y < 100 && y >= 0) {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
args[0] = y + 400;
|
||||
date = new Date(Date.UTC.apply(null, args));
|
||||
if (isFinite(date.getUTCFullYear())) {
|
||||
date.setUTCFullYear(y);
|
||||
}
|
||||
} else {
|
||||
date = new Date(Date.UTC.apply(null, arguments));
|
||||
}
|
||||
|
||||
return date;
|
||||
}
|
||||
|
||||
|
@ -1259,7 +1273,7 @@
|
|||
|
||||
var defaultLocaleWeek = {
|
||||
dow : 0, // Sunday is the first day of the week.
|
||||
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
||||
doy : 6 // The week that contains Jan 6th is the first week of the year.
|
||||
};
|
||||
|
||||
function localeFirstDayOfWeek () {
|
||||
|
@ -1368,25 +1382,28 @@
|
|||
}
|
||||
|
||||
// LOCALES
|
||||
function shiftWeekdays (ws, n) {
|
||||
return ws.slice(n, 7).concat(ws.slice(0, n));
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
|
||||
function localeWeekdays (m, format) {
|
||||
if (!m) {
|
||||
return isArray(this._weekdays) ? this._weekdays :
|
||||
this._weekdays['standalone'];
|
||||
}
|
||||
return isArray(this._weekdays) ? this._weekdays[m.day()] :
|
||||
this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
|
||||
var weekdays = isArray(this._weekdays) ? this._weekdays :
|
||||
this._weekdays[(m && m !== true && this._weekdays.isFormat.test(format)) ? 'format' : 'standalone'];
|
||||
return (m === true) ? shiftWeekdays(weekdays, this._week.dow)
|
||||
: (m) ? weekdays[m.day()] : weekdays;
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
|
||||
function localeWeekdaysShort (m) {
|
||||
return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
||||
return (m === true) ? shiftWeekdays(this._weekdaysShort, this._week.dow)
|
||||
: (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
|
||||
function localeWeekdaysMin (m) {
|
||||
return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
||||
return (m === true) ? shiftWeekdays(this._weekdaysMin, this._week.dow)
|
||||
: (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
||||
}
|
||||
|
||||
function handleStrictParse$1(weekdayName, format, strict) {
|
||||
|
@ -1472,9 +1489,9 @@
|
|||
|
||||
mom = createUTC([2000, 1]).day(i);
|
||||
if (strict && !this._fullWeekdaysParse[i]) {
|
||||
this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
|
||||
this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
|
||||
this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
|
||||
this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
|
||||
this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
|
||||
this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
|
||||
}
|
||||
if (!this._weekdaysParse[i]) {
|
||||
regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
|
||||
|
@ -2135,13 +2152,13 @@
|
|||
weekdayOverflow = true;
|
||||
}
|
||||
} else if (w.e != null) {
|
||||
// local weekday -- counting starts from begining of week
|
||||
// local weekday -- counting starts from beginning of week
|
||||
weekday = w.e + dow;
|
||||
if (w.e < 0 || w.e > 6) {
|
||||
weekdayOverflow = true;
|
||||
}
|
||||
} else {
|
||||
// default to begining of week
|
||||
// default to beginning of week
|
||||
weekday = dow;
|
||||
}
|
||||
}
|
||||
|
@ -2277,7 +2294,7 @@
|
|||
|
||||
function preprocessRFC2822(s) {
|
||||
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
||||
return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
|
||||
return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
|
||||
}
|
||||
|
||||
function checkWeekday(weekdayStr, parsedInput, config) {
|
||||
|
@ -2735,7 +2752,7 @@
|
|||
years = normalizedInput.year || 0,
|
||||
quarters = normalizedInput.quarter || 0,
|
||||
months = normalizedInput.month || 0,
|
||||
weeks = normalizedInput.week || 0,
|
||||
weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
|
||||
days = normalizedInput.day || 0,
|
||||
hours = normalizedInput.hour || 0,
|
||||
minutes = normalizedInput.minute || 0,
|
||||
|
@ -3039,7 +3056,7 @@
|
|||
ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
|
||||
};
|
||||
} else if (!!(match = isoRegex.exec(input))) {
|
||||
sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
|
||||
sign = (match[1] === '-') ? -1 : 1;
|
||||
duration = {
|
||||
y : parseIso(match[2], sign),
|
||||
M : parseIso(match[3], sign),
|
||||
|
@ -3081,7 +3098,7 @@
|
|||
}
|
||||
|
||||
function positiveMomentsDifference(base, other) {
|
||||
var res = {milliseconds: 0, months: 0};
|
||||
var res = {};
|
||||
|
||||
res.months = other.month() - base.month() +
|
||||
(other.year() - base.year()) * 12;
|
||||
|
@ -3190,7 +3207,7 @@
|
|||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() > localInput.valueOf();
|
||||
} else {
|
||||
|
@ -3203,7 +3220,7 @@
|
|||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() < localInput.valueOf();
|
||||
} else {
|
||||
|
@ -3212,9 +3229,14 @@
|
|||
}
|
||||
|
||||
function isBetween (from, to, units, inclusivity) {
|
||||
var localFrom = isMoment(from) ? from : createLocal(from),
|
||||
localTo = isMoment(to) ? to : createLocal(to);
|
||||
if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
|
||||
return false;
|
||||
}
|
||||
inclusivity = inclusivity || '()';
|
||||
return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
|
||||
(inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
|
||||
return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) &&
|
||||
(inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
|
||||
}
|
||||
|
||||
function isSame (input, units) {
|
||||
|
@ -3223,7 +3245,7 @@
|
|||
if (!(this.isValid() && localInput.isValid())) {
|
||||
return false;
|
||||
}
|
||||
units = normalizeUnits(units || 'millisecond');
|
||||
units = normalizeUnits(units) || 'millisecond';
|
||||
if (units === 'millisecond') {
|
||||
return this.valueOf() === localInput.valueOf();
|
||||
} else {
|
||||
|
@ -3233,11 +3255,11 @@
|
|||
}
|
||||
|
||||
function isSameOrAfter (input, units) {
|
||||
return this.isSame(input, units) || this.isAfter(input,units);
|
||||
return this.isSame(input, units) || this.isAfter(input, units);
|
||||
}
|
||||
|
||||
function isSameOrBefore (input, units) {
|
||||
return this.isSame(input, units) || this.isBefore(input,units);
|
||||
return this.isSame(input, units) || this.isBefore(input, units);
|
||||
}
|
||||
|
||||
function diff (input, units, asFloat) {
|
||||
|
@ -3414,62 +3436,130 @@
|
|||
return this._locale;
|
||||
}
|
||||
|
||||
var MS_PER_SECOND = 1000;
|
||||
var MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
||||
var MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
||||
var MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
||||
|
||||
// actual modulo - handles negative numbers (for dates before 1970):
|
||||
function mod$1(dividend, divisor) {
|
||||
return (dividend % divisor + divisor) % divisor;
|
||||
}
|
||||
|
||||
function localStartOfDate(y, m, d) {
|
||||
// the date constructor remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
return new Date(y + 400, m, d) - MS_PER_400_YEARS;
|
||||
} else {
|
||||
return new Date(y, m, d).valueOf();
|
||||
}
|
||||
}
|
||||
|
||||
function utcStartOfDate(y, m, d) {
|
||||
// Date.UTC remaps years 0-99 to 1900-1999
|
||||
if (y < 100 && y >= 0) {
|
||||
// preserve leap years using a full 400 year cycle, then reset
|
||||
return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
|
||||
} else {
|
||||
return Date.UTC(y, m, d);
|
||||
}
|
||||
}
|
||||
|
||||
function startOf (units) {
|
||||
var time;
|
||||
units = normalizeUnits(units);
|
||||
// the following switch intentionally omits break keywords
|
||||
// to utilize falling through the cases.
|
||||
if (units === undefined || units === 'millisecond' || !this.isValid()) {
|
||||
return this;
|
||||
}
|
||||
|
||||
var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
||||
|
||||
switch (units) {
|
||||
case 'year':
|
||||
this.month(0);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), 0, 1);
|
||||
break;
|
||||
case 'quarter':
|
||||
time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
|
||||
break;
|
||||
case 'month':
|
||||
this.date(1);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), this.month(), 1);
|
||||
break;
|
||||
case 'week':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
|
||||
break;
|
||||
case 'isoWeek':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
|
||||
break;
|
||||
case 'day':
|
||||
case 'date':
|
||||
this.hours(0);
|
||||
/* falls through */
|
||||
time = startOfDate(this.year(), this.month(), this.date());
|
||||
break;
|
||||
case 'hour':
|
||||
this.minutes(0);
|
||||
/* falls through */
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
|
||||
break;
|
||||
case 'minute':
|
||||
this.seconds(0);
|
||||
/* falls through */
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time, MS_PER_MINUTE);
|
||||
break;
|
||||
case 'second':
|
||||
this.milliseconds(0);
|
||||
}
|
||||
|
||||
// weeks are a special case
|
||||
if (units === 'week') {
|
||||
this.weekday(0);
|
||||
}
|
||||
if (units === 'isoWeek') {
|
||||
this.isoWeekday(1);
|
||||
}
|
||||
|
||||
// quarters are also special
|
||||
if (units === 'quarter') {
|
||||
this.month(Math.floor(this.month() / 3) * 3);
|
||||
time = this._d.valueOf();
|
||||
time -= mod$1(time, MS_PER_SECOND);
|
||||
break;
|
||||
}
|
||||
|
||||
this._d.setTime(time);
|
||||
hooks.updateOffset(this, true);
|
||||
return this;
|
||||
}
|
||||
|
||||
function endOf (units) {
|
||||
var time;
|
||||
units = normalizeUnits(units);
|
||||
if (units === undefined || units === 'millisecond') {
|
||||
if (units === undefined || units === 'millisecond' || !this.isValid()) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// 'date' is an alias for 'day', so it should be considered as such.
|
||||
if (units === 'date') {
|
||||
units = 'day';
|
||||
var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
||||
|
||||
switch (units) {
|
||||
case 'year':
|
||||
time = startOfDate(this.year() + 1, 0, 1) - 1;
|
||||
break;
|
||||
case 'quarter':
|
||||
time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
|
||||
break;
|
||||
case 'month':
|
||||
time = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
||||
break;
|
||||
case 'week':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
|
||||
break;
|
||||
case 'isoWeek':
|
||||
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
|
||||
break;
|
||||
case 'day':
|
||||
case 'date':
|
||||
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
||||
break;
|
||||
case 'hour':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
|
||||
break;
|
||||
case 'minute':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
|
||||
break;
|
||||
case 'second':
|
||||
time = this._d.valueOf();
|
||||
time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
|
||||
break;
|
||||
}
|
||||
|
||||
return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
|
||||
this._d.setTime(time);
|
||||
hooks.updateOffset(this, true);
|
||||
return this;
|
||||
}
|
||||
|
||||
function valueOf () {
|
||||
|
@ -4175,10 +4265,14 @@
|
|||
|
||||
units = normalizeUnits(units);
|
||||
|
||||
if (units === 'month' || units === 'year') {
|
||||
days = this._days + milliseconds / 864e5;
|
||||
if (units === 'month' || units === 'quarter' || units === 'year') {
|
||||
days = this._days + milliseconds / 864e5;
|
||||
months = this._months + daysToMonths(days);
|
||||
return units === 'month' ? months : months / 12;
|
||||
switch (units) {
|
||||
case 'month': return months;
|
||||
case 'quarter': return months / 3;
|
||||
case 'year': return months / 12;
|
||||
}
|
||||
} else {
|
||||
// handle milliseconds separately because of floating point math errors (issue #1867)
|
||||
days = this._days + Math.round(monthsToDays(this._months));
|
||||
|
@ -4221,6 +4315,7 @@
|
|||
var asDays = makeAs('d');
|
||||
var asWeeks = makeAs('w');
|
||||
var asMonths = makeAs('M');
|
||||
var asQuarters = makeAs('Q');
|
||||
var asYears = makeAs('y');
|
||||
|
||||
function clone$1 () {
|
||||
|
@ -4412,6 +4507,7 @@
|
|||
proto$2.asDays = asDays;
|
||||
proto$2.asWeeks = asWeeks;
|
||||
proto$2.asMonths = asMonths;
|
||||
proto$2.asQuarters = asQuarters;
|
||||
proto$2.asYears = asYears;
|
||||
proto$2.valueOf = valueOf$1;
|
||||
proto$2._bubble = bubble;
|
||||
|
@ -4456,7 +4552,7 @@
|
|||
// Side effect imports
|
||||
|
||||
|
||||
hooks.version = '2.22.1';
|
||||
hooks.version = '2.24.0';
|
||||
|
||||
setHookCallback(createLocal);
|
||||
|
||||
|
@ -4497,7 +4593,7 @@
|
|||
TIME: 'HH:mm', // <input type="time" />
|
||||
TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
|
||||
TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
|
||||
WEEK: 'YYYY-[W]WW', // <input type="week" />
|
||||
WEEK: 'GGGG-[W]WW', // <input type="week" />
|
||||
MONTH: 'YYYY-MM' // <input type="month" />
|
||||
};
|
||||
|
||||
|
|
21
yarn.lock
21
yarn.lock
|
@ -1616,28 +1616,23 @@ mkdirp@0.5.1, mkdirp@^0.5.1:
|
|||
version "0.0.0"
|
||||
resolved "https://github.com/discourse/moment-timezone-names-translations#5f576fc6355d8e636783bfb7b0214a5d74a5399d"
|
||||
|
||||
moment-timezone@0.5.14:
|
||||
version "0.5.14"
|
||||
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.14.tgz#4eb38ff9538b80108ba467a458f3ed4268ccfcb1"
|
||||
integrity sha1-TrOP+VOLgBCLpGekWPPtQmjM/LE=
|
||||
moment-timezone@0.5.25:
|
||||
version "0.5.25"
|
||||
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.25.tgz#a11bfa2f74e088327f2cd4c08b3e7bdf55957810"
|
||||
integrity sha512-DgEaTyN/z0HFaVcVbSyVCUU6HeFdnNC3vE4c9cgu2dgMTvjBUBdBzWfasTBmAW45u5OIMeCJtU8yNjM22DHucw==
|
||||
dependencies:
|
||||
moment ">= 2.9.0"
|
||||
|
||||
moment@2.22.1:
|
||||
version "2.22.1"
|
||||
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.1.tgz#529a2e9bf973f259c9643d237fda84de3a26e8ad"
|
||||
integrity sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==
|
||||
moment@2.24.0, "moment@>= 2.9.0":
|
||||
version "2.24.0"
|
||||
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
|
||||
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
|
||||
|
||||
moment@2.x, moment@^2.10.2:
|
||||
version "2.22.2"
|
||||
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
|
||||
integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=
|
||||
|
||||
"moment@>= 2.9.0":
|
||||
version "2.24.0"
|
||||
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
|
||||
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
|
||||
|
||||
"mousetrap@https://github.com/discourse/mousetrap#firefox-alt-key":
|
||||
version "1.6.3"
|
||||
resolved "https://github.com/discourse/mousetrap#0d41aa7b173abfb83a6bec3ad39a6a708bc49108"
|
||||
|
|
Loading…
Reference in New Issue
Block a user