diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-29 11:49:28 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-29 11:49:28 -0700 |
| commit | d55b767039605256c736166a942a9138e3eacfd7 (patch) | |
| tree | 947063b634c50d438a794325f13275e134aa5993 /node_modules/date-fns/locale/lv/_lib | |
| parent | 864ce67d89c77d8ef9c3361f80d619853abcf91c (diff) | |
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/locale/lv/_lib')
5 files changed, 0 insertions, 451 deletions
diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js deleted file mode 100644 index 18aa713..0000000 --- a/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -function buildLocalizeTokenFn(schema) { - return function (count, options) { - if (count === 1) { - if (options !== null && options !== void 0 && options.addSuffix) { - return schema.one[0].replace('{{time}}', schema.one[2]); - } else { - return schema.one[0].replace('{{time}}', schema.one[1]); - } - } else { - var rem = count % 10 === 1 && count % 100 !== 11; - if (options !== null && options !== void 0 && options.addSuffix) { - return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', String(count)); - } else { - return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', String(count)); - } - } - }; -} -var formatDistanceLocale = { - lessThanXSeconds: buildLocalizeTokenFn({ - one: ['mazāk par {{time}}', 'sekundi', 'sekundi'], - other: ['mazāk nekā {{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] - }), - xSeconds: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'sekunde', 'sekundes'], - other: ['{{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] - }), - halfAMinute: function halfAMinute(_count, options) { - if (options !== null && options !== void 0 && options.addSuffix) { - return 'pusminūtes'; - } else { - return 'pusminūte'; - } - }, - lessThanXMinutes: buildLocalizeTokenFn({ - one: ['mazāk par {{time}}', 'minūti', 'minūti'], - other: ['mazāk nekā {{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] - }), - xMinutes: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'minūte', 'minūtes'], - other: ['{{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] - }), - aboutXHours: buildLocalizeTokenFn({ - one: ['apmēram 1 {{time}}', 'stunda', 'stundas'], - other: ['apmēram {{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] - }), - xHours: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'stunda', 'stundas'], - other: ['{{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] - }), - xDays: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'diena', 'dienas'], - other: ['{{count}} {{time}}', 'diena', 'dienas', 'dienas', 'dienām'] - }), - aboutXWeeks: buildLocalizeTokenFn({ - one: ['apmēram 1 {{time}}', 'nedēļa', 'nedēļas'], - other: ['apmēram {{count}} {{time}}', 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] - }), - xWeeks: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'nedēļa', 'nedēļas'], - other: ['{{count}} {{time}}', - // TODO - 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] - }), - aboutXMonths: buildLocalizeTokenFn({ - one: ['apmēram 1 {{time}}', 'mēnesis', 'mēneša'], - other: ['apmēram {{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] - }), - xMonths: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'mēnesis', 'mēneša'], - other: ['{{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] - }), - aboutXYears: buildLocalizeTokenFn({ - one: ['apmēram 1 {{time}}', 'gads', 'gada'], - other: ['apmēram {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] - }), - xYears: buildLocalizeTokenFn({ - one: ['1 {{time}}', 'gads', 'gada'], - other: ['{{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] - }), - overXYears: buildLocalizeTokenFn({ - one: ['ilgāk par 1 {{time}}', 'gadu', 'gadu'], - other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] - }), - almostXYears: buildLocalizeTokenFn({ - one: ['gandrīz 1 {{time}}', 'gads', 'gada'], - other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] - }) -}; -var formatDistance = function formatDistance(token, count, options) { - var result = formatDistanceLocale[token](count, options); - if (options !== null && options !== void 0 && options.addSuffix) { - if (options.comparison && options.comparison > 0) { - return 'pēc ' + result; - } else { - return 'pirms ' + result; - } - } - return result; -}; -var _default = formatDistance; -exports.default = _default; -module.exports = exports.default;
\ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong/index.js b/node_modules/date-fns/locale/lv/_lib/formatLong/index.js deleted file mode 100644 index 8e78206..0000000 --- a/node_modules/date-fns/locale/lv/_lib/formatLong/index.js +++ /dev/null @@ -1,43 +0,0 @@ -"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, y. 'gada' d. MMMM", - long: "y. 'gada' d. MMMM", - medium: 'dd.MM.y.', - short: 'dd.MM.y.' -}; -var timeFormats = { - full: 'HH:mm:ss zzzz', - long: 'HH:mm:ss z', - medium: 'HH:mm:ss', - short: 'HH:mm' -}; -var dateTimeFormats = { - full: "{{date}} 'plkst.' {{time}}", - long: "{{date}} 'plkst.' {{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/lv/_lib/formatRelative/index.js b/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js deleted file mode 100644 index cbfdb8b..0000000 --- a/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"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/isSameUTCWeek/index.js")); -var weekdays = ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā']; -var formatRelativeLocale = { - lastWeek: function lastWeek(date, baseDate, options) { - if ((0, _index.default)(date, baseDate, options)) { - return "eeee 'plkst.' p"; - } - var weekday = weekdays[date.getUTCDay()]; - return "'Pagājušā " + weekday + " plkst.' p"; - }, - yesterday: "'Vakar plkst.' p", - today: "'Šodien plkst.' p", - tomorrow: "'Rīt plkst.' p", - nextWeek: function nextWeek(date, baseDate, options) { - if ((0, _index.default)(date, baseDate, options)) { - return "eeee 'plkst.' p"; - } - var weekday = weekdays[date.getUTCDay()]; - return "'Nākamajā " + weekday + " plkst.' p"; - }, - 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/lv/_lib/localize/index.js b/node_modules/date-fns/locale/lv/_lib/localize/index.js deleted file mode 100644 index 3e01f1f..0000000 --- a/node_modules/date-fns/locale/lv/_lib/localize/index.js +++ /dev/null @@ -1,150 +0,0 @@ -"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: ['p.m.ē', 'm.ē'], - abbreviated: ['p. m. ē.', 'm. ē.'], - wide: ['pirms mūsu ēras', 'mūsu ērā'] -}; -var quarterValues = { - narrow: ['1', '2', '3', '4'], - abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], - wide: ['pirmais ceturksnis', 'otrais ceturksnis', 'trešais ceturksnis', 'ceturtais ceturksnis'] -}; -var formattingQuarterValues = { - narrow: ['1', '2', '3', '4'], - abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], - wide: ['pirmajā ceturksnī', 'otrajā ceturksnī', 'trešajā ceturksnī', 'ceturtajā ceturksnī'] -}; -var monthValues = { - narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], - abbreviated: ['janv.', 'febr.', 'marts', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], - wide: ['janvāris', 'februāris', 'marts', 'aprīlis', 'maijs', 'jūnijs', 'jūlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'] -}; -var formattingMonthValues = { - narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], - abbreviated: ['janv.', 'febr.', 'martā', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], - wide: ['janvārī', 'februārī', 'martā', 'aprīlī', 'maijā', 'jūnijā', 'jūlijā', 'augustā', 'septembrī', 'oktobrī', 'novembrī', 'decembrī'] -}; -var dayValues = { - narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], - short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], - abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], - wide: ['svētdiena', 'pirmdiena', 'otrdiena', 'trešdiena', 'ceturtdiena', 'piektdiena', 'sestdiena'] -}; -var formattingDayValues = { - narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], - short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], - abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], - wide: ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā'] -}; -var dayPeriodValues = { - narrow: { - am: 'am', - pm: 'pm', - midnight: 'pusn.', - noon: 'pusd.', - morning: 'rīts', - afternoon: 'diena', - evening: 'vakars', - night: 'nakts' - }, - abbreviated: { - am: 'am', - pm: 'pm', - midnight: 'pusn.', - noon: 'pusd.', - morning: 'rīts', - afternoon: 'pēcpusd.', - evening: 'vakars', - night: 'nakts' - }, - wide: { - am: 'am', - pm: 'pm', - midnight: 'pusnakts', - noon: 'pusdienlaiks', - morning: 'rīts', - afternoon: 'pēcpusdiena', - evening: 'vakars', - night: 'nakts' - } -}; -var formattingDayPeriodValues = { - narrow: { - am: 'am', - pm: 'pm', - midnight: 'pusn.', - noon: 'pusd.', - morning: 'rītā', - afternoon: 'dienā', - evening: 'vakarā', - night: 'naktī' - }, - abbreviated: { - am: 'am', - pm: 'pm', - midnight: 'pusn.', - noon: 'pusd.', - morning: 'rītā', - afternoon: 'pēcpusd.', - evening: 'vakarā', - night: 'naktī' - }, - wide: { - am: 'am', - pm: 'pm', - midnight: 'pusnaktī', - noon: 'pusdienlaikā', - morning: 'rītā', - afternoon: 'pēcpusdienā', - evening: 'vakarā', - night: 'naktī' - } -}; -var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { - var number = Number(dirtyNumber); - return number + '.'; -}; -var localize = { - ordinalNumber: ordinalNumber, - era: (0, _index.default)({ - values: eraValues, - defaultWidth: 'wide' - }), - quarter: (0, _index.default)({ - values: quarterValues, - defaultWidth: 'wide', - formattingValues: formattingQuarterValues, - defaultFormattingWidth: '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', - formattingValues: formattingDayValues, - defaultFormattingWidth: 'wide' - }), - dayPeriod: (0, _index.default)({ - values: dayPeriodValues, - defaultWidth: 'wide', - 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/lv/_lib/match/index.js b/node_modules/date-fns/locale/lv/_lib/match/index.js deleted file mode 100644 index 31f66f9..0000000 --- a/node_modules/date-fns/locale/lv/_lib/match/index.js +++ /dev/null @@ -1,110 +0,0 @@ -"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: /^(p\.m\.ē|m\.ē)/i, - abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, - wide: /^(pirms mūsu ēras|mūsu ērā)/i -}; -var parseEraPatterns = { - any: [/^p/i, /^m/i] -}; -var matchQuarterPatterns = { - narrow: /^[1234]/i, - abbreviated: /^[1234](\. cet\.)/i, - wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i -}; -var parseQuarterPatterns = { - narrow: [/^1/i, /^2/i, /^3/i, /^4/i], - abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], - wide: [/^p/i, /^o/i, /^t/i, /^c/i] -}; -var matchMonthPatterns = { - narrow: /^[jfmasond]/i, - abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, - wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i -}; -var parseMonthPatterns = { - narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], - any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jūn/i, /^jūl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] -}; -var matchDayPatterns = { - narrow: /^[spotc]/i, - short: /^(sv|pi|o|t|c|pk|s)/i, - abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, - wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i -}; -var parseDayPatterns = { - narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], - any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i] -}; -var matchDayPeriodPatterns = { - narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, - abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, - wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i -}; -var parseDayPeriodPatterns = { - any: { - am: /^am/i, - pm: /^pm/i, - midnight: /^pusn/i, - noon: /^pusd/i, - morning: /^r/i, - afternoon: /^(d|pēc)/i, - evening: /^v/i, - night: /^n/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: 'wide', - 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 |
