Skip to content

Commit 15b45d4

Browse files
[pkg] Build 2.31.0 (#6452)
Build 2.31.0
1 parent 631cd81 commit 15b45d4

50 files changed

Lines changed: 6468 additions & 3790 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎component.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "moment",
3-
"version": "2.30.1",
3+
"version": "2.31.0",
44
"main": "moment.js",
55
"description": "Parse, validate, manipulate, and display dates in JavaScript.",
66
"files": [
77
"moment.js",
88
"locale/af.js",
9+
"locale/am-et.js",
910
"locale/ar-dz.js",
1011
"locale/ar-kw.js",
1112
"locale/ar-ly.js",
@@ -103,6 +104,7 @@
103104
"locale/oc-lnc.js",
104105
"locale/pa-in.js",
105106
"locale/pl.js",
107+
"locale/ps.js",
106108
"locale/pt-br.js",
107109
"locale/pt.js",
108110
"locale/ro.js",

‎dist/locale/am-et.js‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//! moment.js locale configuration
2+
//! locale : Amharic (Ethiopia) [am-et]
3+
//! author : Tekle Ayele : https://github.com/tekleayele
4+
5+
import moment from '../moment';
6+
7+
export default moment.defineLocale('am-et', {
8+
months: 'ጃንዩወሪ_ፌብሩወሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split(
9+
'_'
10+
),
11+
monthsShort: 'ጃን_ፌብ_ማር_ኤፕር_ሜይ_ጁን_ጁላይ_ኦገ_ሴፕ_ኦክቶ_ኖቬ_ዲሴ'.split('_'),
12+
weekdays: 'እሑድ_ሰኞ_ማክሰኞ_እሮብ_ሀሙስ_ዓርብ_ቅዳሜ'.split('_'),
13+
weekdaysShort: 'እሑ_ሰኞ_ማክ_እሮ_ሀሙ_ዓር_ቅዳ'.split('_'),
14+
weekdaysMin: 'እሁ_ሰ_ማ_እ_ሀ_ዓ_ቅ'.split('_'),
15+
meridiemParse: /ጥዋት|ከሰዓት/,
16+
isPM: function (input) {
17+
return input === 'ከሰዓት';
18+
},
19+
meridiem: function (hours) {
20+
return hours < 12 ? 'ጥዋት' : 'ከሰዓት';
21+
},
22+
longDateFormat: {
23+
LT: 'h:mm A',
24+
LTS: 'h:mm:ss A',
25+
L: 'DD/MM/YYYY',
26+
LL: 'D MMMM YYYY',
27+
LLL: 'D MMMM YYYY h:mm A',
28+
LLLL: 'dddd, D MMMM YYYY h:mm A',
29+
},
30+
calendar: {
31+
sameDay: '[ዛሬ በ] LT',
32+
nextDay: '[ነገ በ] LT',
33+
nextWeek: 'dddd [በ] LT',
34+
lastDay: '[ትናንትና በ] LT',
35+
lastWeek: '[ያለፈው ሳምንት] dddd [በ] LT',
36+
sameElse: 'L',
37+
},
38+
relativeTime: {
39+
future: '%s ውስጥ',
40+
past: '%s በፊት',
41+
s: 'ጥቂት ሰከንዶች',
42+
ss: '%d ሰከንዶች',
43+
m: 'አንድ ደቂቃ',
44+
mm: '%d ደቂቃዎች',
45+
h: 'አንድ ሰአት',
46+
hh: '%d ሰአታት',
47+
d: 'አንድ ቀን',
48+
dd: '%d ቀናት',
49+
M: 'አንድ ወር',
50+
MM: '%d ወራት',
51+
y: 'አንድ ዓመት',
52+
yy: '%d ዓመታት',
53+
},
54+
dayOfMonthOrdinalParse: /\d{1,2}(ኛ)/,
55+
ordinal: function (number) {
56+
return number + 'ኛ';
57+
},
58+
week: {
59+
dow: 0, // Sunday is the first day of the week.
60+
doy: 6, // The week that contains Jan 1st is the first week of the year.
61+
},
62+
});

‎dist/locale/ca.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default moment.defineLocale('ca', {
1010
'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
1111
'_'
1212
),
13-
format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
13+
format: 'de gener_de febrer_de març_d’abril_de maig_de juny_de juliol_d’agost_de setembre_d’octubre_de novembre_de desembre'.split(
1414
'_'
1515
),
1616
isFormat: /D[oD]?(\s)+MMMM/,

‎dist/locale/de-at.js‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@
77

88
import moment from '../moment';
99

10+
var monthsParse = [
11+
/^jän/i,
12+
/^feb/i,
13+
/^mär/i,
14+
/^apr/i,
15+
/^mai/i,
16+
/^jun/i,
17+
/^jul/i,
18+
/^aug/i,
19+
/^sep/i,
20+
/^okt/i,
21+
/^nov/i,
22+
/^dez/i,
23+
],
24+
monthsRegex =
25+
/^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jän\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
26+
1027
function processRelativeTime(number, withoutSuffix, key, isFuture) {
1128
var format = {
1229
m: ['eine Minute', 'einer Minute'],
@@ -28,7 +45,18 @@ export default moment.defineLocale('de-at', {
2845
),
2946
monthsShort:
3047
'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
31-
monthsParseExact: true,
48+
49+
monthsRegex: monthsRegex,
50+
monthsShortRegex: monthsRegex,
51+
monthsStrictRegex:
52+
/^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
53+
monthsShortStrictRegex:
54+
/^(Jän\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
55+
56+
monthsParse: monthsParse,
57+
longMonthsParse: monthsParse,
58+
shortMonthsParse: monthsParse,
59+
3260
weekdays:
3361
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
3462
'_'

‎dist/locale/de-ch.js‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66

77
import moment from '../moment';
88

9+
var monthsParse = [
10+
/^jan/i,
11+
/^feb/i,
12+
/^mär/i,
13+
/^apr/i,
14+
/^mai/i,
15+
/^jun/i,
16+
/^jul/i,
17+
/^aug/i,
18+
/^sep/i,
19+
/^okt/i,
20+
/^nov/i,
21+
/^dez/i,
22+
],
23+
monthsRegex =
24+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
25+
926
function processRelativeTime(number, withoutSuffix, key, isFuture) {
1027
var format = {
1128
m: ['eine Minute', 'einer Minute'],
@@ -27,7 +44,18 @@ export default moment.defineLocale('de-ch', {
2744
),
2845
monthsShort:
2946
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
30-
monthsParseExact: true,
47+
48+
monthsRegex: monthsRegex,
49+
monthsShortRegex: monthsRegex,
50+
monthsStrictRegex:
51+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
52+
monthsShortStrictRegex:
53+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
54+
55+
monthsParse: monthsParse,
56+
longMonthsParse: monthsParse,
57+
shortMonthsParse: monthsParse,
58+
3159
weekdays:
3260
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
3361
'_'

‎dist/locale/de.js‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@
66

77
import moment from '../moment';
88

9+
var monthsParse = [
10+
/^jan/i,
11+
/^feb/i,
12+
/^mär/i,
13+
/^apr/i,
14+
/^mai/i,
15+
/^jun/i,
16+
/^jul/i,
17+
/^aug/i,
18+
/^sep/i,
19+
/^okt/i,
20+
/^nov/i,
21+
/^dez/i,
22+
],
23+
monthsRegex =
24+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
25+
926
function processRelativeTime(number, withoutSuffix, key, isFuture) {
1027
var format = {
1128
m: ['eine Minute', 'einer Minute'],
@@ -27,7 +44,18 @@ export default moment.defineLocale('de', {
2744
),
2845
monthsShort:
2946
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
30-
monthsParseExact: true,
47+
48+
monthsRegex: monthsRegex,
49+
monthsShortRegex: monthsRegex,
50+
monthsStrictRegex:
51+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
52+
monthsShortStrictRegex:
53+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
54+
55+
monthsParse: monthsParse,
56+
longMonthsParse: monthsParse,
57+
shortMonthsParse: monthsParse,
58+
3159
weekdays:
3260
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
3361
'_'

‎dist/locale/hu.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function translate(number, withoutSuffix, key, isFuture) {
1515
? 'néhány másodperc'
1616
: 'néhány másodperce';
1717
case 'ss':
18-
return num + (isFuture || withoutSuffix)
19-
? ' másodperc'
20-
: ' másodperce';
18+
return (
19+
num + (isFuture || withoutSuffix ? ' másodperc' : ' másodperce')
20+
);
2121
case 'm':
2222
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
2323
case 'mm':

‎dist/locale/id.js‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@
55

66
import moment from '../moment';
77

8+
var monthsParse = [],
9+
longMonthsParse = [],
10+
shortMonthsParse = [];
11+
12+
monthsParse[7] = /^agustus|^agu|^agt/i;
13+
longMonthsParse[7] = /^agustus$/i;
14+
shortMonthsParse[7] = /^agu$|^agt$/i;
15+
816
export default moment.defineLocale('id', {
917
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
1018
'_'
1119
),
12-
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
20+
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agu_Sep_Okt_Nov_Des'.split('_'),
21+
monthsParse: monthsParse,
22+
longMonthsParse: longMonthsParse,
23+
shortMonthsParse: shortMonthsParse,
1324
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
1425
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
1526
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),

‎dist/locale/ka.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default moment.defineLocale('ka', {
2424
longDateFormat: {
2525
LT: 'HH:mm',
2626
LTS: 'HH:mm:ss',
27-
L: 'DD/MM/YYYY',
27+
L: 'DD.MM.YYYY',
2828
LL: 'D MMMM YYYY',
2929
LLL: 'D MMMM YYYY HH:mm',
3030
LLLL: 'dddd, D MMMM YYYY HH:mm',

‎dist/locale/nl-be.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default moment.defineLocale('nl-be', {
5959
longDateFormat: {
6060
LT: 'HH:mm',
6161
LTS: 'HH:mm:ss',
62-
L: 'DD/MM/YYYY',
62+
L: 'D/MM/YYYY',
6363
LL: 'D MMMM YYYY',
6464
LLL: 'D MMMM YYYY HH:mm',
6565
LLLL: 'dddd D MMMM YYYY HH:mm',

0 commit comments

Comments
 (0)