PageSourceSearch

https://likebalaton.hu/wp-content/plugins/endless-core/bower_components/moment/locale/hu.js?ver=1703673318

js likebalaton.hu collected 2026-10-02 11:29:42 UTC 4,599 bytes, 129 lines download raw bytes

1//! moment.js locale configuration
2//! locale : Hungarian [hu]
3//! author : Adam Brunner : https://github.com/adambrunner
4//! author : Peter Viszt  : https://github.com/passatgt
5
6;(function (global, factory) {
7   typeof exports === 'object' && typeof module !== 'undefined'
8       && typeof require === 'function' ? factory(require('../moment')) :
9   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10   factory(global.moment)
11}(this, (function (moment) { 'use strict';
12
13    //! moment.js locale configuration
14
15    var weekEndings =
16        'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
17    function translate(number, withoutSuffix, key, isFuture) {
18        var num = number;
19        switch (key) {
20            case 's':
21                return isFuture || withoutSuffix
22                    ? 'néhány másodperc'
23                    : 'néhány másodperce';
24            case 'ss':
25                return num + (isFuture || withoutSuffix)
26                    ? ' másodperc'
27                    : ' másodperce';
28            case 'm':
29                return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
30            case 'mm':
31                return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
32            case 'h':
33                return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
34            case 'hh':
35                return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
36            case 'd':
37                return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
38            case 'dd':
39                return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
40            case 'M':
41                return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
42            case 'MM':
43                return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
44            case 'y':
45                return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
46            case 'yy':
47                return num + (isFuture || withoutSuffix ? ' év' : ' éve');
48        }
49        return '';
50    }
51    function week(isFuture) {
52        return (
53            (isFuture ? '' : '[múlt] ') +
54            '[' +
55            weekEndings[this.day()] +
56            '] LT[-kor]'
57        );
58    }
59
60    var hu = moment.defineLocale('hu', {
61        months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
62            '_'
63        ),
64        monthsShort:
65            'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
66                '_'
67            ),
68        monthsParseExact: true,
69        weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
70        weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
71        weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
72        longDateFormat: {
73            LT: 'H:mm',
74            LTS: 'H:mm:ss',
75            L: 'YYYY.MM.DD.',
76            LL: 'YYYY. MMMM D.',
77            LLL: 'YYYY. MMMM D. H:mm',
78            LLLL: 'YYYY. MMMM D., dddd H:mm',
79        },
80        meridiemParse: /de|du/i,
81        isPM: function (input) {
82            return input.charAt(1).toLowerCase() === 'u';
83        },
84        meridiem: function (hours, minutes, isLower) {
85            if (hours < 12) {
86                return isLower === true ? 'de' : 'DE';
87            } else {
88                return isLower === true ? 'du' : 'DU';
89            }
90        },
91        calendar: {
92            sameDay: '[ma] LT[-kor]',
93            nextDay: '[holnap] LT[-kor]',
94            nextWeek: function () {
95                return week.call(this, true);
96            },
97            lastDay: '[tegnap] LT[-kor]',
98            lastWeek: function () {
99                return week.call(this, false);
100            },
101            sameElse: 'L',
102        },
103        relativeTime: {
104            future: '%s múlva',
105            past: '%s',
106            s: translate,
107            ss: translate,
108            m: translate,
109            mm: translate,
110            h: translate,
111            hh: translate,
112            d: translate,
113            dd: translate,
114            M: translate,
115            MM: translate,
116            y: translate,
117            yy: translate,
118        },
119        dayOfMonthOrdinalParse: /\d{1,2}\./,
120        ordinal: '%d.',
121        week: {
122            dow: 1, // Monday is the first day of the week.
123            doy: 4, // The week that contains Jan 4th is the first week of the year.
124        },
125    });
126
127    return hu;
128
129})));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.