From e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 28 Jun 2025 17:26:46 -0700 Subject: initial commit: scaffolding --- .../locale/uk/_lib/formatDistance/index.js | 237 +++++++++++++++++++++ .../date-fns/locale/uk/_lib/formatLong/index.js | 43 ++++ .../locale/uk/_lib/formatRelative/index.js | 78 +++++++ .../date-fns/locale/uk/_lib/localize/index.js | 149 +++++++++++++ .../date-fns/locale/uk/_lib/match/index.js | 108 ++++++++++ node_modules/date-fns/locale/uk/index.d.ts | 4 + node_modules/date-fns/locale/uk/index.js | 36 ++++ node_modules/date-fns/locale/uk/index.js.flow | 35 +++ node_modules/date-fns/locale/uk/package.json | 5 + 9 files changed, 695 insertions(+) create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/uk/index.d.ts create mode 100644 node_modules/date-fns/locale/uk/index.js create mode 100644 node_modules/date-fns/locale/uk/index.js.flow create mode 100644 node_modules/date-fns/locale/uk/package.json (limited to 'node_modules/date-fns/locale/uk') diff --git a/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js new file mode 100644 index 0000000..d63e135 --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js @@ -0,0 +1,237 @@ +"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 halfAtMinute = function halfAtMinute(_, 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: halfAtMinute, + 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}} годин' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} день', + singularGenitive: '{{count}} днi', + pluralGenitive: '{{count}} днів' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} тижня', + singularGenitive: 'близько {{count}} тижнів', + pluralGenitive: 'близько {{count}} тижнів' + }, + future: { + singularNominative: 'приблизно за {{count}} тиждень', + singularGenitive: 'приблизно за {{count}} тижні', + pluralGenitive: 'приблизно за {{count}} тижнів' + } + }), + 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/uk/_lib/formatLong/index.js b/node_modules/date-fns/locale/uk/_lib/formatLong/index.js new file mode 100644 index 0000000..ea9e42a --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"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, do MMMM y 'р.'", + long: "do 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 = { + full: "{{date}} 'о' {{time}}", + long: "{{date}} 'о' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{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: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js b/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js new file mode 100644 index 0000000..abf5004 --- /dev/null +++ b/node_modules/date-fns/locale/uk/_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/uk/_lib/localize/index.js b/node_modules/date-fns/locale/uk/_lib/localize/index.js new file mode 100644 index 0000000..da7abe1 --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/localize/index.js @@ -0,0 +1,149 @@ +"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 = { + // ДСТУ 3582:2013 + 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; + if (unit === 'date') { + if (number === 3 || number === 23) { + suffix = '-є'; + } else { + suffix = '-е'; + } + } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { + suffix = '-а'; + } else { + suffix = '-й'; + } + 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/uk/_lib/match/index.js b/node_modules/date-fns/locale/uk/_lib/match/index.js new file mode 100644 index 0000000..f455bf9 --- /dev/null +++ b/node_modules/date-fns/locale/uk/_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: /^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[он]/i, /^в/i, /^с[ер]/i, /^ч/i, /^п\W*?[ят]/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/uk/index.d.ts b/node_modules/date-fns/locale/uk/index.d.ts new file mode 100644 index 0000000..972da88 --- /dev/null +++ b/node_modules/date-fns/locale/uk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uk } from 'date-fns/locale' +export default uk diff --git a/node_modules/date-fns/locale/uk/index.js b/node_modules/date-fns/locale/uk/index.js new file mode 100644 index 0000000..1f8b23e --- /dev/null +++ b/node_modules/date-fns/locale/uk/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 Ukrainian locale. + * @language Ukrainian + * @iso-639-2 ukr + * @author Andrii Korzh [@korzhyk]{@link https://github.com/korzhyk} + * @author Andriy Shcherbyak [@shcherbyakdev]{@link https://github.com/shcherbyakdev} + */ +var locale = { + code: 'uk', + 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/uk/index.js.flow b/node_modules/date-fns/locale/uk/index.js.flow new file mode 100644 index 0000000..b9dfe66 --- /dev/null +++ b/node_modules/date-fns/locale/uk/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, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => 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/uk/package.json b/node_modules/date-fns/locale/uk/package.json new file mode 100644 index 0000000..2a8db8a --- /dev/null +++ b/node_modules/date-fns/locale/uk/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/uk/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file -- cgit v1.2.3