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/fi/_lib/formatDistance/index.js | |
| parent | 864ce67d89c77d8ef9c3361f80d619853abcf91c (diff) | |
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/locale/fi/_lib/formatDistance/index.js')
| -rw-r--r-- | node_modules/date-fns/locale/fi/_lib/formatDistance/index.js | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js deleted file mode 100644 index 265045c..0000000 --- a/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -function futureSeconds(text) { - return text.replace(/sekuntia?/, 'sekunnin'); -} -function futureMinutes(text) { - return text.replace(/minuuttia?/, 'minuutin'); -} -function futureHours(text) { - return text.replace(/tuntia?/, 'tunnin'); -} -function futureDays(text) { - return text.replace(/päivää?/, 'päivän'); -} -function futureWeeks(text) { - return text.replace(/(viikko|viikkoa)/, 'viikon'); -} -function futureMonths(text) { - return text.replace(/(kuukausi|kuukautta)/, 'kuukauden'); -} -function futureYears(text) { - return text.replace(/(vuosi|vuotta)/, 'vuoden'); -} -var formatDistanceLocale = { - lessThanXSeconds: { - one: 'alle sekunti', - other: 'alle {{count}} sekuntia', - futureTense: futureSeconds - }, - xSeconds: { - one: 'sekunti', - other: '{{count}} sekuntia', - futureTense: futureSeconds - }, - halfAMinute: { - one: 'puoli minuuttia', - other: 'puoli minuuttia', - futureTense: function futureTense(_text) { - return 'puolen minuutin'; - } - }, - lessThanXMinutes: { - one: 'alle minuutti', - other: 'alle {{count}} minuuttia', - futureTense: futureMinutes - }, - xMinutes: { - one: 'minuutti', - other: '{{count}} minuuttia', - futureTense: futureMinutes - }, - aboutXHours: { - one: 'noin tunti', - other: 'noin {{count}} tuntia', - futureTense: futureHours - }, - xHours: { - one: 'tunti', - other: '{{count}} tuntia', - futureTense: futureHours - }, - xDays: { - one: 'päivä', - other: '{{count}} päivää', - futureTense: futureDays - }, - aboutXWeeks: { - one: 'noin viikko', - other: 'noin {{count}} viikkoa', - futureTense: futureWeeks - }, - xWeeks: { - one: 'viikko', - other: '{{count}} viikkoa', - futureTense: futureWeeks - }, - aboutXMonths: { - one: 'noin kuukausi', - other: 'noin {{count}} kuukautta', - futureTense: futureMonths - }, - xMonths: { - one: 'kuukausi', - other: '{{count}} kuukautta', - futureTense: futureMonths - }, - aboutXYears: { - one: 'noin vuosi', - other: 'noin {{count}} vuotta', - futureTense: futureYears - }, - xYears: { - one: 'vuosi', - other: '{{count}} vuotta', - futureTense: futureYears - }, - overXYears: { - one: 'yli vuosi', - other: 'yli {{count}} vuotta', - futureTense: futureYears - }, - almostXYears: { - one: 'lähes vuosi', - other: 'lähes {{count}} vuotta', - futureTense: futureYears - } -}; -var formatDistance = function formatDistance(token, count, options) { - var tokenValue = formatDistanceLocale[token]; - var result = count === 1 ? tokenValue.one : tokenValue.other.replace('{{count}}', String(count)); - if (options !== null && options !== void 0 && options.addSuffix) { - if (options.comparison && options.comparison > 0) { - return tokenValue.futureTense(result) + ' kuluttua'; - } else { - return result + ' sitten'; - } - } - return result; -}; -var _default = formatDistance; -exports.default = _default; -module.exports = exports.default;
\ No newline at end of file |
