aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/locale/hu/_lib/formatDistance
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-06-29 11:49:28 -0700
commitd55b767039605256c736166a942a9138e3eacfd7 (patch)
tree947063b634c50d438a794325f13275e134aa5993 /node_modules/date-fns/locale/hu/_lib/formatDistance
parent864ce67d89c77d8ef9c3361f80d619853abcf91c (diff)
remove dev node_modules (oops)
Diffstat (limited to 'node_modules/date-fns/locale/hu/_lib/formatDistance')
-rw-r--r--node_modules/date-fns/locale/hu/_lib/formatDistance/index.js81
1 files changed, 0 insertions, 81 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage