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/formatDistance/index.js | |
| parent | 864ce67d89c77d8ef9c3361f80d619853abcf91c (diff) | |
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/locale/lv/_lib/formatDistance/index.js')
| -rw-r--r-- | node_modules/date-fns/locale/lv/_lib/formatDistance/index.js | 109 |
1 files changed, 0 insertions, 109 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 |
