diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/moment/src | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/moment/src')
127 files changed, 421 insertions, 135 deletions
diff --git a/node_modules/moment/src/lib/create/from-array.js b/node_modules/moment/src/lib/create/from-array.js index 7626c455d..b5a0911de 100644 --- a/node_modules/moment/src/lib/create/from-array.js +++ b/node_modules/moment/src/lib/create/from-array.js @@ -21,7 +21,7 @@ function currentDateArray(config) { // note: all values past the year are optional and will default to the lowest possible value. // [year, month, day , hour, minute, second, millisecond] export function configFromArray (config) { - var i, date, input = [], currentDate, yearToUse; + var i, date, input = [], currentDate, expectedWeekday, yearToUse; if (config._d) { return; @@ -71,6 +71,8 @@ export function configFromArray (config) { } config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input); + expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); + // Apply timezone offset from input. The actual utcOffset can be changed // with parseZone. if (config._tzm != null) { @@ -82,7 +84,7 @@ export function configFromArray (config) { } // check for mismatching day of week - if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== config._d.getDay()) { + if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) { getParsingFlags(config).weekdayMismatch = true; } } diff --git a/node_modules/moment/src/lib/create/from-string.js b/node_modules/moment/src/lib/create/from-string.js index 7c1052a3e..c5ad56bab 100644 --- a/node_modules/moment/src/lib/create/from-string.js +++ b/node_modules/moment/src/lib/create/from-string.js @@ -128,7 +128,7 @@ function untruncateYear(yearStr) { 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) { diff --git a/node_modules/moment/src/lib/locale/locales.js b/node_modules/moment/src/lib/locale/locales.js index 7d8fb26e0..af28bfe27 100644 --- a/node_modules/moment/src/lib/locale/locales.js +++ b/node_modules/moment/src/lib/locale/locales.js @@ -42,7 +42,7 @@ function chooseLocale(names) { } i++; } - return null; + return globalLocale; } function loadLocale(name) { @@ -77,6 +77,12 @@ export function getSetGlobalLocale (key, values) { // moment.duration._locale = moment._locale = data; globalLocale = data; } + else { + if ((typeof console !== 'undefined') && console.warn) { + //warn user if arguments are passed but the locale could not be set + console.warn('Locale ' + key + ' not found. Did you forget to load it?'); + } + } } return globalLocale._abbr; @@ -84,7 +90,7 @@ export function getSetGlobalLocale (key, values) { export function defineLocale (name, config) { if (config !== null) { - var parentConfig = baseConfig; + var locale, parentConfig = baseConfig; config.abbr = name; if (locales[name] != null) { deprecateSimple('defineLocaleOverride', @@ -97,14 +103,19 @@ export function defineLocale (name, config) { if (locales[config.parentLocale] != null) { parentConfig = locales[config.parentLocale]._config; } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; + locale = loadLocale(config.parentLocale); + if (locale != null) { + parentConfig = locale._config; + } else { + if (!localeFamilies[config.parentLocale]) { + localeFamilies[config.parentLocale] = []; + } + localeFamilies[config.parentLocale].push({ + name: name, + config: config + }); + return null; } - localeFamilies[config.parentLocale].push({ - name: name, - config: config - }); - return null; } } locales[name] = new Locale(mergeConfigs(parentConfig, config)); diff --git a/node_modules/moment/src/lib/moment/format.js b/node_modules/moment/src/lib/moment/format.js index d95042f20..9544f5173 100644 --- a/node_modules/moment/src/lib/moment/format.js +++ b/node_modules/moment/src/lib/moment/format.js @@ -9,19 +9,24 @@ export function toString () { return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); } -export function toISOString() { +export function toISOString(keepOffset) { if (!this.isValid()) { return null; } - var m = this.clone().utc(); + var utc = keepOffset !== true; + var m = utc ? this.clone().utc() : this; if (m.year() < 0 || m.year() > 9999) { - return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'); } if (isFunction(Date.prototype.toISOString)) { // native implementation is ~50x faster, use it when we can - return this.toDate().toISOString(); + if (utc) { + return this.toDate().toISOString(); + } else { + return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z')); + } } - return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'); } /** diff --git a/node_modules/moment/src/lib/parse/regex.js b/node_modules/moment/src/lib/parse/regex.js index 5076548ed..4b86f34c7 100644 --- a/node_modules/moment/src/lib/parse/regex.js +++ b/node_modules/moment/src/lib/parse/regex.js @@ -20,7 +20,7 @@ export var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123 // any word (or two) characters or numbers including two/three word month in arabic. // includes scottish gaelic two word and hyphenated months -export var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; +export var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; import hasOwnProp from '../utils/has-own-prop'; diff --git a/node_modules/moment/src/lib/units/day-of-month.js b/node_modules/moment/src/lib/units/day-of-month.js index 02532534e..cbd1e40ba 100644 --- a/node_modules/moment/src/lib/units/day-of-month.js +++ b/node_modules/moment/src/lib/units/day-of-month.js @@ -15,7 +15,7 @@ addFormatToken('D', ['DD', 2], 'Do', 'date'); addUnitAlias('date', 'D'); -// PRIOROITY +// PRIORITY addUnitPriority('date', 9); // PARSING @@ -31,7 +31,7 @@ addRegexToken('Do', function (isStrict, locale) { addParseToken(['D', 'DD'], DATE); addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0], 10); + array[DATE] = toInt(input.match(match1to2)[0]); }); // MOMENTS diff --git a/node_modules/moment/src/lib/units/day-of-week.js b/node_modules/moment/src/lib/units/day-of-week.js index 55027608d..438160b87 100644 --- a/node_modules/moment/src/lib/units/day-of-week.js +++ b/node_modules/moment/src/lib/units/day-of-week.js @@ -200,9 +200,9 @@ export function localeWeekdaysParse (weekdayName, format, strict) { 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, ''); diff --git a/node_modules/moment/src/lib/units/hour.js b/node_modules/moment/src/lib/units/hour.js index ef7586803..d717a7999 100644 --- a/node_modules/moment/src/lib/units/hour.js +++ b/node_modules/moment/src/lib/units/hour.js @@ -138,7 +138,7 @@ export function localeMeridiem (hours, minutes, isLower) { // MOMENTS // Setting the hour should keep the time, because the user explicitly -// specified which hour he wants. So trying to maintain the same hour (in +// specified which hour they want. So trying to maintain the same hour (in // a new timezone) makes sense. Adding/subtracting hours does not follow // this rule. export var getSetHour = makeGetSet('Hours', true); diff --git a/node_modules/moment/src/locale/af.js b/node_modules/moment/src/locale/af.js index b6bdbabc2..7af03241e 100644 --- a/node_modules/moment/src/locale/af.js +++ b/node_modules/moment/src/locale/af.js @@ -41,6 +41,7 @@ export default moment.defineLocale('af', { future : 'oor %s', past : '%s gelede', s : '\'n paar sekondes', + ss : '%d sekondes', m : '\'n minuut', mm : '%d minute', h : '\'n uur', diff --git a/node_modules/moment/src/locale/ar-dz.js b/node_modules/moment/src/locale/ar-dz.js index d14e0ff83..f01a30d57 100644 --- a/node_modules/moment/src/locale/ar-dz.js +++ b/node_modules/moment/src/locale/ar-dz.js @@ -31,6 +31,7 @@ export default moment.defineLocale('ar-dz', { future : 'في %s', past : 'منذ %s', s : 'ثوان', + ss : '%d ثانية', m : 'دقيقة', mm : '%d دقائق', h : 'ساعة', diff --git a/node_modules/moment/src/locale/ar-kw.js b/node_modules/moment/src/locale/ar-kw.js index 5cdfd937e..684abb738 100644 --- a/node_modules/moment/src/locale/ar-kw.js +++ b/node_modules/moment/src/locale/ar-kw.js @@ -31,6 +31,7 @@ export default moment.defineLocale('ar-kw', { future : 'في %s', past : 'منذ %s', s : 'ثوان', + ss : '%d ثانية', m : 'دقيقة', mm : '%d دقائق', h : 'ساعة', diff --git a/node_modules/moment/src/locale/ar-ly.js b/node_modules/moment/src/locale/ar-ly.js index fb3a3e773..b6b500209 100644 --- a/node_modules/moment/src/locale/ar-ly.js +++ b/node_modules/moment/src/locale/ar-ly.js @@ -86,6 +86,7 @@ export default moment.defineLocale('ar-ly', { future : 'بعد %s', past : 'منذ %s', s : pluralize('s'), + ss : pluralize('s'), m : pluralize('m'), mm : pluralize('m'), h : pluralize('h'), diff --git a/node_modules/moment/src/locale/ar-ma.js b/node_modules/moment/src/locale/ar-ma.js index 03973d229..b1af907bf 100644 --- a/node_modules/moment/src/locale/ar-ma.js +++ b/node_modules/moment/src/locale/ar-ma.js @@ -32,6 +32,7 @@ export default moment.defineLocale('ar-ma', { future : 'في %s', past : 'منذ %s', s : 'ثوان', + ss : '%d ثانية', m : 'دقيقة', mm : '%d دقائق', h : 'ساعة', diff --git a/node_modules/moment/src/locale/ar-sa.js b/node_modules/moment/src/locale/ar-sa.js index 30a9968d6..65ba6a1c8 100644 --- a/node_modules/moment/src/locale/ar-sa.js +++ b/node_modules/moment/src/locale/ar-sa.js @@ -66,6 +66,7 @@ export default moment.defineLocale('ar-sa', { future : 'في %s', past : 'منذ %s', s : 'ثوان', + ss : '%d ثانية', m : 'دقيقة', mm : '%d دقائق', h : 'ساعة', diff --git a/node_modules/moment/src/locale/ar-tn.js b/node_modules/moment/src/locale/ar-tn.js index 8ab8945bd..952f3bfda 100644 --- a/node_modules/moment/src/locale/ar-tn.js +++ b/node_modules/moment/src/locale/ar-tn.js @@ -31,6 +31,7 @@ export default moment.defineLocale('ar-tn', { future: 'في %s', past: 'منذ %s', s: 'ثوان', + ss : '%d ثانية', m: 'دقيقة', mm: '%d دقائق', h: 'ساعة', diff --git a/node_modules/moment/src/locale/ar.js b/node_modules/moment/src/locale/ar.js index 4d4a8a473..92f368d18 100644 --- a/node_modules/moment/src/locale/ar.js +++ b/node_modules/moment/src/locale/ar.js @@ -47,18 +47,18 @@ var symbolMap = { return str.replace(/%d/i, number); }; }, months = [ - 'كانون الثاني يناير', - 'شباط فبراير', - 'آذار مارس', - 'نيسان أبريل', - 'أيار مايو', - 'حزيران يونيو', - 'تموز يوليو', - 'آب أغسطس', - 'أيلول سبتمبر', - 'تشرين الأول أكتوبر', - 'تشرين الثاني نوفمبر', - 'كانون الأول ديسمبر' + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر' ]; export default moment.defineLocale('ar', { @@ -99,6 +99,7 @@ export default moment.defineLocale('ar', { future : 'بعد %s', past : 'منذ %s', s : pluralize('s'), + ss : pluralize('s'), m : pluralize('m'), mm : pluralize('m'), h : pluralize('h'), diff --git a/node_modules/moment/src/locale/az.js b/node_modules/moment/src/locale/az.js index 74a08bd7f..4fea428f7 100644 --- a/node_modules/moment/src/locale/az.js +++ b/node_modules/moment/src/locale/az.js @@ -51,7 +51,8 @@ export default moment.defineLocale('az', { 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ə', h : 'bir saat', diff --git a/node_modules/moment/src/locale/be.js b/node_modules/moment/src/locale/be.js index 233972c62..e106f241c 100644 --- a/node_modules/moment/src/locale/be.js +++ b/node_modules/moment/src/locale/be.js @@ -12,6 +12,7 @@ function plural(word, num) { } function relativeTimeWithPlural(number, withoutSuffix, key) { var format = { + 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', 'dd': 'дзень_дні_дзён', @@ -38,7 +39,7 @@ export default moment.defineLocale('be', { weekdays : { format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'), standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), - isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/ + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/ }, weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), diff --git a/node_modules/moment/src/locale/bg.js b/node_modules/moment/src/locale/bg.js index a09df5241..5ce4dca50 100644 --- a/node_modules/moment/src/locale/bg.js +++ b/node_modules/moment/src/locale/bg.js @@ -42,6 +42,7 @@ export default moment.defineLocale('bg', { future : 'след %s', past : 'преди %s', s : 'няколко секунди', + ss : '%d секунди', m : 'минута', mm : '%d минути', h : 'час', diff --git a/node_modules/moment/src/locale/bm.js b/node_modules/moment/src/locale/bm.js index cac1731b0..887a75034 100644 --- a/node_modules/moment/src/locale/bm.js +++ b/node_modules/moment/src/locale/bm.js @@ -31,6 +31,7 @@ export default moment.defineLocale('bm', { future : '%s kɔnɔ', past : 'a bɛ %s bɔ', s : 'sanga dama dama', + ss : 'sekondi %d', m : 'miniti kelen', mm : 'miniti %d', h : 'lɛrɛ kelen', diff --git a/node_modules/moment/src/locale/bn.js b/node_modules/moment/src/locale/bn.js index 359a376dc..a859a23a5 100644 --- a/node_modules/moment/src/locale/bn.js +++ b/node_modules/moment/src/locale/bn.js @@ -55,6 +55,7 @@ export default moment.defineLocale('bn', { future : '%s পরে', past : '%s আগে', s : 'কয়েক সেকেন্ড', + ss : '%d সেকেন্ড', m : 'এক মিনিট', mm : '%d মিনিট', h : 'এক ঘন্টা', diff --git a/node_modules/moment/src/locale/bo.js b/node_modules/moment/src/locale/bo.js index 5d15d8448..a536d482f 100644 --- a/node_modules/moment/src/locale/bo.js +++ b/node_modules/moment/src/locale/bo.js @@ -55,6 +55,7 @@ export default moment.defineLocale('bo', { future : '%s ལ་', past : '%s སྔན་ལ', s : 'ལམ་སང', + ss : '%d སྐར་ཆ།', m : 'སྐར་མ་གཅིག', mm : '%d སྐར་མ', h : 'ཆུ་ཚོད་གཅིག', diff --git a/node_modules/moment/src/locale/br.js b/node_modules/moment/src/locale/br.js index 925d1303b..7208f7939 100644 --- a/node_modules/moment/src/locale/br.js +++ b/node_modules/moment/src/locale/br.js @@ -75,6 +75,7 @@ export default moment.defineLocale('br', { future : 'a-benn %s', past : '%s \'zo', s : 'un nebeud segondennoù', + ss : '%d eilenn', m : 'ur vunutenn', mm : relativeTimeWithMutation, h : 'un eur', diff --git a/node_modules/moment/src/locale/bs.js b/node_modules/moment/src/locale/bs.js index 970082148..f605c4d6d 100644 --- a/node_modules/moment/src/locale/bs.js +++ b/node_modules/moment/src/locale/bs.js @@ -8,6 +8,15 @@ import moment from '../moment'; function translate(number, withoutSuffix, key) { var result = number + ' '; switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; case 'm': return withoutSuffix ? 'jedna minuta' : 'jedne minute'; case 'mm': @@ -113,6 +122,7 @@ export default moment.defineLocale('bs', { future : 'za %s', past : 'prije %s', s : 'par sekundi', + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/ca.js b/node_modules/moment/src/locale/ca.js index 6cb888c3c..8d1df5721 100644 --- a/node_modules/moment/src/locale/ca.js +++ b/node_modules/moment/src/locale/ca.js @@ -49,6 +49,7 @@ export default moment.defineLocale('ca', { future : 'd\'aquí %s', past : 'fa %s', s : 'uns segons', + ss : '%d segons', m : 'un minut', mm : '%d minuts', h : 'una hora', diff --git a/node_modules/moment/src/locale/cs.js b/node_modules/moment/src/locale/cs.js index 144bae0ac..6171ab1c0 100644 --- a/node_modules/moment/src/locale/cs.js +++ b/node_modules/moment/src/locale/cs.js @@ -14,6 +14,13 @@ function translate(number, withoutSuffix, key, isFuture) { switch (key) { case 's': // a few seconds / in a few seconds / a few seconds ago return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekund'); + } else { + return result + 'sekundami'; + } + break; case 'm': // a minute / in a minute / a minute ago return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago @@ -142,6 +149,7 @@ export default moment.defineLocale('cs', { future : 'za %s', past : 'před %s', s : translate, + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/cv.js b/node_modules/moment/src/locale/cv.js index 354ff66e7..d97d4d92c 100644 --- a/node_modules/moment/src/locale/cv.js +++ b/node_modules/moment/src/locale/cv.js @@ -33,6 +33,7 @@ export default moment.defineLocale('cv', { }, past : '%s каялла', s : 'пӗр-ик ҫеккунт', + ss : '%d ҫеккунт', m : 'пӗр минут', mm : '%d минут', h : 'пӗр сехет', diff --git a/node_modules/moment/src/locale/cy.js b/node_modules/moment/src/locale/cy.js index 615bac310..eb2e54c9b 100644 --- a/node_modules/moment/src/locale/cy.js +++ b/node_modules/moment/src/locale/cy.js @@ -33,6 +33,7 @@ export default moment.defineLocale('cy', { future: 'mewn %s', past: '%s yn ôl', s: 'ychydig eiliadau', + ss: '%d eiliad', m: 'munud', mm: '%d munud', h: 'awr', diff --git a/node_modules/moment/src/locale/da.js b/node_modules/moment/src/locale/da.js index 8ea7f194b..a06c6e021 100644 --- a/node_modules/moment/src/locale/da.js +++ b/node_modules/moment/src/locale/da.js @@ -30,6 +30,7 @@ export default moment.defineLocale('da', { future : 'om %s', past : '%s siden', s : 'få sekunder', + ss : '%d sekunder', m : 'et minut', mm : '%d minutter', h : 'en time', diff --git a/node_modules/moment/src/locale/de-at.js b/node_modules/moment/src/locale/de-at.js index 25c2e35b8..4ed974c9b 100644 --- a/node_modules/moment/src/locale/de-at.js +++ b/node_modules/moment/src/locale/de-at.js @@ -49,6 +49,7 @@ export default moment.defineLocale('de-at', { future : 'in %s', past : 'vor %s', s : 'ein paar Sekunden', + ss : '%d Sekunden', m : processRelativeTime, mm : '%d Minuten', h : processRelativeTime, diff --git a/node_modules/moment/src/locale/de-ch.js b/node_modules/moment/src/locale/de-ch.js index 0b00982f9..c448345a6 100644 --- a/node_modules/moment/src/locale/de-ch.js +++ b/node_modules/moment/src/locale/de-ch.js @@ -29,12 +29,12 @@ export default moment.defineLocale('de-ch', { weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), weekdaysParseExact : true, longDateFormat : { - LT: 'HH.mm', - LTS: 'HH.mm.ss', + 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' + LLL : 'D. MMMM YYYY HH:mm', + LLLL : 'dddd, D. MMMM YYYY HH:mm' }, calendar : { sameDay: '[heute um] LT [Uhr]', @@ -48,6 +48,7 @@ export default moment.defineLocale('de-ch', { future : 'in %s', past : 'vor %s', s : 'ein paar Sekunden', + ss : '%d Sekunden', m : processRelativeTime, mm : '%d Minuten', h : processRelativeTime, diff --git a/node_modules/moment/src/locale/de.js b/node_modules/moment/src/locale/de.js index 5f5ef5a06..4574656bb 100644 --- a/node_modules/moment/src/locale/de.js +++ b/node_modules/moment/src/locale/de.js @@ -48,6 +48,7 @@ export default moment.defineLocale('de', { future : 'in %s', past : 'vor %s', s : 'ein paar Sekunden', + ss : '%d Sekunden', m : processRelativeTime, mm : '%d Minuten', h : processRelativeTime, diff --git a/node_modules/moment/src/locale/dv.js b/node_modules/moment/src/locale/dv.js index 9490e3fea..3268843ca 100644 --- a/node_modules/moment/src/locale/dv.js +++ b/node_modules/moment/src/locale/dv.js @@ -65,6 +65,7 @@ export default moment.defineLocale('dv', { future : 'ތެރޭގައި %s', past : 'ކުރިން %s', s : 'ސިކުންތުކޮޅެއް', + ss : 'd% ސިކުންތު', m : 'މިނިޓެއް', mm : 'މިނިޓު %d', h : 'ގަޑިއިރެއް', diff --git a/node_modules/moment/src/locale/el.js b/node_modules/moment/src/locale/el.js index 6648da0f8..5e43ae3a9 100644 --- a/node_modules/moment/src/locale/el.js +++ b/node_modules/moment/src/locale/el.js @@ -67,6 +67,7 @@ export default moment.defineLocale('el', { future : 'σε %s', past : '%s πριν', s : 'λίγα δευτερόλεπτα', + ss : '%d δευτερόλεπτα', m : 'ένα λεπτό', mm : '%d λεπτά', h : 'μία ώρα', diff --git a/node_modules/moment/src/locale/en-au.js b/node_modules/moment/src/locale/en-au.js index 4e3d5f4fa..04e61e47e 100644 --- a/node_modules/moment/src/locale/en-au.js +++ b/node_modules/moment/src/locale/en-au.js @@ -30,6 +30,7 @@ export default moment.defineLocale('en-au', { future : 'in %s', past : '%s ago', s : 'a few seconds', + ss : '%d seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', diff --git a/node_modules/moment/src/locale/en-ca.js b/node_modules/moment/src/locale/en-ca.js index 4783cfec2..008baedf4 100644 --- a/node_modules/moment/src/locale/en-ca.js +++ b/node_modules/moment/src/locale/en-ca.js @@ -30,6 +30,7 @@ export default moment.defineLocale('en-ca', { future : 'in %s', past : '%s ago', s : 'a few seconds', + ss : '%d seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', diff --git a/node_modules/moment/src/locale/en-gb.js b/node_modules/moment/src/locale/en-gb.js index ccff36607..da235be35 100644 --- a/node_modules/moment/src/locale/en-gb.js +++ b/node_modules/moment/src/locale/en-gb.js @@ -30,6 +30,7 @@ export default moment.defineLocale('en-gb', { future : 'in %s', past : '%s ago', s : 'a few seconds', + ss : '%d seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', diff --git a/node_modules/moment/src/locale/en-ie.js b/node_modules/moment/src/locale/en-ie.js index 008b84e57..725ff9ee2 100644 --- a/node_modules/moment/src/locale/en-ie.js +++ b/node_modules/moment/src/locale/en-ie.js @@ -30,6 +30,7 @@ export default moment.defineLocale('en-ie', { future : 'in %s', past : '%s ago', s : 'a few seconds', + ss : '%d seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', diff --git a/node_modules/moment/src/locale/en-nz.js b/node_modules/moment/src/locale/en-nz.js index a974da7cd..ee7c46818 100644 --- a/node_modules/moment/src/locale/en-nz.js +++ b/node_modules/moment/src/locale/en-nz.js @@ -30,6 +30,7 @@ export default moment.defineLocale('en-nz', { future : 'in %s', past : '%s ago', s : 'a few seconds', + ss : '%d seconds', m : 'a minute', mm : '%d minutes', h : 'an hour', diff --git a/node_modules/moment/src/locale/eo.js b/node_modules/moment/src/locale/eo.js index 66cb7683f..66c1ac06e 100644 --- a/node_modules/moment/src/locale/eo.js +++ b/node_modules/moment/src/locale/eo.js @@ -43,6 +43,7 @@ export default moment.defineLocale('eo', { future : 'post %s', past : 'antaŭ %s', s : 'sekundoj', + ss : '%d sekundoj', m : 'minuto', mm : '%d minutoj', h : 'horo', diff --git a/node_modules/moment/src/locale/es-do.js b/node_modules/moment/src/locale/es-do.js index 09263c770..c83978509 100644 --- a/node_modules/moment/src/locale/es-do.js +++ b/node_modules/moment/src/locale/es-do.js @@ -61,6 +61,7 @@ export default moment.defineLocale('es-do', { future : 'en %s', past : 'hace %s', s : 'unos segundos', + ss : '%d segundos', m : 'un minuto', mm : '%d minutos', h : 'una hora', diff --git a/node_modules/moment/src/locale/es-us.js b/node_modules/moment/src/locale/es-us.js index 931c594ac..9fa1460fe 100644 --- a/node_modules/moment/src/locale/es-us.js +++ b/node_modules/moment/src/locale/es-us.js @@ -24,12 +24,12 @@ export default moment.defineLocale('es-us', { weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'), weekdaysParseExact : true, longDateFormat : { - LT : 'H:mm', - LTS : 'H:mm:ss', + 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', - LLLL : 'dddd, MMMM [de] D [de] YYYY H:mm' + LLL : 'MMMM [de] D [de] YYYY h:mm A', + LLLL : 'dddd, MMMM [de] D [de] YYYY h:mm A' }, calendar : { sameDay : function () { @@ -53,6 +53,7 @@ export default moment.defineLocale('es-us', { future : 'en %s', past : 'hace %s', s : 'unos segundos', + ss : '%d segundos', m : 'un minuto', mm : '%d minutos', h : 'una hora', diff --git a/node_modules/moment/src/locale/es.js b/node_modules/moment/src/locale/es.js index a058d369e..4dc588a07 100644 --- a/node_modules/moment/src/locale/es.js +++ b/node_modules/moment/src/locale/es.js @@ -62,6 +62,7 @@ export default moment.defineLocale('es', { future : 'en %s', past : 'hace %s', s : 'unos segundos', + ss : '%d segundos', m : 'un minuto', mm : '%d minutos', h : 'una hora', diff --git a/node_modules/moment/src/locale/et.js b/node_modules/moment/src/locale/et.js index faa458581..22415e7c7 100644 --- a/node_modules/moment/src/locale/et.js +++ b/node_modules/moment/src/locale/et.js @@ -8,6 +8,7 @@ import moment from '../moment'; function processRelativeTime(number, withoutSuffix, key, isFuture) { var format = { 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + 'ss': [number + 'sekundi', number + 'sekundit'], 'm' : ['ühe minuti', 'üks minut'], 'mm': [number + ' minuti', number + ' minutit'], 'h' : ['ühe tunni', 'tund aega', 'üks tund'], @@ -50,6 +51,7 @@ export default moment.defineLocale('et', { future : '%s pärast', past : '%s tagasi', s : processRelativeTime, + ss : processRelativeTime, m : processRelativeTime, mm : processRelativeTime, h : processRelativeTime, diff --git a/node_modules/moment/src/locale/eu.js b/node_modules/moment/src/locale/eu.js index b73019ec1..d54478803 100644 --- a/node_modules/moment/src/locale/eu.js +++ b/node_modules/moment/src/locale/eu.js @@ -36,6 +36,7 @@ export default moment.defineLocale('eu', { future : '%s barru', past : 'duela %s', s : 'segundo batzuk', + ss : '%d segundo', m : 'minutu bat', mm : '%d minutu', h : 'ordu bat', diff --git a/node_modules/moment/src/locale/fa.js b/node_modules/moment/src/locale/fa.js index 7daa53af3..cf503c159 100644 --- a/node_modules/moment/src/locale/fa.js +++ b/node_modules/moment/src/locale/fa.js @@ -66,6 +66,7 @@ export default moment.defineLocale('fa', { future : 'در %s', past : '%s پیش', s : 'چند ثانیه', + ss : 'ثانیه d%', m : 'یک دقیقه', mm : '%d دقیقه', h : 'یک ساعت', diff --git a/node_modules/moment/src/locale/fi.js b/node_modules/moment/src/locale/fi.js index 07ebb29c1..c505292bb 100644 --- a/node_modules/moment/src/locale/fi.js +++ b/node_modules/moment/src/locale/fi.js @@ -14,6 +14,8 @@ function translate(number, withoutSuffix, key, isFuture) { switch (key) { case 's': return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'ss': + return isFuture ? 'sekunnin' : 'sekuntia'; case 'm': return isFuture ? 'minuutin' : 'minuutti'; case 'mm': @@ -77,6 +79,7 @@ export default moment.defineLocale('fi', { future : '%s päästä', past : '%s sitten', s : translate, + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/fo.js b/node_modules/moment/src/locale/fo.js index 15749b7a4..5efc4cc17 100644 --- a/node_modules/moment/src/locale/fo.js +++ b/node_modules/moment/src/locale/fo.js @@ -30,6 +30,7 @@ export default moment.defineLocale('fo', { future : 'um %s', past : '%s síðani', s : 'fá sekund', + ss : '%d sekundir', m : 'ein minutt', mm : '%d minuttir', h : 'ein tími', diff --git a/node_modules/moment/src/locale/fr-ca.js b/node_modules/moment/src/locale/fr-ca.js index 82d822c29..4825a6db9 100644 --- a/node_modules/moment/src/locale/fr-ca.js +++ b/node_modules/moment/src/locale/fr-ca.js @@ -10,7 +10,7 @@ export default moment.defineLocale('fr-ca', { monthsParseExact : true, weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', @@ -32,6 +32,7 @@ export default moment.defineLocale('fr-ca', { future : 'dans %s', past : 'il y a %s', s : 'quelques secondes', + ss : '%d secondes', m : 'une minute', mm : '%d minutes', h : 'une heure', diff --git a/node_modules/moment/src/locale/fr-ch.js b/node_modules/moment/src/locale/fr-ch.js index 7bfe02880..febd401df 100644 --- a/node_modules/moment/src/locale/fr-ch.js +++ b/node_modules/moment/src/locale/fr-ch.js @@ -10,7 +10,7 @@ export default moment.defineLocale('fr-ch', { monthsParseExact : true, weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', @@ -32,6 +32,7 @@ export default moment.defineLocale('fr-ch', { future : 'dans %s', past : 'il y a %s', s : 'quelques secondes', + ss : '%d secondes', m : 'une minute', mm : '%d minutes', h : 'une heure', diff --git a/node_modules/moment/src/locale/fr.js b/node_modules/moment/src/locale/fr.js index f2fac695f..81399dcff 100644 --- a/node_modules/moment/src/locale/fr.js +++ b/node_modules/moment/src/locale/fr.js @@ -10,7 +10,7 @@ export default moment.defineLocale('fr', { monthsParseExact : true, weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), + weekdaysMin : 'di_lu_ma_me_je_ve_sa'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', @@ -32,6 +32,7 @@ export default moment.defineLocale('fr', { future : 'dans %s', past : 'il y a %s', s : 'quelques secondes', + ss : '%d secondes', m : 'une minute', mm : '%d minutes', h : 'une heure', diff --git a/node_modules/moment/src/locale/fy.js b/node_modules/moment/src/locale/fy.js index c0c58a3a4..b4b209606 100644 --- a/node_modules/moment/src/locale/fy.js +++ b/node_modules/moment/src/locale/fy.js @@ -43,6 +43,7 @@ export default moment.defineLocale('fy', { future : 'oer %s', past : '%s lyn', s : 'in pear sekonden', + ss : '%d sekonden', m : 'ien minút', mm : '%d minuten', h : 'ien oere', diff --git a/node_modules/moment/src/locale/gd.js b/node_modules/moment/src/locale/gd.js index e088871bc..b3653d297 100644 --- a/node_modules/moment/src/locale/gd.js +++ b/node_modules/moment/src/locale/gd.js @@ -43,6 +43,7 @@ export default moment.defineLocale('gd', { future : 'ann an %s', past : 'bho chionn %s', s : 'beagan diogan', + ss : '%d diogan', m : 'mionaid', mm : '%d mionaidean', h : 'uair', diff --git a/node_modules/moment/src/locale/gl.js b/node_modules/moment/src/locale/gl.js index 6f53907f1..206a8f6c8 100644 --- a/node_modules/moment/src/locale/gl.js +++ b/node_modules/moment/src/locale/gl.js @@ -47,6 +47,7 @@ export default moment.defineLocale('gl', { }, past : 'hai %s', s : 'uns segundos', + ss : '%d segundos', m : 'un minuto', mm : '%d minutos', h : 'unha hora', diff --git a/node_modules/moment/src/locale/gom-latn.js b/node_modules/moment/src/locale/gom-latn.js index 553025325..39ad91e09 100644 --- a/node_modules/moment/src/locale/gom-latn.js +++ b/node_modules/moment/src/locale/gom-latn.js @@ -7,10 +7,11 @@ import moment from '../moment'; function processRelativeTime(number, withoutSuffix, key, isFuture) { var format = { 's': ['thodde secondanim', 'thodde second'], + 'ss': [number + ' secondanim', number + ' second'], 'm': ['eka mintan', 'ek minute'], 'mm': [number + ' mintanim', number + ' mintam'], 'h': ['eka horan', 'ek hor'], - 'hh': [number + ' horanim', number + ' hor'], + 'hh': [number + ' horanim', number + ' horam'], 'd': ['eka disan', 'ek dis'], 'dd': [number + ' disanim', number + ' dis'], 'M': ['eka mhoinean', 'ek mhoino'], @@ -50,6 +51,7 @@ export default moment.defineLocale('gom-latn', { future : '%s', past : '%s adim', s : processRelativeTime, + ss : processRelativeTime, m : processRelativeTime, mm : processRelativeTime, h : processRelativeTime, diff --git a/node_modules/moment/src/locale/gu.js b/node_modules/moment/src/locale/gu.js index f9ca7d7e7..ecde951f0 100644 --- a/node_modules/moment/src/locale/gu.js +++ b/node_modules/moment/src/locale/gu.js @@ -56,6 +56,7 @@ export default moment.defineLocale('gu', { future: '%s મા', past: '%s પેહલા', s: 'અમુક પળો', + ss: '%d સેકંડ', m: 'એક મિનિટ', mm: '%d મિનિટ', h: 'એક કલાક', diff --git a/node_modules/moment/src/locale/he.js b/node_modules/moment/src/locale/he.js index b6a1944b5..02af63448 100644 --- a/node_modules/moment/src/locale/he.js +++ b/node_modules/moment/src/locale/he.js @@ -36,6 +36,7 @@ export default moment.defineLocale('he', { future : 'בעוד %s', past : 'לפני %s', s : 'מספר שניות', + ss : '%d שניות', m : 'דקה', mm : '%d דקות', h : 'שעה', diff --git a/node_modules/moment/src/locale/hi.js b/node_modules/moment/src/locale/hi.js index 30a50e4eb..f3471600f 100644 --- a/node_modules/moment/src/locale/hi.js +++ b/node_modules/moment/src/locale/hi.js @@ -56,6 +56,7 @@ export default moment.defineLocale('hi', { future : '%s में', past : '%s पहले', s : 'कुछ ही क्षण', + ss : '%d सेकंड', m : 'एक मिनट', mm : '%d मिनट', h : 'एक घंटा', diff --git a/node_modules/moment/src/locale/hr.js b/node_modules/moment/src/locale/hr.js index 59d060c4b..aa3b85338 100644 --- a/node_modules/moment/src/locale/hr.js +++ b/node_modules/moment/src/locale/hr.js @@ -7,6 +7,15 @@ import moment from '../moment'; function translate(number, withoutSuffix, key) { var result = number + ' '; switch (key) { + case 'ss': + if (number === 1) { + result += 'sekunda'; + } else if (number === 2 || number === 3 || number === 4) { + result += 'sekunde'; + } else { + result += 'sekundi'; + } + return result; case 'm': return withoutSuffix ? 'jedna minuta' : 'jedne minute'; case 'mm': @@ -115,6 +124,7 @@ export default moment.defineLocale('hr', { future : 'za %s', past : 'prije %s', s : 'par sekundi', + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/hu.js b/node_modules/moment/src/locale/hu.js index 6f636111b..1e075de93 100644 --- a/node_modules/moment/src/locale/hu.js +++ b/node_modules/moment/src/locale/hu.js @@ -11,6 +11,8 @@ function translate(number, withoutSuffix, key, isFuture) { switch (key) { case 's': return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; + case 'ss': + return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce'; case 'm': return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); case 'mm': @@ -79,6 +81,7 @@ export default moment.defineLocale('hu', { future : '%s múlva', past : '%s', s : translate, + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/hy-am.js b/node_modules/moment/src/locale/hy-am.js index 8cd904a3c..1918a57a0 100644 --- a/node_modules/moment/src/locale/hy-am.js +++ b/node_modules/moment/src/locale/hy-am.js @@ -37,6 +37,7 @@ export default moment.defineLocale('hy-am', { future : '%s հետո', past : '%s առաջ', s : 'մի քանի վայրկյան', + ss : '%d վայրկյան', m : 'րոպե', mm : '%d րոպե', h : 'ժամ', diff --git a/node_modules/moment/src/locale/id.js b/node_modules/moment/src/locale/id.js index ab4204e58..52b1ccc08 100644 --- a/node_modules/moment/src/locale/id.js +++ b/node_modules/moment/src/locale/id.js @@ -7,7 +7,7 @@ import moment from '../moment'; export default moment.defineLocale('id', { months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), - monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), + monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), @@ -55,6 +55,7 @@ export default moment.defineLocale('id', { future : 'dalam %s', past : '%s yang lalu', s : 'beberapa detik', + ss : '%d detik', m : 'semenit', mm : '%d menit', h : 'sejam', @@ -71,4 +72,3 @@ export default moment.defineLocale('id', { doy : 7 // The week that contains Jan 1st is the first week of the year. } }); - diff --git a/node_modules/moment/src/locale/is.js b/node_modules/moment/src/locale/is.js index d1c90cd0b..51fb8e661 100644 --- a/node_modules/moment/src/locale/is.js +++ b/node_modules/moment/src/locale/is.js @@ -17,6 +17,11 @@ function translate(number, withoutSuffix, key, isFuture) { switch (key) { case 's': return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; + case 'ss': + if (plural(number)) { + return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum'); + } + return result + 'sekúnda'; case 'm': return withoutSuffix ? 'mínúta' : 'mínútu'; case 'mm': @@ -97,6 +102,7 @@ export default moment.defineLocale('is', { future : 'eftir %s', past : 'fyrir %s síðan', s : translate, + ss : translate, m : translate, mm : translate, h : 'klukkustund', diff --git a/node_modules/moment/src/locale/it.js b/node_modules/moment/src/locale/it.js index 1edd3c758..a7ce1173e 100644 --- a/node_modules/moment/src/locale/it.js +++ b/node_modules/moment/src/locale/it.js @@ -17,7 +17,7 @@ export default moment.defineLocale('it', { L : 'DD/MM/YYYY', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY HH:mm', - LLLL : 'dddd, D MMMM YYYY HH:mm' + LLLL : 'dddd D MMMM YYYY HH:mm' }, calendar : { sameDay: '[Oggi alle] LT', @@ -40,6 +40,7 @@ export default moment.defineLocale('it', { }, past : '%s fa', s : 'alcuni secondi', + ss : '%d secondi', m : 'un minuto', mm : '%d minuti', h : 'un\'ora', diff --git a/node_modules/moment/src/locale/ja.js b/node_modules/moment/src/locale/ja.js index 5fffc83e0..9812a7363 100644 --- a/node_modules/moment/src/locale/ja.js +++ b/node_modules/moment/src/locale/ja.js @@ -16,11 +16,11 @@ export default moment.defineLocale('ja', { L : 'YYYY/MM/DD', LL : 'YYYY年M月D日', LLL : 'YYYY年M月D日 HH:mm', - LLLL : 'YYYY年M月D日 HH:mm dddd', + LLLL : 'YYYY年M月D日 dddd HH:mm', l : 'YYYY/MM/DD', ll : 'YYYY年M月D日', lll : 'YYYY年M月D日 HH:mm', - llll : 'YYYY年M月D日 HH:mm dddd' + llll : 'YYYY年M月D日(ddd) HH:mm' }, meridiemParse: /午前|午後/i, isPM : function (input) { @@ -36,9 +36,21 @@ export default moment.defineLocale('ja', { calendar : { sameDay : '[今日] LT', nextDay : '[明日] LT', - nextWeek : '[来週]dddd LT', + nextWeek : function (now) { + if (now.week() < this.week()) { + return '[来週]dddd LT'; + } else { + return 'dddd LT'; + } + }, lastDay : '[昨日] LT', - lastWeek : '[前週]dddd LT', + lastWeek : function (now) { + if (this.week() < now.week()) { + return '[先週]dddd LT'; + } else { + return 'dddd LT'; + } + }, sameElse : 'L' }, dayOfMonthOrdinalParse : /\d{1,2}日/, @@ -56,6 +68,7 @@ export default moment.defineLocale('ja', { future : '%s後', past : '%s前', s : '数秒', + ss : '%d秒', m : '1分', mm : '%d分', h : '1時間', diff --git a/node_modules/moment/src/locale/jv.js b/node_modules/moment/src/locale/jv.js index e5e25f9db..31fc9ad9d 100644 --- a/node_modules/moment/src/locale/jv.js +++ b/node_modules/moment/src/locale/jv.js @@ -55,6 +55,7 @@ export default moment.defineLocale('jv', { future : 'wonten ing %s', past : '%s ingkang kepengker', s : 'sawetawis detik', + ss : '%d detik', m : 'setunggal menit', mm : '%d menit', h : 'setunggal jam', diff --git a/node_modules/moment/src/locale/ka.js b/node_modules/moment/src/locale/ka.js index 6bae6a069..169734b13 100644 --- a/node_modules/moment/src/locale/ka.js +++ b/node_modules/moment/src/locale/ka.js @@ -41,13 +41,14 @@ export default moment.defineLocale('ka', { }, past : function (s) { if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { - return s.replace(/(ი|ე)$/, 'ის უკან'); + return s.replace(/(ი|ე)$/, 'ის წინ'); } if ((/წელი/).test(s)) { - return s.replace(/წელი$/, 'წლის უკან'); + return s.replace(/წელი$/, 'წლის წინ'); } }, s : 'რამდენიმე წამი', + ss : '%d წამი', m : 'წუთი', mm : '%d წუთი', h : 'საათი', diff --git a/node_modules/moment/src/locale/kk.js b/node_modules/moment/src/locale/kk.js index 95b81fbad..1917a9b5a 100644 --- a/node_modules/moment/src/locale/kk.js +++ b/node_modules/moment/src/locale/kk.js @@ -53,6 +53,7 @@ export default moment.defineLocale('kk', { future : '%s ішінде', past : '%s бұрын', s : 'бірнеше секунд', + ss : '%d секунд', m : 'бір минут', mm : '%d минут', h : 'бір сағат', diff --git a/node_modules/moment/src/locale/km.js b/node_modules/moment/src/locale/km.js index 8ae00be76..b364ffeb1 100644 --- a/node_modules/moment/src/locale/km.js +++ b/node_modules/moment/src/locale/km.js @@ -4,20 +4,60 @@ 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('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), - monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: true, longDateFormat: { LT: 'HH:mm', - LTS : 'HH:mm:ss', + 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', @@ -30,6 +70,7 @@ export default moment.defineLocale('km', { future: '%sទៀត', past: '%sមុន', s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', m: 'មួយនាទី', mm: '%d នាទី', h: 'មួយម៉ោង', @@ -41,9 +82,20 @@ export default moment.defineLocale('km', { y: 'មួយឆ្នាំ', yy: '%d ឆ្នាំ' }, + dayOfMonthOrdinalParse : /ទី\d{1,2}/, + ordinal : 'ទី%d', + preparse: function (string) { + return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { + return numberMap[match]; + }); + }, + postformat: function (string) { + return string.replace(/\d/g, function (match) { + return symbolMap[match]; + }); + }, 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. } }); - diff --git a/node_modules/moment/src/locale/kn.js b/node_modules/moment/src/locale/kn.js index b3bd49b29..d4b65e81a 100644 --- a/node_modules/moment/src/locale/kn.js +++ b/node_modules/moment/src/locale/kn.js @@ -31,7 +31,7 @@ numberMap = { export default moment.defineLocale('kn', { months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'), - monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'), + monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'), monthsParseExact: true, weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'), weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), @@ -56,6 +56,7 @@ export default moment.defineLocale('kn', { future : '%s ನಂತರ', past : '%s ಹಿಂದೆ', s : 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss : '%d ಸೆಕೆಂಡುಗಳು', m : 'ಒಂದು ನಿಮಿಷ', mm : '%d ನಿಮಿಷ', h : 'ಒಂದು ಗಂಟೆ', diff --git a/node_modules/moment/src/locale/ko.js b/node_modules/moment/src/locale/ko.js index 0c01616b9..d2da13d9b 100644 --- a/node_modules/moment/src/locale/ko.js +++ b/node_modules/moment/src/locale/ko.js @@ -14,11 +14,11 @@ export default moment.defineLocale('ko', { longDateFormat : { LT : 'A h:mm', LTS : 'A h:mm:ss', - L : 'YYYY.MM.DD', + L : 'YYYY.MM.DD.', LL : 'YYYY년 MMMM D일', LLL : 'YYYY년 MMMM D일 A h:mm', LLLL : 'YYYY년 MMMM D일 dddd A h:mm', - l : 'YYYY.MM.DD', + l : 'YYYY.MM.DD.', ll : 'YYYY년 MMMM D일', lll : 'YYYY년 MMMM D일 A h:mm', llll : 'YYYY년 MMMM D일 dddd A h:mm' diff --git a/node_modules/moment/src/locale/ky.js b/node_modules/moment/src/locale/ky.js index 3aeaa244f..aa7f1b2e8 100644 --- a/node_modules/moment/src/locale/ky.js +++ b/node_modules/moment/src/locale/ky.js @@ -54,6 +54,7 @@ export default moment.defineLocale('ky', { future : '%s ичинде', past : '%s мурун', s : 'бирнече секунд', + ss : '%d секунд', m : 'бир мүнөт', mm : '%d мүнөт', h : 'бир саат', diff --git a/node_modules/moment/src/locale/lb.js b/node_modules/moment/src/locale/lb.js index adaf04b06..8574277a5 100644 --- a/node_modules/moment/src/locale/lb.js +++ b/node_modules/moment/src/locale/lb.js @@ -107,6 +107,7 @@ export default moment.defineLocale('lb', { future : processFutureTime, past : processPastTime, s : 'e puer Sekonnen', + ss : '%d Sekonnen', m : processRelativeTime, mm : '%d Minutten', h : processRelativeTime, diff --git a/node_modules/moment/src/locale/lo.js b/node_modules/moment/src/locale/lo.js index c049693b3..3226dd5a0 100644 --- a/node_modules/moment/src/locale/lo.js +++ b/node_modules/moment/src/locale/lo.js @@ -42,6 +42,7 @@ export default moment.defineLocale('lo', { future : 'ອີກ %s', past : '%sຜ່ານມາ', s : 'ບໍ່ເທົ່າໃດວິນາທີ', + ss : '%d ວິນາທີ' , m : '1 ນາທີ', mm : '%d ນາທີ', h : '1 ຊົ່ວໂມງ', diff --git a/node_modules/moment/src/locale/lt.js b/node_modules/moment/src/locale/lt.js index 1043cd326..d006e07c4 100644 --- a/node_modules/moment/src/locale/lt.js +++ b/node_modules/moment/src/locale/lt.js @@ -5,6 +5,7 @@ import moment from '../moment'; var units = { + 'ss' : 'sekundė_sekundžių_sekundes', 'm' : 'minutė_minutės_minutę', 'mm': 'minutės_minučių_minutes', 'h' : 'valanda_valandos_valandą', @@ -85,6 +86,7 @@ export default moment.defineLocale('lt', { future : 'po %s', past : 'prieš %s', s : translateSeconds, + ss : translate, m : translateSingular, mm : translate, h : translateSingular, diff --git a/node_modules/moment/src/locale/lv.js b/node_modules/moment/src/locale/lv.js index 4a07b2c86..d13b47b24 100644 --- a/node_modules/moment/src/locale/lv.js +++ b/node_modules/moment/src/locale/lv.js @@ -6,6 +6,7 @@ import moment from '../moment'; var units = { + 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'), 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), 'h': 'stundas_stundām_stunda_stundas'.split('_'), @@ -67,6 +68,7 @@ export default moment.defineLocale('lv', { future : 'pēc %s', past : 'pirms %s', s : relativeSeconds, + ss : relativeTimeWithPlural, m : relativeTimeWithSingular, mm : relativeTimeWithPlural, h : relativeTimeWithSingular, diff --git a/node_modules/moment/src/locale/me.js b/node_modules/moment/src/locale/me.js index 77d32b56e..120c997d1 100644 --- a/node_modules/moment/src/locale/me.js +++ b/node_modules/moment/src/locale/me.js @@ -6,6 +6,7 @@ import moment from '../moment'; var translator = { words: { //Different grammatical cases + ss: ['sekund', 'sekunda', 'sekundi'], m: ['jedan minut', 'jednog minuta'], mm: ['minut', 'minuta', 'minuta'], h: ['jedan sat', 'jednog sata'], @@ -81,6 +82,7 @@ export default moment.defineLocale('me', { future : 'za %s', past : 'prije %s', s : 'nekoliko sekundi', + ss : translator.translate, m : translator.translate, mm : translator.translate, h : translator.translate, diff --git a/node_modules/moment/src/locale/mi.js b/node_modules/moment/src/locale/mi.js index cb77ad9e4..0c105e5d2 100644 --- a/node_modules/moment/src/locale/mi.js +++ b/node_modules/moment/src/locale/mi.js @@ -34,6 +34,7 @@ export default moment.defineLocale('mi', { future: 'i roto i %s', past: '%s i mua', s: 'te hēkona ruarua', + ss: '%d hēkona', m: 'he meneti', mm: '%d meneti', h: 'te haora', diff --git a/node_modules/moment/src/locale/mk.js b/node_modules/moment/src/locale/mk.js index 27424a7a4..6d6e0b40a 100644 --- a/node_modules/moment/src/locale/mk.js +++ b/node_modules/moment/src/locale/mk.js @@ -42,6 +42,7 @@ export default moment.defineLocale('mk', { future : 'после %s', past : 'пред %s', s : 'неколку секунди', + ss : '%d секунди', m : 'минута', mm : '%d минути', h : 'час', diff --git a/node_modules/moment/src/locale/ml.js b/node_modules/moment/src/locale/ml.js index c3df98818..306566d48 100644 --- a/node_modules/moment/src/locale/ml.js +++ b/node_modules/moment/src/locale/ml.js @@ -31,6 +31,7 @@ export default moment.defineLocale('ml', { future : '%s കഴിഞ്ഞ്', past : '%s മുൻപ്', s : 'അൽപ നിമിഷങ്ങൾ', + ss : '%d സെക്കൻഡ്', m : 'ഒരു മിനിറ്റ്', mm : '%d മിനിറ്റ്', h : 'ഒരു മണിക്കൂർ', diff --git a/node_modules/moment/src/locale/mr.js b/node_modules/moment/src/locale/mr.js index 08cc3e02b..415644ad3 100644 --- a/node_modules/moment/src/locale/mr.js +++ b/node_modules/moment/src/locale/mr.js @@ -36,6 +36,7 @@ function relativeTimeMr(number, withoutSuffix, string, isFuture) if (withoutSuffix) { switch (string) { case 's': output = 'काही सेकंद'; break; + case 'ss': output = '%d सेकंद'; break; case 'm': output = 'एक मिनिट'; break; case 'mm': output = '%d मिनिटे'; break; case 'h': output = 'एक तास'; break; @@ -51,6 +52,7 @@ function relativeTimeMr(number, withoutSuffix, string, isFuture) else { switch (string) { case 's': output = 'काही सेकंदां'; break; + case 'ss': output = '%d सेकंदां'; break; case 'm': output = 'एका मिनिटा'; break; case 'mm': output = '%d मिनिटां'; break; case 'h': output = 'एका तासा'; break; @@ -93,6 +95,7 @@ export default moment.defineLocale('mr', { future: '%sमध्ये', past: '%sपूर्वी', s: relativeTimeMr, + ss: relativeTimeMr, m: relativeTimeMr, mm: relativeTimeMr, h: relativeTimeMr, diff --git a/node_modules/moment/src/locale/ms-my.js b/node_modules/moment/src/locale/ms-my.js index f5ea96f46..03fcaa9fa 100644 --- a/node_modules/moment/src/locale/ms-my.js +++ b/node_modules/moment/src/locale/ms-my.js @@ -55,6 +55,7 @@ export default moment.defineLocale('ms-my', { future : 'dalam %s', past : '%s yang lepas', s : 'beberapa saat', + ss : '%d saat', m : 'seminit', mm : '%d minit', h : 'sejam', diff --git a/node_modules/moment/src/locale/ms.js b/node_modules/moment/src/locale/ms.js index 44c3e3730..9f691472e 100644 --- a/node_modules/moment/src/locale/ms.js +++ b/node_modules/moment/src/locale/ms.js @@ -54,6 +54,7 @@ export default moment.defineLocale('ms', { future : 'dalam %s', past : '%s yang lepas', s : 'beberapa saat', + ss : '%d saat', m : 'seminit', mm : '%d minit', h : 'sejam', diff --git a/node_modules/moment/src/locale/my.js b/node_modules/moment/src/locale/my.js index 401d06e91..7e98f7f66 100644 --- a/node_modules/moment/src/locale/my.js +++ b/node_modules/moment/src/locale/my.js @@ -57,6 +57,7 @@ export default moment.defineLocale('my', { future: 'လာမည့် %s မှာ', past: 'လွန်ခဲ့သော %s က', s: 'စက္ကန်.အနည်းငယ်', + ss : '%d စက္ကန့်', m: 'တစ်မိနစ်', mm: '%d မိနစ်', h: 'တစ်နာရီ', diff --git a/node_modules/moment/src/locale/nb.js b/node_modules/moment/src/locale/nb.js index d528accec..27bb88e8c 100644 --- a/node_modules/moment/src/locale/nb.js +++ b/node_modules/moment/src/locale/nb.js @@ -33,6 +33,7 @@ export default moment.defineLocale('nb', { future : 'om %s', past : '%s siden', s : 'noen sekunder', + ss : '%d sekunder', m : 'ett minutt', mm : '%d minutter', h : 'en time', diff --git a/node_modules/moment/src/locale/ne.js b/node_modules/moment/src/locale/ne.js index a82cb95b3..841198d14 100644 --- a/node_modules/moment/src/locale/ne.js +++ b/node_modules/moment/src/locale/ne.js @@ -95,6 +95,7 @@ export default moment.defineLocale('ne', { future : '%sमा', past : '%s अगाडि', s : 'केही क्षण', + ss : '%d सेकेण्ड', m : 'एक मिनेट', mm : '%d मिनेट', h : 'एक घण्टा', diff --git a/node_modules/moment/src/locale/nl-be.js b/node_modules/moment/src/locale/nl-be.js index 801134a1c..d7a8d5429 100644 --- a/node_modules/moment/src/locale/nl-be.js +++ b/node_modules/moment/src/locale/nl-be.js @@ -56,6 +56,7 @@ export default moment.defineLocale('nl-be', { future : 'over %s', past : '%s geleden', s : 'een paar seconden', + ss : '%d seconden', m : 'één minuut', mm : '%d minuten', h : 'één uur', diff --git a/node_modules/moment/src/locale/nl.js b/node_modules/moment/src/locale/nl.js index a551d46c0..70c9837f2 100644 --- a/node_modules/moment/src/locale/nl.js +++ b/node_modules/moment/src/locale/nl.js @@ -56,6 +56,7 @@ export default moment.defineLocale('nl', { future : 'over %s', past : '%s geleden', s : 'een paar seconden', + ss : '%d seconden', m : 'één minuut', mm : '%d minuten', h : 'één uur', diff --git a/node_modules/moment/src/locale/nn.js b/node_modules/moment/src/locale/nn.js index 4bdccce5f..ea8ca7b82 100644 --- a/node_modules/moment/src/locale/nn.js +++ b/node_modules/moment/src/locale/nn.js @@ -30,6 +30,7 @@ export default moment.defineLocale('nn', { future : 'om %s', past : '%s sidan', s : 'nokre sekund', + ss : '%d sekund', m : 'eit minutt', mm : '%d minutt', h : 'ein time', diff --git a/node_modules/moment/src/locale/pa-in.js b/node_modules/moment/src/locale/pa-in.js index 78da52165..6b8535094 100644 --- a/node_modules/moment/src/locale/pa-in.js +++ b/node_modules/moment/src/locale/pa-in.js @@ -47,7 +47,7 @@ export default moment.defineLocale('pa-in', { calendar : { sameDay : '[ਅਜ] LT', nextDay : '[ਕਲ] LT', - nextWeek : 'dddd, LT', + nextWeek : '[ਅਗਲਾ] dddd, LT', lastDay : '[ਕਲ] LT', lastWeek : '[ਪਿਛਲੇ] dddd, LT', sameElse : 'L' @@ -56,6 +56,7 @@ export default moment.defineLocale('pa-in', { future : '%s ਵਿੱਚ', past : '%s ਪਿਛਲੇ', s : 'ਕੁਝ ਸਕਿੰਟ', + ss : '%d ਸਕਿੰਟ', m : 'ਇਕ ਮਿੰਟ', mm : '%d ਮਿੰਟ', h : 'ਇੱਕ ਘੰਟਾ', diff --git a/node_modules/moment/src/locale/pl.js b/node_modules/moment/src/locale/pl.js index 505381a9a..4a46277f1 100755..100644 --- a/node_modules/moment/src/locale/pl.js +++ b/node_modules/moment/src/locale/pl.js @@ -12,6 +12,8 @@ function plural(n) { function translate(number, withoutSuffix, key) { var result = number + ' '; switch (key) { + case 'ss': + return result + (plural(number) ? 'sekundy' : 'sekund'); case 'm': return withoutSuffix ? 'minuta' : 'minutę'; case 'mm': @@ -94,6 +96,7 @@ export default moment.defineLocale('pl', { future : 'za %s', past : '%s temu', s : 'kilka sekund', + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/pt-br.js b/node_modules/moment/src/locale/pt-br.js index 9c4c0594a..bcfe245b2 100644 --- a/node_modules/moment/src/locale/pt-br.js +++ b/node_modules/moment/src/locale/pt-br.js @@ -33,7 +33,7 @@ export default moment.defineLocale('pt-br', { }, relativeTime : { future : 'em %s', - past : '%s atrás', + past : 'há %s', s : 'poucos segundos', ss : '%d segundos', m : 'um minuto', diff --git a/node_modules/moment/src/locale/pt.js b/node_modules/moment/src/locale/pt.js index 76470033d..9a63a499d 100644 --- a/node_modules/moment/src/locale/pt.js +++ b/node_modules/moment/src/locale/pt.js @@ -35,6 +35,7 @@ export default moment.defineLocale('pt', { future : 'em %s', past : 'há %s', s : 'segundos', + ss : '%d segundos', m : 'um minuto', mm : '%d minutos', h : 'uma hora', diff --git a/node_modules/moment/src/locale/ro.js b/node_modules/moment/src/locale/ro.js index 444eebad7..af621d510 100644 --- a/node_modules/moment/src/locale/ro.js +++ b/node_modules/moment/src/locale/ro.js @@ -7,6 +7,7 @@ import moment from '../moment'; function relativeTimeWithPlural(number, withoutSuffix, key) { var format = { + 'ss': 'secunde', 'mm': 'minute', 'hh': 'ore', 'dd': 'zile', @@ -47,6 +48,7 @@ export default moment.defineLocale('ro', { future : 'peste %s', past : '%s în urmă', s : 'câteva secunde', + ss : relativeTimeWithPlural, m : 'un minut', mm : relativeTimeWithPlural, h : 'o oră', diff --git a/node_modules/moment/src/locale/ru.js b/node_modules/moment/src/locale/ru.js index 5b92fb0f7..29046afb1 100644 --- a/node_modules/moment/src/locale/ru.js +++ b/node_modules/moment/src/locale/ru.js @@ -12,6 +12,7 @@ function plural(word, num) { } function relativeTimeWithPlural(number, withoutSuffix, key) { var format = { + 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', 'hh': 'час_часа_часов', 'dd': 'день_дня_дней', @@ -63,36 +64,36 @@ export default moment.defineLocale('ru', { // Выражение, которое соотвествует только сокращённым формам monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, longDateFormat : { - LT : 'HH:mm', - LTS : 'HH:mm:ss', + LT : 'H:mm', + LTS : 'H:mm:ss', L : 'DD.MM.YYYY', LL : 'D MMMM YYYY г.', - LLL : 'D MMMM YYYY г., HH:mm', - LLLL : 'dddd, D MMMM YYYY г., HH:mm' + LLL : 'D MMMM YYYY г., H:mm', + LLLL : 'dddd, D MMMM YYYY г., H:mm' }, calendar : { - sameDay: '[Сегодня в] LT', - nextDay: '[Завтра в] LT', - lastDay: '[Вчера в] LT', + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', nextWeek: function (now) { if (now.week() !== this.week()) { switch (this.day()) { case 0: - return '[В следующее] dddd [в] LT'; + return '[В следующее] dddd, [в] LT'; case 1: case 2: case 4: - return '[В следующий] dddd [в] LT'; + return '[В следующий] dddd, [в] LT'; case 3: case 5: case 6: - return '[В следующую] dddd [в] LT'; + return '[В следующую] dddd, [в] LT'; } } else { if (this.day() === 2) { - return '[Во] dddd [в] LT'; + return '[Во] dddd, [в] LT'; } else { - return '[В] dddd [в] LT'; + return '[В] dddd, [в] LT'; } } }, @@ -100,21 +101,21 @@ export default moment.defineLocale('ru', { if (now.week() !== this.week()) { switch (this.day()) { case 0: - return '[В прошлое] dddd [в] LT'; + return '[В прошлое] dddd, [в] LT'; case 1: case 2: case 4: - return '[В прошлый] dddd [в] LT'; + return '[В прошлый] dddd, [в] LT'; case 3: case 5: case 6: - return '[В прошлую] dddd [в] LT'; + return '[В прошлую] dddd, [в] LT'; } } else { if (this.day() === 2) { - return '[Во] dddd [в] LT'; + return '[Во] dddd, [в] LT'; } else { - return '[В] dddd [в] LT'; + return '[В] dddd, [в] LT'; } } }, @@ -124,6 +125,7 @@ export default moment.defineLocale('ru', { future : 'через %s', past : '%s назад', s : 'несколько секунд', + ss : relativeTimeWithPlural, m : relativeTimeWithPlural, mm : relativeTimeWithPlural, h : 'час', diff --git a/node_modules/moment/src/locale/sd.js b/node_modules/moment/src/locale/sd.js index 184c9e747..9747ad499 100644 --- a/node_modules/moment/src/locale/sd.js +++ b/node_modules/moment/src/locale/sd.js @@ -64,6 +64,7 @@ export default moment.defineLocale('sd', { future : '%s پوء', past : '%s اڳ', s : 'چند سيڪنڊ', + ss : '%d سيڪنڊ', m : 'هڪ منٽ', mm : '%d منٽ', h : 'هڪ ڪلاڪ', diff --git a/node_modules/moment/src/locale/se.js b/node_modules/moment/src/locale/se.js index a46a75852..dd10cdaf3 100644 --- a/node_modules/moment/src/locale/se.js +++ b/node_modules/moment/src/locale/se.js @@ -31,6 +31,7 @@ export default moment.defineLocale('se', { future : '%s geažes', past : 'maŋit %s', s : 'moadde sekunddat', + ss: '%d sekunddat', m : 'okta minuhta', mm : '%d minuhtat', h : 'okta diimmu', diff --git a/node_modules/moment/src/locale/si.js b/node_modules/moment/src/locale/si.js index 71bdf349f..ed3caf3d6 100644 --- a/node_modules/moment/src/locale/si.js +++ b/node_modules/moment/src/locale/si.js @@ -32,6 +32,7 @@ export default moment.defineLocale('si', { future : '%sකින්', past : '%sකට පෙර', s : 'තත්පර කිහිපය', + ss : 'තත්පර %d', m : 'මිනිත්තුව', mm : 'මිනිත්තු %d', h : 'පැය', diff --git a/node_modules/moment/src/locale/sk.js b/node_modules/moment/src/locale/sk.js index 0c0f5bf14..3cd3ee15a 100644 --- a/node_modules/moment/src/locale/sk.js +++ b/node_modules/moment/src/locale/sk.js @@ -15,6 +15,13 @@ function translate(number, withoutSuffix, key, isFuture) { switch (key) { case 's': // a few seconds / in a few seconds / a few seconds ago return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; + case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago + if (withoutSuffix || isFuture) { + return result + (plural(number) ? 'sekundy' : 'sekúnd'); + } else { + return result + 'sekundami'; + } + break; case 'm': // a minute / in a minute / a minute ago return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago @@ -120,6 +127,7 @@ export default moment.defineLocale('sk', { future : 'za %s', past : 'pred %s', s : translate, + ss : translate, m : translate, mm : translate, h : translate, diff --git a/node_modules/moment/src/locale/sl.js b/node_modules/moment/src/locale/sl.js index 41c11e853..b37b7ed2c 100644 --- a/node_modules/moment/src/locale/sl.js +++ b/node_modules/moment/src/locale/sl.js @@ -9,6 +9,17 @@ function processRelativeTime(number, withoutSuffix, key, isFuture) { switch (key) { case 's': return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; + case 'ss': + if (number === 1) { + result += withoutSuffix ? 'sekundo' : 'sekundi'; + } else if (number === 2) { + result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; + } else if (number < 5) { + result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; + } else { + result += withoutSuffix || isFuture ? 'sekund' : 'sekund'; + } + return result; case 'm': return withoutSuffix ? 'ena minuta' : 'eno minuto'; case 'mm': @@ -132,6 +143,7 @@ export default moment.defineLocale('sl', { future : 'čez %s', past : 'pred %s', s : processRelativeTime, + ss : processRelativeTime, m : processRelativeTime, mm : processRelativeTime, h : processRelativeTime, diff --git a/node_modules/moment/src/locale/sq.js b/node_modules/moment/src/locale/sq.js index b47752a65..1280db7f6 100644 --- a/node_modules/moment/src/locale/sq.js +++ b/node_modules/moment/src/locale/sq.js @@ -40,6 +40,7 @@ export default moment.defineLocale('sq', { future : 'në %s', past : '%s më parë', s : 'disa sekonda', + ss : '%d sekonda', m : 'një minutë', mm : '%d minuta', h : 'një orë', diff --git a/node_modules/moment/src/locale/sr-cyrl.js b/node_modules/moment/src/locale/sr-cyrl.js index 69cdb6b38..fc10aee7e 100644 --- a/node_modules/moment/src/locale/sr-cyrl.js +++ b/node_modules/moment/src/locale/sr-cyrl.js @@ -6,6 +6,7 @@ import moment from '../moment'; var translator = { words: { //Different grammatical cases + ss: ['секунда', 'секунде', 'секунди'], m: ['један минут', 'једне минуте'], mm: ['минут', 'минуте', 'минута'], h: ['један сат', 'једног сата'], @@ -80,6 +81,7 @@ export default moment.defineLocale('sr-cyrl', { future : 'за %s', past : 'пре %s', s : 'неколико секунди', + ss : translator.translate, m : translator.translate, mm : translator.translate, h : translator.translate, diff --git a/node_modules/moment/src/locale/sr.js b/node_modules/moment/src/locale/sr.js index 5634879cb..2118262d6 100644 --- a/node_modules/moment/src/locale/sr.js +++ b/node_modules/moment/src/locale/sr.js @@ -6,6 +6,7 @@ import moment from '../moment'; var translator = { words: { //Different grammatical cases + ss: ['sekunda', 'sekunde', 'sekundi'], m: ['jedan minut', 'jedne minute'], mm: ['minut', 'minute', 'minuta'], h: ['jedan sat', 'jednog sata'], @@ -80,6 +81,7 @@ export default moment.defineLocale('sr', { future : 'za %s', past : 'pre %s', s : 'nekoliko sekundi', + ss : translator.translate, m : translator.translate, mm : translator.translate, h : translator.translate, diff --git a/node_modules/moment/src/locale/ss.js b/node_modules/moment/src/locale/ss.js index 0d472bfd6..7cc5f24a7 100644 --- a/node_modules/moment/src/locale/ss.js +++ b/node_modules/moment/src/locale/ss.js @@ -32,6 +32,7 @@ export default moment.defineLocale('ss', { future : 'nga %s', past : 'wenteka nga %s', s : 'emizuzwana lomcane', + ss : '%d mzuzwana', m : 'umzuzu', mm : '%d emizuzu', h : 'lihora', diff --git a/node_modules/moment/src/locale/sv.js b/node_modules/moment/src/locale/sv.js index 7f3061398..8afce35aa 100644 --- a/node_modules/moment/src/locale/sv.js +++ b/node_modules/moment/src/locale/sv.js @@ -32,6 +32,7 @@ export default moment.defineLocale('sv', { future : 'om %s', past : 'för %s sedan', s : 'några sekunder', + ss : '%d sekunder', m : 'en minut', mm : '%d minuter', h : 'en timme', diff --git a/node_modules/moment/src/locale/sw.js b/node_modules/moment/src/locale/sw.js index a36d9dd2a..833de80c7 100644 --- a/node_modules/moment/src/locale/sw.js +++ b/node_modules/moment/src/locale/sw.js @@ -31,6 +31,7 @@ export default moment.defineLocale('sw', { future : '%s baadaye', past : 'tokea %s', s : 'hivi punde', + ss : 'sekunde %d', m : 'dakika moja', mm : 'dakika %d', h : 'saa limoja', diff --git a/node_modules/moment/src/locale/ta.js b/node_modules/moment/src/locale/ta.js index ae418327e..9969cb5c5 100644 --- a/node_modules/moment/src/locale/ta.js +++ b/node_modules/moment/src/locale/ta.js @@ -54,6 +54,7 @@ export default moment.defineLocale('ta', { future : '%s இல்', past : '%s முன்', s : 'ஒரு சில விநாடிகள்', + ss : '%d விநாடிகள்', m : 'ஒரு நிமிடம்', mm : '%d நிமிடங்கள்', h : 'ஒரு மணி நேரம்', diff --git a/node_modules/moment/src/locale/te.js b/node_modules/moment/src/locale/te.js index d8bba8608..8fd276744 100644 --- a/node_modules/moment/src/locale/te.js +++ b/node_modules/moment/src/locale/te.js @@ -31,6 +31,7 @@ export default moment.defineLocale('te', { future : '%s లో', past : '%s క్రితం', s : 'కొన్ని క్షణాలు', + ss : '%d సెకన్లు', m : 'ఒక నిమిషం', mm : '%d నిమిషాలు', h : 'ఒక గంట', diff --git a/node_modules/moment/src/locale/tet.js b/node_modules/moment/src/locale/tet.js index 117f7dd35..a4e9e196f 100644 --- a/node_modules/moment/src/locale/tet.js +++ b/node_modules/moment/src/locale/tet.js @@ -2,15 +2,16 @@ //! locale : Tetun Dili (East Timor) [tet] //! author : Joshua Brooks : https://github.com/joshbrooks //! author : Onorio De J. Afonso : https://github.com/marobo +//! author : Sonia Simoes : https://github.com/soniasimoes import moment from '../moment'; export default moment.defineLocale('tet', { - months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), - monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'), - weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'), - weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'), - weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'), + months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'), + monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), + weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), + weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), + weekdaysMin : 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', @@ -31,10 +32,11 @@ export default moment.defineLocale('tet', { future : 'iha %s', past : '%s liuba', s : 'minutu balun', + ss : 'minutu %d', m : 'minutu ida', - mm : 'minutus %d', - h : 'horas ida', - hh : 'horas %d', + mm : 'minutu %d', + h : 'oras ida', + hh : 'oras %d', d : 'loron ida', dd : 'loron %d', M : 'fulan ida', diff --git a/node_modules/moment/src/locale/th.js b/node_modules/moment/src/locale/th.js index 2aa38dfcc..9f8771fec 100644 --- a/node_modules/moment/src/locale/th.js +++ b/node_modules/moment/src/locale/th.js @@ -43,6 +43,7 @@ export default moment.defineLocale('th', { future : 'อีก %s', past : '%sที่แล้ว', s : 'ไม่กี่วินาที', + ss : '%d วินาที', m : '1 นาที', mm : '%d นาที', h : '1 ชั่วโมง', diff --git a/node_modules/moment/src/locale/tl-ph.js b/node_modules/moment/src/locale/tl-ph.js index c1bf183fc..26c482496 100644 --- a/node_modules/moment/src/locale/tl-ph.js +++ b/node_modules/moment/src/locale/tl-ph.js @@ -30,6 +30,7 @@ export default moment.defineLocale('tl-ph', { future : 'sa loob ng %s', past : '%s ang nakalipas', s : 'ilang segundo', + ss : '%d segundo', m : 'isang minuto', mm : '%d minuto', h : 'isang oras', diff --git a/node_modules/moment/src/locale/tlh.js b/node_modules/moment/src/locale/tlh.js index 857d9a716..324edc675 100644 --- a/node_modules/moment/src/locale/tlh.js +++ b/node_modules/moment/src/locale/tlh.js @@ -33,6 +33,8 @@ function translatePast(output) { function translate(number, withoutSuffix, string, isFuture) { var numberNoun = numberAsNoun(number); switch (string) { + case 'ss': + return numberNoun + ' lup'; case 'mm': return numberNoun + ' tup'; case 'hh': @@ -90,6 +92,7 @@ export default moment.defineLocale('tlh', { future : translateFuture, past : translatePast, s : 'puS lup', + ss : translate, m : 'wa’ tup', mm : translate, h : 'wa’ rep', diff --git a/node_modules/moment/src/locale/tr.js b/node_modules/moment/src/locale/tr.js index 7a0d5441b..b5e8ad79c 100644 --- a/node_modules/moment/src/locale/tr.js +++ b/node_modules/moment/src/locale/tr.js @@ -1,3 +1,4 @@ + //! moment.js locale configuration //! locale : Turkish [tr] //! authors : Erhan Gundogan : https://github.com/erhangundogan, @@ -52,6 +53,7 @@ export default moment.defineLocale('tr', { future : '%s sonra', past : '%s önce', s : 'birkaç saniye', + ss : '%d saniye', m : 'bir dakika', mm : '%d dakika', h : 'bir saat', @@ -63,15 +65,22 @@ export default moment.defineLocale('tr', { y : 'bir yıl', yy : '%d yıl' }, - dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, - ordinal : function (number) { - if (number === 0) { // special case for zero - return number + '\'ıncı'; + ordinal: function (number, period) { + switch (period) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return number; + default: + if (number === 0) { // special case for zero + return number + '\'ıncı'; + } + var a = number % 10, + b = number % 100 - a, + c = number >= 100 ? 100 : null; + return number + (suffixes[a] || suffixes[b] || suffixes[c]); } - var a = number % 10, - b = number % 100 - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); }, week : { dow : 1, // Monday is the first day of the week. diff --git a/node_modules/moment/src/locale/tzl.js b/node_modules/moment/src/locale/tzl.js index c86fb697c..2a5945807 100644 --- a/node_modules/moment/src/locale/tzl.js +++ b/node_modules/moment/src/locale/tzl.js @@ -44,6 +44,7 @@ export default moment.defineLocale('tzl', { future : 'osprei %s', past : 'ja%s', s : processRelativeTime, + ss : processRelativeTime, m : processRelativeTime, mm : processRelativeTime, h : processRelativeTime, @@ -66,6 +67,7 @@ export default moment.defineLocale('tzl', { function processRelativeTime(number, withoutSuffix, key, isFuture) { var format = { 's': ['viensas secunds', '\'iensas secunds'], + 'ss': [number + ' secunds', '' + number + ' secunds'], 'm': ['\'n míut', '\'iens míut'], 'mm': [number + ' míuts', '' + number + ' míuts'], 'h': ['\'n þora', '\'iensa þora'], diff --git a/node_modules/moment/src/locale/tzm-latn.js b/node_modules/moment/src/locale/tzm-latn.js index aaf62d70c..23d2efaa3 100644 --- a/node_modules/moment/src/locale/tzm-latn.js +++ b/node_modules/moment/src/locale/tzm-latn.js @@ -30,6 +30,7 @@ export default moment.defineLocale('tzm-latn', { future : 'dadkh s yan %s', past : 'yan %s', s : 'imik', + ss : '%d imik', m : 'minuḍ', mm : '%d minuḍ', h : 'saɛa', diff --git a/node_modules/moment/src/locale/tzm.js b/node_modules/moment/src/locale/tzm.js index 663f85f4c..04c1954bf 100644 --- a/node_modules/moment/src/locale/tzm.js +++ b/node_modules/moment/src/locale/tzm.js @@ -30,6 +30,7 @@ export default moment.defineLocale('tzm', { future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', past : 'ⵢⴰⵏ %s', s : 'ⵉⵎⵉⴽ', + ss : '%d ⵉⵎⵉⴽ', m : 'ⵎⵉⵏⵓⴺ', mm : '%d ⵎⵉⵏⵓⴺ', h : 'ⵙⴰⵄⴰ', diff --git a/node_modules/moment/src/locale/uk.js b/node_modules/moment/src/locale/uk.js index 8c6525433..889e017ac 100644 --- a/node_modules/moment/src/locale/uk.js +++ b/node_modules/moment/src/locale/uk.js @@ -11,6 +11,7 @@ function plural(word, num) { } function relativeTimeWithPlural(number, withoutSuffix, key) { var format = { + 'ss': withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин', 'dd': 'день_дні_днів', @@ -92,6 +93,7 @@ export default moment.defineLocale('uk', { future : 'за %s', past : '%s тому', s : 'декілька секунд', + ss : relativeTimeWithPlural, m : relativeTimeWithPlural, mm : relativeTimeWithPlural, h : 'годину', diff --git a/node_modules/moment/src/locale/ur.js b/node_modules/moment/src/locale/ur.js index ecf1690f9..56f181843 100644 --- a/node_modules/moment/src/locale/ur.js +++ b/node_modules/moment/src/locale/ur.js @@ -65,6 +65,7 @@ export default moment.defineLocale('ur', { future : '%s بعد', past : '%s قبل', s : 'چند سیکنڈ', + ss : '%d سیکنڈ', m : 'ایک منٹ', mm : '%d منٹ', h : 'ایک گھنٹہ', diff --git a/node_modules/moment/src/locale/uz-latn.js b/node_modules/moment/src/locale/uz-latn.js index a057a3e71..2ba7ea67b 100644 --- a/node_modules/moment/src/locale/uz-latn.js +++ b/node_modules/moment/src/locale/uz-latn.js @@ -30,6 +30,7 @@ export default moment.defineLocale('uz-latn', { future : 'Yaqin %s ichida', past : 'Bir necha %s oldin', s : 'soniya', + ss : '%d soniya', m : 'bir daqiqa', mm : '%d daqiqa', h : 'bir soat', diff --git a/node_modules/moment/src/locale/uz.js b/node_modules/moment/src/locale/uz.js index 24a80e190..ff0f7ca2c 100644 --- a/node_modules/moment/src/locale/uz.js +++ b/node_modules/moment/src/locale/uz.js @@ -30,6 +30,7 @@ export default moment.defineLocale('uz', { future : 'Якин %s ичида', past : 'Бир неча %s олдин', s : 'фурсат', + ss : '%d фурсат', m : 'бир дакика', mm : '%d дакика', h : 'бир соат', diff --git a/node_modules/moment/src/locale/vi.js b/node_modules/moment/src/locale/vi.js index 28c2d5609..ad7f4b08e 100644 --- a/node_modules/moment/src/locale/vi.js +++ b/node_modules/moment/src/locale/vi.js @@ -47,6 +47,7 @@ export default moment.defineLocale('vi', { future : '%s tới', past : '%s trước', s : 'vài giây', + ss : '%d giây' , m : 'một phút', mm : '%d phút', h : 'một giờ', diff --git a/node_modules/moment/src/locale/x-pseudo.js b/node_modules/moment/src/locale/x-pseudo.js index fba51128b..c50320d63 100644 --- a/node_modules/moment/src/locale/x-pseudo.js +++ b/node_modules/moment/src/locale/x-pseudo.js @@ -31,6 +31,7 @@ export default moment.defineLocale('x-pseudo', { future : 'í~ñ %s', past : '%s á~gó', s : 'á ~féw ~sécó~ñds', + ss : '%d s~écóñ~ds', m : 'á ~míñ~úté', mm : '%d m~íñú~tés', h : 'á~ñ hó~úr', diff --git a/node_modules/moment/src/locale/yo.js b/node_modules/moment/src/locale/yo.js index 26f3aa94d..dcd6cd24a 100644 --- a/node_modules/moment/src/locale/yo.js +++ b/node_modules/moment/src/locale/yo.js @@ -30,6 +30,7 @@ export default moment.defineLocale('yo', { future : 'ní %s', past : '%s kọjá', s : 'ìsẹjú aayá die', + ss :'aayá %d', m : 'ìsẹjú kan', mm : 'ìsẹjú %d', h : 'wákati kan', diff --git a/node_modules/moment/src/locale/zh-cn.js b/node_modules/moment/src/locale/zh-cn.js index 662f3047c..d9e6e7e2a 100644 --- a/node_modules/moment/src/locale/zh-cn.js +++ b/node_modules/moment/src/locale/zh-cn.js @@ -14,14 +14,14 @@ export default moment.defineLocale('zh-cn', { longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日Ah点mm分', - LLLL : 'YYYY年MMMD日ddddAh点mm分', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' + L : 'YYYY/MM/DD', + LL : 'YYYY年M月D日', + LLL : 'YYYY年M月D日Ah点mm分', + LLLL : 'YYYY年M月D日ddddAh点mm分', + l : 'YYYY/M/D', + ll : 'YYYY年M月D日', + lll : 'YYYY年M月D日 HH:mm', + llll : 'YYYY年M月D日dddd HH:mm' }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour: function (hour, meridiem) { @@ -82,6 +82,7 @@ export default moment.defineLocale('zh-cn', { future : '%s内', past : '%s前', s : '几秒', + ss : '%d 秒', m : '1 分钟', mm : '%d 分钟', h : '1 小时', @@ -99,4 +100,3 @@ export default moment.defineLocale('zh-cn', { doy : 4 // The week that contains Jan 4th is the first week of the year. } }); - diff --git a/node_modules/moment/src/locale/zh-hk.js b/node_modules/moment/src/locale/zh-hk.js index 73430a469..99435414e 100644 --- a/node_modules/moment/src/locale/zh-hk.js +++ b/node_modules/moment/src/locale/zh-hk.js @@ -15,14 +15,14 @@ export default moment.defineLocale('zh-hk', { longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日 HH:mm', - LLLL : 'YYYY年MMMD日dddd HH:mm', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' + L : 'YYYY/MM/DD', + LL : 'YYYY年M月D日', + LLL : 'YYYY年M月D日 HH:mm', + LLLL : 'YYYY年M月D日dddd HH:mm', + l : 'YYYY/M/D', + ll : 'YYYY年M月D日', + lll : 'YYYY年M月D日 HH:mm', + llll : 'YYYY年M月D日dddd HH:mm' }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour : function (hour, meridiem) { @@ -81,6 +81,7 @@ export default moment.defineLocale('zh-hk', { future : '%s內', past : '%s前', s : '幾秒', + ss : '%d 秒', m : '1 分鐘', mm : '%d 分鐘', h : '1 小時', diff --git a/node_modules/moment/src/locale/zh-tw.js b/node_modules/moment/src/locale/zh-tw.js index 6bb6a7c0f..5ad0d9ca0 100644 --- a/node_modules/moment/src/locale/zh-tw.js +++ b/node_modules/moment/src/locale/zh-tw.js @@ -14,14 +14,14 @@ export default moment.defineLocale('zh-tw', { longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', - L : 'YYYY年MMMD日', - LL : 'YYYY年MMMD日', - LLL : 'YYYY年MMMD日 HH:mm', - LLLL : 'YYYY年MMMD日dddd HH:mm', - l : 'YYYY年MMMD日', - ll : 'YYYY年MMMD日', - lll : 'YYYY年MMMD日 HH:mm', - llll : 'YYYY年MMMD日dddd HH:mm' + L : 'YYYY/MM/DD', + LL : 'YYYY年M月D日', + LLL : 'YYYY年M月D日 HH:mm', + LLLL : 'YYYY年M月D日dddd HH:mm', + l : 'YYYY/M/D', + ll : 'YYYY年M月D日', + lll : 'YYYY年M月D日 HH:mm', + llll : 'YYYY年M月D日dddd HH:mm' }, meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, meridiemHour : function (hour, meridiem) { @@ -53,11 +53,11 @@ export default moment.defineLocale('zh-tw', { } }, calendar : { - sameDay : '[今天]LT', - nextDay : '[明天]LT', - nextWeek : '[下]ddddLT', - lastDay : '[昨天]LT', - lastWeek : '[上]ddddLT', + sameDay : '[今天] LT', + nextDay : '[明天] LT', + nextWeek : '[下]dddd LT', + lastDay : '[昨天] LT', + lastWeek : '[上]dddd LT', sameElse : 'L' }, dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, @@ -80,6 +80,7 @@ export default moment.defineLocale('zh-tw', { future : '%s內', past : '%s前', s : '幾秒', + ss : '%d 秒', m : '1 分鐘', mm : '%d 分鐘', h : '1 小時', diff --git a/node_modules/moment/src/moment.js b/node_modules/moment/src/moment.js index 2b78152f0..9516d285d 100644 --- a/node_modules/moment/src/moment.js +++ b/node_modules/moment/src/moment.js @@ -1,12 +1,12 @@ //! moment.js -//! version : 2.19.3 +//! version : 2.22.2 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com import { hooks as moment, setHookCallback } from './lib/utils/hooks'; -moment.version = '2.19.3'; +moment.version = '2.22.2'; import { min, @@ -79,4 +79,17 @@ moment.relativeTimeThreshold = relativeTimeThreshold; moment.calendarFormat = getCalendarFormat; moment.prototype = fn; +// currently HTML5 input type only supports 24-hour formats +moment.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" /> + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" /> + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" /> + DATE: 'YYYY-MM-DD', // <input type="date" /> + 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" /> + MONTH: 'YYYY-MM' // <input type="month" /> +}; + export default moment; |