From d55b767039605256c736166a942a9138e3eacfd7 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 29 Jun 2025 11:49:28 -0700 Subject: remove dev node_modules (oops) --- .../locale/hu/_lib/formatDistance/index.js | 81 ---------------------- 1 file changed, 81 deletions(-) delete mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance/index.js (limited to 'node_modules/date-fns/locale/hu/_lib/formatDistance') diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js deleted file mode 100644 index c6e6e35..0000000 --- a/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var translations = { - about: 'körülbelül', - over: 'több mint', - almost: 'majdnem', - lessthan: 'kevesebb mint' -}; -var withoutSuffixes = { - xseconds: ' másodperc', - halfaminute: 'fél perc', - xminutes: ' perc', - xhours: ' óra', - xdays: ' nap', - xweeks: ' hét', - xmonths: ' hónap', - xyears: ' év' -}; -var withSuffixes = { - xseconds: { - '-1': ' másodperccel ezelőtt', - '1': ' másodperc múlva', - '0': ' másodperce' - }, - halfaminute: { - '-1': 'fél perccel ezelőtt', - '1': 'fél perc múlva', - '0': 'fél perce' - }, - xminutes: { - '-1': ' perccel ezelőtt', - '1': ' perc múlva', - '0': ' perce' - }, - xhours: { - '-1': ' órával ezelőtt', - '1': ' óra múlva', - '0': ' órája' - }, - xdays: { - '-1': ' nappal ezelőtt', - '1': ' nap múlva', - '0': ' napja' - }, - xweeks: { - '-1': ' héttel ezelőtt', - '1': ' hét múlva', - '0': ' hete' - }, - xmonths: { - '-1': ' hónappal ezelőtt', - '1': ' hónap múlva', - '0': ' hónapja' - }, - xyears: { - '-1': ' évvel ezelőtt', - '1': ' év múlva', - '0': ' éve' - } -}; -var formatDistance = function formatDistance(token, count, options) { - var adverb = token.match(/about|over|almost|lessthan/i); - var unit = adverb ? token.replace(adverb[0], '') : token; - var addSuffix = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; - var key = unit.toLowerCase(); - var comparison = (options === null || options === void 0 ? void 0 : options.comparison) || 0; - var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; - var result = key === 'halfaminute' ? translated : count + translated; - if (adverb) { - var adv = adverb[0].toLowerCase(); - result = translations[adv] + ' ' + result; - } - return result; -}; -var _default = formatDistance; -exports.default = _default; -module.exports = exports.default; \ No newline at end of file -- cgit v1.2.3