Skip to content

Problem with Japanese, Russian and Ukrainian locales #1325

Open
@Roli4711

Description

@Roli4711

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()];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions