Description
I have problems with this 3 locales. If I delete this parts it works. With this I have problems. What is to do?
For example with Japanese (line which makes the error is marked with ====> <====):
}
},
sameElse: 'L'
},
====> dayOfMonthOrdinalParse: /\d{1,2}日/, <====
ordinal: function (number, period) {
switch (period) {
Russian:
return number + ' ' + plural(format[key], +number);
}
}
====> var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; // http://new.gramota.ru/spravka/rules/139-prop : § 103 <=====
// Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
// CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
var ru = moment.defineLocale('ru', {
Ukrainian
if (!m) {
return weekdays['nominative'];
}
===> nounCase = /([[ВвУу]]) ?dddd/.test(format) ? 'accusative' : /[?(?:минулої|наступної)? ?] ?dddd/.test(format) ? 'genitive' : 'nominative'; <====
return weekdays[nounCase][m.day()];