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) {
19 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
21 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
23 return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
25 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
27 return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
29 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
31 return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
33 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
35 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
37 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
39 return num + (isFuture || withoutSuffix ? ' év' : ' éve');
43 function week(isFuture) {
44 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
47 var hu = moment.defineLocale('hu', {
48 months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
49 monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
50 weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
51 weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
52 weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
58 LLL : 'YYYY. MMMM D. H:mm',
59 LLLL : 'YYYY. MMMM D., dddd H:mm'
61 meridiemParse: /de|du/i,
62 isPM: function (input) {
63 return input.charAt(1).toLowerCase() === 'u';
65 meridiem : function (hours, minutes, isLower) {
67 return isLower === true ? 'de' : 'DE';
69 return isLower === true ? 'du' : 'DU';
73 sameDay : '[ma] LT[-kor]',
74 nextDay : '[holnap] LT[-kor]',
75 nextWeek : function () {
76 return week.call(this, true);
78 lastDay : '[tegnap] LT[-kor]',
79 lastWeek : function () {
80 return week.call(this, false);
99 ordinalParse: /\d{1,2}\./,
102 dow : 1, // Monday is the first day of the week.
103 doy : 7 // The week that contains Jan 1st is the first week of the year.