aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/be
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-28 17:26:46 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-28 17:43:56 -0700
commite4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch)
tree06284a538a6008eca75051399e47db4e5d50301c /node_modules/date-fns/locale/be
initial commit: scaffolding
Diffstat (limited to 'node_modules/date-fns/locale/be')
-rw-r--r--node_modules/date-fns/locale/be/_lib/formatDistance/index.js253
-rw-r--r--node_modules/date-fns/locale/be/_lib/formatLong/index.js40
-rw-r--r--node_modules/date-fns/locale/be/_lib/formatRelative/index.js78
-rw-r--r--node_modules/date-fns/locale/be/_lib/localize/index.js157
-rw-r--r--node_modules/date-fns/locale/be/_lib/match/index.js108
-rw-r--r--node_modules/date-fns/locale/be/index.d.ts4
-rw-r--r--node_modules/date-fns/locale/be/index.js36
-rw-r--r--node_modules/date-fns/locale/be/index.js.flow35
-rw-r--r--node_modules/date-fns/locale/be/package.json5
9 files changed, 716 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance/index.js b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js
new file mode 100644
index 0000000..06f948f
--- /dev/null
+++ b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js
@@ -0,0 +1,253 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+function declension(scheme, count) {
+ // scheme for count=1 exists
+ if (scheme.one !== undefined && count === 1) {
+ return scheme.one;
+ }
+ var rem10 = count % 10;
+ var rem100 = count % 100;
+
+ // 1, 21, 31, ...
+ if (rem10 === 1 && rem100 !== 11) {
+ return scheme.singularNominative.replace('{{count}}', String(count));
+
+ // 2, 3, 4, 22, 23, 24, 32 ...
+ } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
+ return scheme.singularGenitive.replace('{{count}}', String(count));
+
+ // 5, 6, 7, 8, 9, 10, 11, ...
+ } else {
+ return scheme.pluralGenitive.replace('{{count}}', String(count));
+ }
+}
+function buildLocalizeTokenFn(scheme) {
+ return function (count, options) {
+ if (options && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ if (scheme.future) {
+ return declension(scheme.future, count);
+ } else {
+ return 'праз ' + declension(scheme.regular, count);
+ }
+ } else {
+ if (scheme.past) {
+ return declension(scheme.past, count);
+ } else {
+ return declension(scheme.regular, count) + ' таму';
+ }
+ }
+ } else {
+ return declension(scheme.regular, count);
+ }
+ };
+}
+var halfAMinute = function halfAMinute(_, options) {
+ if (options && options.addSuffix) {
+ if (options.comparison && options.comparison > 0) {
+ return 'праз паўхвіліны';
+ } else {
+ return 'паўхвіліны таму';
+ }
+ }
+ return 'паўхвіліны';
+};
+var formatDistanceLocale = {
+ lessThanXSeconds: buildLocalizeTokenFn({
+ regular: {
+ one: 'менш за секунду',
+ singularNominative: 'менш за {{count}} секунду',
+ singularGenitive: 'менш за {{count}} секунды',
+ pluralGenitive: 'менш за {{count}} секунд'
+ },
+ future: {
+ one: 'менш, чым праз секунду',
+ singularNominative: 'менш, чым праз {{count}} секунду',
+ singularGenitive: 'менш, чым праз {{count}} секунды',
+ pluralGenitive: 'менш, чым праз {{count}} секунд'
+ }
+ }),
+ xSeconds: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} секунда',
+ singularGenitive: '{{count}} секунды',
+ pluralGenitive: '{{count}} секунд'
+ },
+ past: {
+ singularNominative: '{{count}} секунду таму',
+ singularGenitive: '{{count}} секунды таму',
+ pluralGenitive: '{{count}} секунд таму'
+ },
+ future: {
+ singularNominative: 'праз {{count}} секунду',
+ singularGenitive: 'праз {{count}} секунды',
+ pluralGenitive: 'праз {{count}} секунд'
+ }
+ }),
+ halfAMinute: halfAMinute,
+ lessThanXMinutes: buildLocalizeTokenFn({
+ regular: {
+ one: 'менш за хвіліну',
+ singularNominative: 'менш за {{count}} хвіліну',
+ singularGenitive: 'менш за {{count}} хвіліны',
+ pluralGenitive: 'менш за {{count}} хвілін'
+ },
+ future: {
+ one: 'менш, чым праз хвіліну',
+ singularNominative: 'менш, чым праз {{count}} хвіліну',
+ singularGenitive: 'менш, чым праз {{count}} хвіліны',
+ pluralGenitive: 'менш, чым праз {{count}} хвілін'
+ }
+ }),
+ xMinutes: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} хвіліна',
+ singularGenitive: '{{count}} хвіліны',
+ pluralGenitive: '{{count}} хвілін'
+ },
+ past: {
+ singularNominative: '{{count}} хвіліну таму',
+ singularGenitive: '{{count}} хвіліны таму',
+ pluralGenitive: '{{count}} хвілін таму'
+ },
+ future: {
+ singularNominative: 'праз {{count}} хвіліну',
+ singularGenitive: 'праз {{count}} хвіліны',
+ pluralGenitive: 'праз {{count}} хвілін'
+ }
+ }),
+ aboutXHours: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'каля {{count}} гадзіны',
+ singularGenitive: 'каля {{count}} гадзін',
+ pluralGenitive: 'каля {{count}} гадзін'
+ },
+ future: {
+ singularNominative: 'прыблізна праз {{count}} гадзіну',
+ singularGenitive: 'прыблізна праз {{count}} гадзіны',
+ pluralGenitive: 'прыблізна праз {{count}} гадзін'
+ }
+ }),
+ xHours: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} гадзіна',
+ singularGenitive: '{{count}} гадзіны',
+ pluralGenitive: '{{count}} гадзін'
+ },
+ past: {
+ singularNominative: '{{count}} гадзіну таму',
+ singularGenitive: '{{count}} гадзіны таму',
+ pluralGenitive: '{{count}} гадзін таму'
+ },
+ future: {
+ singularNominative: 'праз {{count}} гадзіну',
+ singularGenitive: 'праз {{count}} гадзіны',
+ pluralGenitive: 'праз {{count}} гадзін'
+ }
+ }),
+ xDays: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} дзень',
+ singularGenitive: '{{count}} дні',
+ pluralGenitive: '{{count}} дзён'
+ }
+ }),
+ aboutXWeeks: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'каля {{count}} месяца',
+ // TODO
+ singularGenitive: 'каля {{count}} месяцаў',
+ // TODO
+ pluralGenitive: 'каля {{count}} месяцаў' // TODO
+ },
+
+ future: {
+ singularNominative: 'прыблізна праз {{count}} месяц',
+ // TODO
+ singularGenitive: 'прыблізна праз {{count}} месяцы',
+ // TODO
+ pluralGenitive: 'прыблізна праз {{count}} месяцаў' // TODO
+ }
+ }),
+
+ xWeeks: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} месяц',
+ singularGenitive: '{{count}} месяцы',
+ pluralGenitive: '{{count}} месяцаў'
+ }
+ }),
+ aboutXMonths: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'каля {{count}} месяца',
+ singularGenitive: 'каля {{count}} месяцаў',
+ pluralGenitive: 'каля {{count}} месяцаў'
+ },
+ future: {
+ singularNominative: 'прыблізна праз {{count}} месяц',
+ singularGenitive: 'прыблізна праз {{count}} месяцы',
+ pluralGenitive: 'прыблізна праз {{count}} месяцаў'
+ }
+ }),
+ xMonths: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} месяц',
+ singularGenitive: '{{count}} месяцы',
+ pluralGenitive: '{{count}} месяцаў'
+ }
+ }),
+ aboutXYears: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'каля {{count}} года',
+ singularGenitive: 'каля {{count}} гадоў',
+ pluralGenitive: 'каля {{count}} гадоў'
+ },
+ future: {
+ singularNominative: 'прыблізна праз {{count}} год',
+ singularGenitive: 'прыблізна праз {{count}} гады',
+ pluralGenitive: 'прыблізна праз {{count}} гадоў'
+ }
+ }),
+ xYears: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: '{{count}} год',
+ singularGenitive: '{{count}} гады',
+ pluralGenitive: '{{count}} гадоў'
+ }
+ }),
+ overXYears: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'больш за {{count}} год',
+ singularGenitive: 'больш за {{count}} гады',
+ pluralGenitive: 'больш за {{count}} гадоў'
+ },
+ future: {
+ singularNominative: 'больш, чым праз {{count}} год',
+ singularGenitive: 'больш, чым праз {{count}} гады',
+ pluralGenitive: 'больш, чым праз {{count}} гадоў'
+ }
+ }),
+ almostXYears: buildLocalizeTokenFn({
+ regular: {
+ singularNominative: 'амаль {{count}} год',
+ singularGenitive: 'амаль {{count}} гады',
+ pluralGenitive: 'амаль {{count}} гадоў'
+ },
+ future: {
+ singularNominative: 'амаль праз {{count}} год',
+ singularGenitive: 'амаль праз {{count}} гады',
+ pluralGenitive: 'амаль праз {{count}} гадоў'
+ }
+ })
+};
+var formatDistance = function formatDistance(token, count, options) {
+ options = options || {};
+ return formatDistanceLocale[token](count, options);
+};
+var _default = formatDistance;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/_lib/formatLong/index.js b/node_modules/date-fns/locale/be/_lib/formatLong/index.js
new file mode 100644
index 0000000..f69309d
--- /dev/null
+++ b/node_modules/date-fns/locale/be/_lib/formatLong/index.js
@@ -0,0 +1,40 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js"));
+var dateFormats = {
+ full: "EEEE, d MMMM y 'г.'",
+ long: "d MMMM y 'г.'",
+ medium: "d MMM y 'г.'",
+ short: 'dd.MM.y'
+};
+var timeFormats = {
+ full: 'H:mm:ss zzzz',
+ long: 'H:mm:ss z',
+ medium: 'H:mm:ss',
+ short: 'H:mm'
+};
+var dateTimeFormats = {
+ any: '{{date}}, {{time}}'
+};
+var formatLong = {
+ date: (0, _index.default)({
+ formats: dateFormats,
+ defaultWidth: 'full'
+ }),
+ time: (0, _index.default)({
+ formats: timeFormats,
+ defaultWidth: 'full'
+ }),
+ dateTime: (0, _index.default)({
+ formats: dateTimeFormats,
+ defaultWidth: 'any'
+ })
+};
+var _default = formatLong;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative/index.js b/node_modules/date-fns/locale/be/_lib/formatRelative/index.js
new file mode 100644
index 0000000..3771d2e
--- /dev/null
+++ b/node_modules/date-fns/locale/be/_lib/formatRelative/index.js
@@ -0,0 +1,78 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = require("../../../../index.js");
+var _index2 = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js"));
+var accusativeWeekdays = ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацвер', 'пятніцу', 'суботу'];
+function lastWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ switch (day) {
+ case 0:
+ case 3:
+ case 5:
+ case 6:
+ return "'у мінулую " + weekday + " а' p";
+ case 1:
+ case 2:
+ case 4:
+ return "'у мінулы " + weekday + " а' p";
+ }
+}
+function thisWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ return "'у " + weekday + " а' p";
+}
+function nextWeek(day) {
+ var weekday = accusativeWeekdays[day];
+ switch (day) {
+ case 0:
+ case 3:
+ case 5:
+ case 6:
+ return "'у наступную " + weekday + " а' p";
+ case 1:
+ case 2:
+ case 4:
+ return "'у наступны " + weekday + " а' p";
+ }
+}
+var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) {
+ var date = (0, _index.toDate)(dirtyDate);
+ var day = date.getUTCDay();
+ if ((0, _index2.default)(date, baseDate, options)) {
+ return thisWeek(day);
+ } else {
+ return lastWeek(day);
+ }
+};
+var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) {
+ var date = (0, _index.toDate)(dirtyDate);
+ var day = date.getUTCDay();
+ if ((0, _index2.default)(date, baseDate, options)) {
+ return thisWeek(day);
+ } else {
+ return nextWeek(day);
+ }
+};
+var formatRelativeLocale = {
+ lastWeek: lastWeekFormat,
+ yesterday: "'учора а' p",
+ today: "'сёння а' p",
+ tomorrow: "'заўтра а' p",
+ nextWeek: nextWeekFormat,
+ other: 'P'
+};
+var formatRelative = function formatRelative(token, date, baseDate, options) {
+ var format = formatRelativeLocale[token];
+ if (typeof format === 'function') {
+ return format(date, baseDate, options);
+ }
+ return format;
+};
+var _default = formatRelative;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/_lib/localize/index.js b/node_modules/date-fns/locale/be/_lib/localize/index.js
new file mode 100644
index 0000000..85f616b
--- /dev/null
+++ b/node_modules/date-fns/locale/be/_lib/localize/index.js
@@ -0,0 +1,157 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js"));
+var eraValues = {
+ narrow: ['да н.э.', 'н.э.'],
+ abbreviated: ['да н. э.', 'н. э.'],
+ wide: ['да нашай эры', 'нашай эры']
+};
+var quarterValues = {
+ narrow: ['1', '2', '3', '4'],
+ abbreviated: ['1-ы кв.', '2-і кв.', '3-і кв.', '4-ы кв.'],
+ wide: ['1-ы квартал', '2-і квартал', '3-і квартал', '4-ы квартал']
+};
+var monthValues = {
+ narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'],
+ abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'май', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'],
+ wide: ['студзень', 'люты', 'сакавік', 'красавік', 'май', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'снежань']
+};
+var formattingMonthValues = {
+ narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'],
+ abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'мая', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'],
+ wide: ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'мая', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'снежня']
+};
+var dayValues = {
+ narrow: ['Н', 'П', 'А', 'С', 'Ч', 'П', 'С'],
+ short: ['нд', 'пн', 'аў', 'ср', 'чц', 'пт', 'сб'],
+ abbreviated: ['нядз', 'пан', 'аўт', 'сер', 'чац', 'пят', 'суб'],
+ wide: ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацвер', 'пятніца', 'субота']
+};
+var dayPeriodValues = {
+ narrow: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўн.',
+ noon: 'поўд.',
+ morning: 'ран.',
+ afternoon: 'дзень',
+ evening: 'веч.',
+ night: 'ноч'
+ },
+ abbreviated: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўн.',
+ noon: 'поўд.',
+ morning: 'ран.',
+ afternoon: 'дзень',
+ evening: 'веч.',
+ night: 'ноч'
+ },
+ wide: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўнач',
+ noon: 'поўдзень',
+ morning: 'раніца',
+ afternoon: 'дзень',
+ evening: 'вечар',
+ night: 'ноч'
+ }
+};
+var formattingDayPeriodValues = {
+ narrow: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўн.',
+ noon: 'поўд.',
+ morning: 'ран.',
+ afternoon: 'дня',
+ evening: 'веч.',
+ night: 'ночы'
+ },
+ abbreviated: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўн.',
+ noon: 'поўд.',
+ morning: 'ран.',
+ afternoon: 'дня',
+ evening: 'веч.',
+ night: 'ночы'
+ },
+ wide: {
+ am: 'ДП',
+ pm: 'ПП',
+ midnight: 'поўнач',
+ noon: 'поўдзень',
+ morning: 'раніцы',
+ afternoon: 'дня',
+ evening: 'вечара',
+ night: 'ночы'
+ }
+};
+var ordinalNumber = function ordinalNumber(dirtyNumber, options) {
+ var unit = String(options === null || options === void 0 ? void 0 : options.unit);
+ var number = Number(dirtyNumber);
+ var suffix;
+
+ /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk)
+ * For date-month combinations should be used `d` formatter.
+ * Correct: `d MMMM` (4 верасня)
+ * Incorrect: `do MMMM` (4-га верасня)
+ *
+ * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month).
+ * So for phrase "5th day of month" (`do дзень месяца`)
+ * library will produce: `5-га дзень месяца`
+ * but correct spelling should be: `5-ы дзень месяца`
+ *
+ * So I guess there should be a stand-alone and a formatting version of "day of month" formatters
+ */
+ if (unit === 'date') {
+ suffix = '-га';
+ } else if (unit === 'hour' || unit === 'minute' || unit === 'second') {
+ suffix = '-я';
+ } else {
+ suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-і' : '-ы';
+ }
+ return number + suffix;
+};
+var localize = {
+ ordinalNumber: ordinalNumber,
+ era: (0, _index.default)({
+ values: eraValues,
+ defaultWidth: 'wide'
+ }),
+ quarter: (0, _index.default)({
+ values: quarterValues,
+ defaultWidth: 'wide',
+ argumentCallback: function argumentCallback(quarter) {
+ return quarter - 1;
+ }
+ }),
+ month: (0, _index.default)({
+ values: monthValues,
+ defaultWidth: 'wide',
+ formattingValues: formattingMonthValues,
+ defaultFormattingWidth: 'wide'
+ }),
+ day: (0, _index.default)({
+ values: dayValues,
+ defaultWidth: 'wide'
+ }),
+ dayPeriod: (0, _index.default)({
+ values: dayPeriodValues,
+ defaultWidth: 'any',
+ formattingValues: formattingDayPeriodValues,
+ defaultFormattingWidth: 'wide'
+ })
+};
+var _default = localize;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/_lib/match/index.js b/node_modules/date-fns/locale/be/_lib/match/index.js
new file mode 100644
index 0000000..e059bd8
--- /dev/null
+++ b/node_modules/date-fns/locale/be/_lib/match/index.js
@@ -0,0 +1,108 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js"));
+var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js"));
+var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i;
+var parseOrdinalNumberPattern = /\d+/i;
+var matchEraPatterns = {
+ narrow: /^((да )?н\.?\s?э\.?)/i,
+ abbreviated: /^((да )?н\.?\s?э\.?)/i,
+ wide: /^(да нашай эры|нашай эры|наша эра)/i
+};
+var parseEraPatterns = {
+ any: [/^д/i, /^н/i]
+};
+var matchQuarterPatterns = {
+ narrow: /^[1234]/i,
+ abbreviated: /^[1234](-?[ыі]?)? кв.?/i,
+ wide: /^[1234](-?[ыі]?)? квартал/i
+};
+var parseQuarterPatterns = {
+ any: [/1/i, /2/i, /3/i, /4/i]
+};
+var matchMonthPatterns = {
+ narrow: /^[слкмчжв]/i,
+ abbreviated: /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,
+ wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i
+};
+var parseMonthPatterns = {
+ narrow: [/^с/i, /^л/i, /^с/i, /^к/i, /^м/i, /^ч/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^с/i],
+ any: [/^ст/i, /^лю/i, /^са/i, /^кр/i, /^ма/i, /^ч/i, /^ліп/i, /^ж/i, /^в/i, /^ка/i, /^ліс/i, /^сн/i]
+};
+var matchDayPatterns = {
+ narrow: /^[нпасч]/i,
+ short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,
+ abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,
+ wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i
+};
+var parseDayPatterns = {
+ narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i],
+ any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
+};
+var matchDayPeriodPatterns = {
+ narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,
+ abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,
+ wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i
+};
+var parseDayPeriodPatterns = {
+ any: {
+ am: /^дп/i,
+ pm: /^пп/i,
+ midnight: /^поўн/i,
+ noon: /^поўд/i,
+ morning: /^р/i,
+ afternoon: /^д[зн]/i,
+ evening: /^в/i,
+ night: /^н/i
+ }
+};
+var match = {
+ ordinalNumber: (0, _index2.default)({
+ matchPattern: matchOrdinalNumberPattern,
+ parsePattern: parseOrdinalNumberPattern,
+ valueCallback: function valueCallback(value) {
+ return parseInt(value, 10);
+ }
+ }),
+ era: (0, _index.default)({
+ matchPatterns: matchEraPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseEraPatterns,
+ defaultParseWidth: 'any'
+ }),
+ quarter: (0, _index.default)({
+ matchPatterns: matchQuarterPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseQuarterPatterns,
+ defaultParseWidth: 'any',
+ valueCallback: function valueCallback(index) {
+ return index + 1;
+ }
+ }),
+ month: (0, _index.default)({
+ matchPatterns: matchMonthPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseMonthPatterns,
+ defaultParseWidth: 'any'
+ }),
+ day: (0, _index.default)({
+ matchPatterns: matchDayPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPatterns,
+ defaultParseWidth: 'any'
+ }),
+ dayPeriod: (0, _index.default)({
+ matchPatterns: matchDayPeriodPatterns,
+ defaultMatchWidth: 'wide',
+ parsePatterns: parseDayPeriodPatterns,
+ defaultParseWidth: 'any'
+ })
+};
+var _default = match;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/index.d.ts b/node_modules/date-fns/locale/be/index.d.ts
new file mode 100644
index 0000000..d3cec40
--- /dev/null
+++ b/node_modules/date-fns/locale/be/index.d.ts
@@ -0,0 +1,4 @@
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+import { be } from 'date-fns/locale'
+export default be
diff --git a/node_modules/date-fns/locale/be/index.js b/node_modules/date-fns/locale/be/index.js
new file mode 100644
index 0000000..63993cc
--- /dev/null
+++ b/node_modules/date-fns/locale/be/index.js
@@ -0,0 +1,36 @@
+"use strict";
+
+var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
+var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
+var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
+var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
+var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
+/**
+ * @type {Locale}
+ * @category Locales
+ * @summary Belarusian locale.
+ * @language Belarusian
+ * @iso-639-2 bel
+ * @author Kiryl Anokhin [@alyrik]{@link https://github.com/alyrik}
+ * @author Martin Wind [@arvigeus]{@link https://github.com/mawi12345}
+ */
+var locale = {
+ code: 'be',
+ formatDistance: _index.default,
+ formatLong: _index2.default,
+ formatRelative: _index3.default,
+ localize: _index4.default,
+ match: _index5.default,
+ options: {
+ weekStartsOn: 1 /* Monday */,
+ firstWeekContainsDate: 1
+ }
+};
+var _default = locale;
+exports.default = _default;
+module.exports = exports.default; \ No newline at end of file
diff --git a/node_modules/date-fns/locale/be/index.js.flow b/node_modules/date-fns/locale/be/index.js.flow
new file mode 100644
index 0000000..b9dfe66
--- /dev/null
+++ b/node_modules/date-fns/locale/be/index.js.flow
@@ -0,0 +1,35 @@
+// @flow
+// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it.
+
+export type Locale = {
+ code?: string,
+ formatDistance?: (...args: Array<any>) => any,
+ formatRelative?: (...args: Array<any>) => any,
+ localize?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ formatLong?: {
+ date: (...args: Array<any>) => any,
+ time: (...args: Array<any>) => any,
+ dateTime: (...args: Array<any>) => any,
+ },
+ match?: {
+ ordinalNumber: (...args: Array<any>) => any,
+ era: (...args: Array<any>) => any,
+ quarter: (...args: Array<any>) => any,
+ month: (...args: Array<any>) => any,
+ day: (...args: Array<any>) => any,
+ dayPeriod: (...args: Array<any>) => any,
+ },
+ options?: {
+ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6,
+ firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7,
+ },
+}
+
+declare module.exports: Locale
diff --git a/node_modules/date-fns/locale/be/package.json b/node_modules/date-fns/locale/be/package.json
new file mode 100644
index 0000000..704b972
--- /dev/null
+++ b/node_modules/date-fns/locale/be/package.json
@@ -0,0 +1,5 @@
+{
+ "sideEffects": false,
+ "module": "../../esm/locale/be/index.js",
+ "typings": "../../typings.d.ts"
+} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage