Skip to content

Commit

Permalink
Build 2.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
horacio committed Dec 12, 2024
1 parent ab7b6b2 commit 0236213
Show file tree
Hide file tree
Showing 14 changed files with 1,343 additions and 54 deletions.
2 changes: 1 addition & 1 deletion Moment.js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Moment.js</id>
<version>2.30.1</version>
<version>2.31.0</version>
<authors>Tim Wood, Iskren Chernev, Moment.js contributors</authors>
<owners>Cory Deppen, Iskren Chernev</owners>
<description>A lightweight JavaScript date library for parsing, manipulating, and formatting dates.</description>
Expand Down
3 changes: 2 additions & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moment",
"version": "2.30.1",
"version": "2.31.0",
"main": "moment.js",
"description": "Parse, validate, manipulate, and display dates in JavaScript.",
"files": [
Expand Down Expand Up @@ -65,6 +65,7 @@
"locale/he.js",
"locale/hi.js",
"locale/hr.js",
"locale/ht-ht.js",
"locale/hu.js",
"locale/hy-am.js",
"locale/id.js",
Expand Down
99 changes: 99 additions & 0 deletions dist/locale/ht-ht.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
//! moment.js locale configuration
//! locale : Haitian Creole [ht-ht]
//! author : Horacio Bertorello

import moment from '../moment';

var monthsStrictRegex =
/^(janvye|fevriye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i,
monthsShortStrictRegex =
/(janv\.?|fevr\.?|mas|avr\.?|me|jen|jiyè\.?|out|sept\.?|okt\.?|nov\.?|des\.?)/i,
monthsRegex =
/(janv\.?|fevr\.?|mas|avr\.?|me|jen|jiyè\.?|out|sept\.?|okt\.?|nov\.?|des\.?|janvye|fevriye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i,
monthsParse = [
/^janv/i,
/^fevr/i,
/^mas/i,
/^avr/i,
/^me/i,
/^jen/i,
/^jiyè/i,
/^out/i,
/^sept/i,
/^okt/i,
/^nov/i,
/^des/i,
];

export default moment.defineLocale('ht', {
months: 'janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm'.split(
'_'
),
monthsShort:
'janv._fevr._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.'.split('_'),
monthsRegex: monthsRegex,
monthsShortRegex: monthsRegex,
monthsStrictRegex: monthsStrictRegex,
monthsShortStrictRegex: monthsShortStrictRegex,
monthsParse: monthsParse,
longMonthsParse: monthsParse,
shortMonthsParse: monthsParse,
weekdays: 'dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi'.split('_'),
weekdaysShort: 'dim._len._mad._mèk._jed._ven._sam.'.split('_'),
weekdaysMin: 'di_le_ma_me_je_ve_sa'.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',
},
calendar: {
sameDay: '[Jodi a nan] LT',
nextDay: '[Demain nan] LT',
nextWeek: 'dddd [nan] LT',
lastDay: '[Ye nan] LT',
lastWeek: 'dddd [dènye nan] LT',
sameElse: 'L',
},
relativeTime: {
future: 'nan %s',
past: 'sa gen %s',
s: 'kèk segonn',
ss: '%d segonn',
m: 'yon minit',
mm: '%d minit',
h: 'yon èdtan',
hh: '%d èdtan',
d: 'yon jou',
dd: '%d jou',
w: 'yon semèn',
ww: '%d semèn',
M: 'yon mwa',
MM: '%d mwa',
y: 'yon ane',
yy: '%d ane',
},
dayOfMonthOrdinalParse: /\d{1,2}(ye|)/,
ordinal: function (number, period) {
switch (period) {
case 'D':
return number + (number === 1 ? 'ye' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return number + (number === 1 ? 'ye' : 'e');
case 'w':
case 'W':
return number + (number === 1 ? 'ye' : 'e');
}
},
week: {
dow: 1,
doy: 4,
},
});
110 changes: 110 additions & 0 deletions locale/ht-ht.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
//! moment.js locale configuration
//! locale : Haitian Creole [ht-ht]
//! author : Horacio Bertorello

;(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';

//! moment.js locale configuration

var monthsStrictRegex =
/^(janvye|fevriye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i,
monthsShortStrictRegex =
/(janv\.?|fevr\.?|mas|avr\.?|me|jen|jiyè\.?|out|sept\.?|okt\.?|nov\.?|des\.?)/i,
monthsRegex =
/(janv\.?|fevr\.?|mas|avr\.?|me|jen|jiyè\.?|out|sept\.?|okt\.?|nov\.?|des\.?|janvye|fevriye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i,
monthsParse = [
/^janv/i,
/^fevr/i,
/^mas/i,
/^avr/i,
/^me/i,
/^jen/i,
/^jiyè/i,
/^out/i,
/^sept/i,
/^okt/i,
/^nov/i,
/^des/i,
];

var htHt = moment.defineLocale('ht', {
months: 'janvye_fevriye_mas_avril_me_jen_jiyè_out_septanm_oktòb_novanm_desanm'.split(
'_'
),
monthsShort:
'janv._fevr._mas_avr._me_jen_jiyè._out_sept._okt._nov._des.'.split('_'),
monthsRegex: monthsRegex,
monthsShortRegex: monthsRegex,
monthsStrictRegex: monthsStrictRegex,
monthsShortStrictRegex: monthsShortStrictRegex,
monthsParse: monthsParse,
longMonthsParse: monthsParse,
shortMonthsParse: monthsParse,
weekdays: 'dimanch_lendi_madi_mèkredi_jedi_vandredi_samdi'.split('_'),
weekdaysShort: 'dim._len._mad._mèk._jed._ven._sam.'.split('_'),
weekdaysMin: 'di_le_ma_me_je_ve_sa'.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',
},
calendar: {
sameDay: '[Jodi a nan] LT',
nextDay: '[Demain nan] LT',
nextWeek: 'dddd [nan] LT',
lastDay: '[Ye nan] LT',
lastWeek: 'dddd [dènye nan] LT',
sameElse: 'L',
},
relativeTime: {
future: 'nan %s',
past: 'sa gen %s',
s: 'kèk segonn',
ss: '%d segonn',
m: 'yon minit',
mm: '%d minit',
h: 'yon èdtan',
hh: '%d èdtan',
d: 'yon jou',
dd: '%d jou',
w: 'yon semèn',
ww: '%d semèn',
M: 'yon mwa',
MM: '%d mwa',
y: 'yon ane',
yy: '%d ane',
},
dayOfMonthOrdinalParse: /\d{1,2}(ye|)/,
ordinal: function (number, period) {
switch (period) {
case 'D':
return number + (number === 1 ? 'ye' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return number + (number === 1 ? 'ye' : 'e');
case 'w':
case 'W':
return number + (number === 1 ? 'ye' : 'e');
}
},
week: {
dow: 1,
doy: 4,
},
});

return htHt;

})));
2 changes: 1 addition & 1 deletion meteor/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var packageName = 'momentjs:moment'; // https://atmospherejs.com/momentjs/momen
Package.describe({
name: packageName,
summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
version: '2.30.1',
version: '2.31.0',
git: 'https://github.com/moment/moment.git'
});

Expand Down
Loading

0 comments on commit 0236213

Please sign in to comment.