2024-07-27 15:10:51 +08:00

2 lines
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import dayjs from"../index";var monthFormat="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),monthStandalone="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthShortFormat="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),monthShortStandalone="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function plural(t,_){var o=t.split("_");return _%10==1&&_%100!=11?o[0]:_%10>=2&&_%10<=4&&(_%100<10||_%100>=20)?o[1]:o[2]}function relativeTimeWithPlural(t,_,o){return"m"===o?_?"минута":"минуту":t+" "+plural({mm:_?"минута_минуты_минут":"минуту_минуты_минут",hh:асасаасов",dd:ень_дня_дней",MM:есяц_месяцаесяцев",yy:"год_годает"}[o],+t)}var months=function(t,_){return MONTHS_IN_FORMAT.test(_)?monthFormat[t.month()]:monthStandalone[t.month()]};months.s=monthStandalone,months.f=monthFormat;var monthsShort=function(t,_){return MONTHS_IN_FORMAT.test(_)?monthShortFormat[t.month()]:monthShortStandalone[t.month()]};monthsShort.s=monthShortStandalone,monthsShort.f=monthShortFormat;var locale={name:"ru",weekdays:оскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),weekdaysShort:ск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:с_пн_вт_ср_чт_пт_сб".split("_"),months:months,monthsShort:monthsShort,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"час",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},ordinal:function(t){return t},meridiem:function(t){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"}};dayjs.locale(locale,null,!0);export default locale;
//# sourceMappingURL=ru.js.map