Skip to content

Commit abc3a14

Browse files
committed
Bump version to 2.5.1
1 parent b92af0d commit abc3a14

10 files changed

+352
-73
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moment",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"main": "moment.js",
55
"ignore": [
66
"**/.*",

component.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moment",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"main": "moment.js",
55
"description": "Parse, validate, manipulate, and display dates in javascript.",
66
"files": [
@@ -34,6 +34,7 @@
3434
"lang/hi.js",
3535
"lang/hr.js",
3636
"lang/hu.js",
37+
"lang/hy-am.js",
3738
"lang/id.js",
3839
"lang/is.js",
3940
"lang/it.js",

min/langs.js

+119-5
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,10 @@
461461
}
462462
}(function (moment) {
463463
return moment.lang('ca', {
464-
months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),
465-
monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"),
466-
weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),
467-
weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),
464+
months : "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),
465+
monthsShort : "gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),
466+
weekdays : "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),
467+
weekdaysShort : "dg._dl._dt._dc._dj._dv._ds.".split("_"),
468468
weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
469469
longDateFormat : {
470470
LT : "H:mm",
@@ -767,7 +767,7 @@
767767
},
768768
relativeTime: {
769769
future: "mewn %s",
770-
past: "%s yn ôl",
770+
past: "%s yn àl",
771771
s: "ychydig eiliadau",
772772
m: "munud",
773773
mm: "%d munud",
@@ -2344,6 +2344,120 @@
23442344
});
23452345
}));
23462346

2347+
// moment.js language configuration
2348+
// language : Armenian (hy-am)
2349+
// author : Armendarabyan : https://github.com/armendarabyan
2350+
2351+
(function (factory) {
2352+
if (typeof define === 'function' && define.amd) {
2353+
define(['moment'], factory); // AMD
2354+
} else if (typeof exports === 'object') {
2355+
module.exports = factory(require('../moment')); // Node
2356+
} else {
2357+
factory(window.moment); // Browser global
2358+
}
2359+
}(function (moment) {
2360+
2361+
function monthsCaseReplace(m, format) {
2362+
var months = {
2363+
'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
2364+
'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
2365+
},
2366+
2367+
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
2368+
'accusative' :
2369+
'nominative';
2370+
2371+
return months[nounCase][m.month()];
2372+
}
2373+
2374+
function monthsShortCaseReplace(m, format) {
2375+
var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
2376+
2377+
return monthsShort[m.month()];
2378+
}
2379+
2380+
function weekdaysCaseReplace(m, format) {
2381+
var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
2382+
2383+
return weekdays[m.day()];
2384+
}
2385+
2386+
return moment.lang('hy-am', {
2387+
months : monthsCaseReplace,
2388+
monthsShort : monthsShortCaseReplace,
2389+
weekdays : weekdaysCaseReplace,
2390+
weekdaysShort : "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
2391+
weekdaysMin : "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
2392+
longDateFormat : {
2393+
LT : "HH:mm",
2394+
L : "DD.MM.YYYY",
2395+
LL : "D MMMM YYYY թ.",
2396+
LLL : "D MMMM YYYY թ., LT",
2397+
LLLL : "dddd, D MMMM YYYY թ., LT"
2398+
},
2399+
calendar : {
2400+
sameDay: '[այսօր] LT',
2401+
nextDay: '[վաղը] LT',
2402+
lastDay: '[երեկ] LT',
2403+
nextWeek: function () {
2404+
return 'dddd [օրը ժամը] LT';
2405+
},
2406+
lastWeek: function () {
2407+
return '[անցած] dddd [օրը ժամը] LT';
2408+
},
2409+
sameElse: 'L'
2410+
},
2411+
relativeTime : {
2412+
future : "%s հետո",
2413+
past : "%s առաջ",
2414+
s : "մի քանի վայրկյան",
2415+
m : "րոպե",
2416+
mm : "%d րոպե",
2417+
h : "ժամ",
2418+
hh : "%d ժամ",
2419+
d : "օր",
2420+
dd : "%d օր",
2421+
M : "ամիս",
2422+
MM : "%d ամիս",
2423+
y : "տարի",
2424+
yy : "%d տարի"
2425+
},
2426+
2427+
meridiem : function (hour) {
2428+
if (hour < 4) {
2429+
return "գիշերվա";
2430+
} else if (hour < 12) {
2431+
return "առավոտվա";
2432+
} else if (hour < 17) {
2433+
return "ցերեկվա";
2434+
} else {
2435+
return "երեկոյան";
2436+
}
2437+
},
2438+
2439+
ordinal: function (number, period) {
2440+
switch (period) {
2441+
case 'DDD':
2442+
case 'w':
2443+
case 'W':
2444+
case 'DDDo':
2445+
if (number === 1) {
2446+
return number + '-ին';
2447+
}
2448+
return number + '-րդ';
2449+
default:
2450+
return number;
2451+
}
2452+
},
2453+
2454+
week : {
2455+
dow : 1, // Monday is the first day of the week.
2456+
doy : 7 // The week that contains Jan 1st is the first week of the year.
2457+
}
2458+
});
2459+
}));
2460+
23472461
// moment.js language configuration
23482462
// language : Bahasa Indonesia (id)
23492463
// author : Mohammad Satrio Utomo : https://github.com/tyok

min/langs.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)