1 //! moment.js locale configuration
2 //! locale : Hungarian [hu]
3 //! author : Adam Brunner : https://github.com/adambrunner
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10 }(this, (function (moment) { 'use strict';
13 var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
14 function translate(number, withoutSuffix, key, isFuture) {
18 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
20 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
22 return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
24 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
26 return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
28 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
30 return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
32 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
34 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
36 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
38 return num + (isFuture || withoutSuffix ? ' év' : ' éve');
42 function week(isFuture) {
43 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
46 var hu = moment.defineLocale('hu', {
47 months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
48 monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
49 weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
50 weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
51 weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
57 LLL : 'YYYY. MMMM D. H:mm',
58 LLLL : 'YYYY. MMMM D., dddd H:mm'
60 meridiemParse: /de|du/i,
61 isPM: function (input) {
62 return input.charAt(1).toLowerCase() === 'u';
64 meridiem : function (hours, minutes, isLower) {
66 return isLower === true ? 'de' : 'DE';
68 return isLower === true ? 'du' : 'DU';
72 sameDay : '[ma] LT[-kor]',
73 nextDay : '[holnap] LT[-kor]',
74 nextWeek : function () {
75 return week.call(this, true);
77 lastDay : '[tegnap] LT[-kor]',
78 lastWeek : function () {
79 return week.call(this, false);
98 dayOfMonthOrdinalParse: /\d{1,2}\./,
101 dow : 1, // Monday is the first day of the week.
102 doy : 4 // The week that contains Jan 4th is the first week of the year.