Skip to content

Commit

Permalink
Build 2.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 26, 2023
1 parent be64d00 commit ddd6809
Show file tree
Hide file tree
Showing 76 changed files with 13,009 additions and 10,103 deletions.
2 changes: 2 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"locale/ar-kw.js",
"locale/ar-ly.js",
"locale/ar-ma.js",
"locale/ar-ps.js",
"locale/ar-sa.js",
"locale/ar-tn.js",
"locale/ar.js",
Expand Down Expand Up @@ -77,6 +78,7 @@
"locale/km.js",
"locale/kn.js",
"locale/ko.js",
"locale/ku-kmr.js",
"locale/ku.js",
"locale/ky.js",
"locale/lb.js",
Expand Down
16 changes: 8 additions & 8 deletions dist/locale/ar-dz.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ var pluralForm = function (n) {
return n === 0
? 0
: n === 1
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
},
plurals = {
s: [
Expand Down
16 changes: 8 additions & 8 deletions dist/locale/ar-ly.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ var symbolMap = {
return n === 0
? 0
: n === 1
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
},
plurals = {
s: [
Expand Down
112 changes: 112 additions & 0 deletions dist/locale/ar-ps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
//! moment.js locale configuration
//! locale : Arabic (Palestine) [ar-ps]
//! author : Majd Al-Shihabi : https://github.com/majdal

import moment from '../moment';

var symbolMap = {
1: '١',
2: '٢',
3: '٣',
4: '٤',
5: '٥',
6: '٦',
7: '٧',
8: '٨',
9: '٩',
0: '٠',
},
numberMap = {
'١': '1',
'٢': '2',
'٣': '3',
'٤': '4',
'٥': '5',
'٦': '6',
'٧': '7',
'٨': '8',
'٩': '9',
'٠': '0',
};

export default moment.defineLocale('ar-ps', {
months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split(
'_'
),
monthsShort:
'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'),
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 'م' === 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];
})
.split('') // reversed since negative lookbehind not supported everywhere
.reverse()
.join('')
.replace(/[١٢](?![\u062a\u0643])/g, function (match) {
return numberMap[match];
})
.split('')
.reverse()
.join('')
.replace(/،/g, ',');
},
postformat: function (string) {
return string
.replace(/\d/g, function (match) {
return symbolMap[match];
})
.replace(/,/g, '،');
},
week: {
dow: 0, // Sunday is the first day of the week.
doy: 6, // The week that contains Jan 6th is the first week of the year.
},
});
16 changes: 8 additions & 8 deletions dist/locale/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ var symbolMap = {
return n === 0
? 0
: n === 1
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
? 1
: n === 2
? 2
: n % 100 >= 3 && n % 100 <= 10
? 3
: n % 100 >= 11
? 4
: 5;
},
plurals = {
s: [
Expand Down
4 changes: 2 additions & 2 deletions dist/locale/be.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function plural(word, num) {
return num % 10 === 1 && num % 100 !== 11
? forms[0]
: num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
? forms[1]
: forms[2];
? forms[1]
: forms[2];
}
function relativeTimeWithPlural(number, withoutSuffix, key) {
var format = {
Expand Down
18 changes: 14 additions & 4 deletions dist/locale/bs.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
//! moment.js locale configuration
//! locale : Bosnian [bs]
//! author : Nedim Cholich : https://github.com/frontyard
//! author : Rasid Redzic : https://github.com/rasidre
//! based on (hr) translation by Bojan Marković

import moment from '../moment';

function processRelativeTime(number, withoutSuffix, key, isFuture) {
switch (key) {
case 'm':
return withoutSuffix
? 'jedna minuta'
: isFuture
? 'jednu minutu'
: 'jedne minute';
}
}

function translate(number, withoutSuffix, key) {
var result = number + ' ';
switch (key) {
Expand All @@ -17,8 +29,6 @@ function translate(number, withoutSuffix, key) {
result += 'sekundi';
}
return result;
case 'm':
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
case 'mm':
if (number === 1) {
result += 'minuta';
Expand All @@ -29,7 +39,7 @@ function translate(number, withoutSuffix, key) {
}
return result;
case 'h':
return withoutSuffix ? 'jedan sat' : 'jednog sata';
return withoutSuffix ? 'jedan sat' : 'jedan sat';
case 'hh':
if (number === 1) {
result += 'sat';
Expand Down Expand Up @@ -130,7 +140,7 @@ export default moment.defineLocale('bs', {
past: 'prije %s',
s: 'par sekundi',
ss: translate,
m: translate,
m: processRelativeTime,
mm: translate,
h: translate,
hh: translate,
Expand Down
12 changes: 6 additions & 6 deletions dist/locale/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ export default moment.defineLocale('ca', {
number === 1
? 'r'
: number === 2
? 'n'
: number === 3
? 'r'
: number === 4
? 't'
: 'è';
? 'n'
: number === 3
? 'r'
: number === 4
? 't'
: 'è';
if (period === 'w' || period === 'W') {
output = 'a';
}
Expand Down
9 changes: 5 additions & 4 deletions dist/locale/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
import moment from '../moment';

var months = {
format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
'_'
),
standalone:
'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
'_'
),
format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
'_'
),
isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/,
},
monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
monthsParse = [
Expand Down
4 changes: 2 additions & 2 deletions dist/locale/cv.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default moment.defineLocale('cv', {
var affix = /сехет$/i.exec(output)
? 'рен'
: /ҫул$/i.exec(output)
? 'тан'
: 'ран';
? 'тан'
: 'ран';
return output + affix;
},
past: '%s каялла',
Expand Down
12 changes: 6 additions & 6 deletions dist/locale/en-au.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default moment.defineLocale('en-au', {
~~((number % 100) / 10) === 1
? 'th'
: b === 1
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
return number + output;
},
week: {
Expand Down
12 changes: 6 additions & 6 deletions dist/locale/en-ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default moment.defineLocale('en-ca', {
~~((number % 100) / 10) === 1
? 'th'
: b === 1
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
return number + output;
},
});
12 changes: 6 additions & 6 deletions dist/locale/en-gb.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default moment.defineLocale('en-gb', {
~~((number % 100) / 10) === 1
? 'th'
: b === 1
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
return number + output;
},
week: {
Expand Down
12 changes: 6 additions & 6 deletions dist/locale/en-ie.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export default moment.defineLocale('en-ie', {
~~((number % 100) / 10) === 1
? 'th'
: b === 1
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
? 'st'
: b === 2
? 'nd'
: b === 3
? 'rd'
: 'th';
return number + output;
},
week: {
Expand Down
Loading

0 comments on commit ddd6809

Please sign in to comment.