momentjs-rails 2.11.1 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  5. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  6. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  7. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  8. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  9. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  10. data/test/integration/navigation_test.rb +1 -1
  11. data/vendor/assets/javascripts/moment.js +1517 -889
  12. data/vendor/assets/javascripts/moment/af.js +3 -3
  13. data/vendor/assets/javascripts/moment/ar-ly.js +122 -0
  14. data/vendor/assets/javascripts/moment/ar-ma.js +3 -2
  15. data/vendor/assets/javascripts/moment/ar-sa.js +3 -2
  16. data/vendor/assets/javascripts/moment/ar-tn.js +4 -2
  17. data/vendor/assets/javascripts/moment/ar.js +6 -5
  18. data/vendor/assets/javascripts/moment/az.js +3 -2
  19. data/vendor/assets/javascripts/moment/be.js +21 -21
  20. data/vendor/assets/javascripts/moment/bg.js +11 -11
  21. data/vendor/assets/javascripts/moment/bn.js +18 -12
  22. data/vendor/assets/javascripts/moment/bo.js +13 -4
  23. data/vendor/assets/javascripts/moment/br.js +11 -10
  24. data/vendor/assets/javascripts/moment/bs.js +73 -71
  25. data/vendor/assets/javascripts/moment/ca.js +4 -2
  26. data/vendor/assets/javascripts/moment/cs.js +76 -75
  27. data/vendor/assets/javascripts/moment/cv.js +2 -2
  28. data/vendor/assets/javascripts/moment/cy.js +5 -3
  29. data/vendor/assets/javascripts/moment/da.js +2 -2
  30. data/vendor/assets/javascripts/moment/de-at.js +4 -2
  31. data/vendor/assets/javascripts/moment/de.js +4 -2
  32. data/vendor/assets/javascripts/moment/dv.js +3 -3
  33. data/vendor/assets/javascripts/moment/el.js +2 -2
  34. data/vendor/assets/javascripts/moment/en-au.js +3 -2
  35. data/vendor/assets/javascripts/moment/en-ca.js +5 -5
  36. data/vendor/assets/javascripts/moment/en-gb.js +2 -2
  37. data/vendor/assets/javascripts/moment/en-ie.js +2 -2
  38. data/vendor/assets/javascripts/moment/en-nz.js +3 -2
  39. data/vendor/assets/javascripts/moment/eo.js +2 -2
  40. data/vendor/assets/javascripts/moment/es-do.js +80 -0
  41. data/vendor/assets/javascripts/moment/es.js +4 -2
  42. data/vendor/assets/javascripts/moment/et.js +2 -2
  43. data/vendor/assets/javascripts/moment/eu.js +4 -2
  44. data/vendor/assets/javascripts/moment/fa.js +3 -2
  45. data/vendor/assets/javascripts/moment/fi.js +29 -29
  46. data/vendor/assets/javascripts/moment/fo.js +2 -2
  47. data/vendor/assets/javascripts/moment/fr-ca.js +4 -2
  48. data/vendor/assets/javascripts/moment/fr-ch.js +4 -2
  49. data/vendor/assets/javascripts/moment/fr.js +4 -2
  50. data/vendor/assets/javascripts/moment/fy.js +4 -2
  51. data/vendor/assets/javascripts/moment/gd.js +2 -2
  52. data/vendor/assets/javascripts/moment/gl.js +15 -13
  53. data/vendor/assets/javascripts/moment/he.js +19 -2
  54. data/vendor/assets/javascripts/moment/hi.js +3 -2
  55. data/vendor/assets/javascripts/moment/hr.js +73 -71
  56. data/vendor/assets/javascripts/moment/hu.js +24 -24
  57. data/vendor/assets/javascripts/moment/hy-am.js +12 -12
  58. data/vendor/assets/javascripts/moment/id.js +2 -2
  59. data/vendor/assets/javascripts/moment/is.js +52 -52
  60. data/vendor/assets/javascripts/moment/it.js +2 -2
  61. data/vendor/assets/javascripts/moment/ja.js +13 -2
  62. data/vendor/assets/javascripts/moment/jv.js +2 -2
  63. data/vendor/assets/javascripts/moment/ka.js +2 -2
  64. data/vendor/assets/javascripts/moment/kk.js +7 -7
  65. data/vendor/assets/javascripts/moment/km.js +4 -4
  66. data/vendor/assets/javascripts/moment/ko.js +8 -11
  67. data/vendor/assets/javascripts/moment/ky.js +88 -0
  68. data/vendor/assets/javascripts/moment/lb.js +6 -3
  69. data/vendor/assets/javascripts/moment/lo.js +3 -2
  70. data/vendor/assets/javascripts/moment/lt.js +5 -3
  71. data/vendor/assets/javascripts/moment/lv.js +5 -4
  72. data/vendor/assets/javascripts/moment/me.js +21 -19
  73. data/vendor/assets/javascripts/moment/mi.js +64 -0
  74. data/vendor/assets/javascripts/moment/mk.js +11 -11
  75. data/vendor/assets/javascripts/moment/ml.js +14 -4
  76. data/vendor/assets/javascripts/moment/mr.js +3 -2
  77. data/vendor/assets/javascripts/moment/ms-my.js +3 -2
  78. data/vendor/assets/javascripts/moment/ms.js +2 -2
  79. data/vendor/assets/javascripts/moment/my.js +4 -2
  80. data/vendor/assets/javascripts/moment/nb.js +5 -3
  81. data/vendor/assets/javascripts/moment/ne.js +4 -2
  82. data/vendor/assets/javascripts/moment/nl.js +18 -3
  83. data/vendor/assets/javascripts/moment/nn.js +3 -3
  84. data/vendor/assets/javascripts/moment/pa-in.js +124 -0
  85. data/vendor/assets/javascripts/moment/pl.js +22 -22
  86. data/vendor/assets/javascripts/moment/pt-br.js +4 -3
  87. data/vendor/assets/javascripts/moment/pt.js +3 -2
  88. data/vendor/assets/javascripts/moment/ro.js +3 -2
  89. data/vendor/assets/javascripts/moment/ru.js +59 -42
  90. data/vendor/assets/javascripts/moment/se.js +2 -2
  91. data/vendor/assets/javascripts/moment/si.js +7 -2
  92. data/vendor/assets/javascripts/moment/sk.js +74 -74
  93. data/vendor/assets/javascripts/moment/sl.js +92 -90
  94. data/vendor/assets/javascripts/moment/sq.js +5 -4
  95. data/vendor/assets/javascripts/moment/sr-cyrl.js +21 -19
  96. data/vendor/assets/javascripts/moment/sr.js +21 -19
  97. data/vendor/assets/javascripts/moment/ss.js +89 -0
  98. data/vendor/assets/javascripts/moment/sv.js +6 -4
  99. data/vendor/assets/javascripts/moment/sw.js +3 -2
  100. data/vendor/assets/javascripts/moment/ta.js +2 -2
  101. data/vendor/assets/javascripts/moment/te.js +3 -2
  102. data/vendor/assets/javascripts/moment/th.js +9 -7
  103. data/vendor/assets/javascripts/moment/tl-ph.js +3 -3
  104. data/vendor/assets/javascripts/moment/tlh.js +18 -17
  105. data/vendor/assets/javascripts/moment/tr.js +2 -2
  106. data/vendor/assets/javascripts/moment/tzl.js +8 -4
  107. data/vendor/assets/javascripts/moment/tzm-latn.js +2 -2
  108. data/vendor/assets/javascripts/moment/tzm.js +2 -2
  109. data/vendor/assets/javascripts/moment/uk.js +21 -21
  110. data/vendor/assets/javascripts/moment/uz.js +2 -2
  111. data/vendor/assets/javascripts/moment/vi.js +15 -2
  112. data/vendor/assets/javascripts/moment/x-pseudo.js +68 -0
  113. data/vendor/assets/javascripts/moment/zh-cn.js +14 -14
  114. data/vendor/assets/javascripts/moment/zh-hk.js +105 -0
  115. data/vendor/assets/javascripts/moment/zh-tw.js +29 -26
  116. metadata +10 -4
  117. data/test/dummy/log/test.log +0 -47
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : faroese (fo)
2
+ //! locale : Faroese [fo]
3
3
  //! author : Ragnar Johannesen : https://github.com/ragnar123
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : canadian french (fr-ca)
2
+ //! locale : French (Canada) [fr-ca]
3
3
  //! author : Jonathan Abourbih : https://github.com/jonbca
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,9 +13,11 @@
13
13
  var fr_ca = moment.defineLocale('fr-ca', {
14
14
  months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15
15
  monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16
+ monthsParseExact : true,
16
17
  weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
17
18
  weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
18
19
  weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20
+ weekdaysParseExact : true,
19
21
  longDateFormat : {
20
22
  LT : 'HH:mm',
21
23
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : swiss french (fr)
2
+ //! locale : French (Switzerland) [fr-ch]
3
3
  //! author : Gaspard Bucher : https://github.com/gaspard
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,9 +13,11 @@
13
13
  var fr_ch = moment.defineLocale('fr-ch', {
14
14
  months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15
15
  monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16
+ monthsParseExact : true,
16
17
  weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
17
18
  weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
18
19
  weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20
+ weekdaysParseExact : true,
19
21
  longDateFormat : {
20
22
  LT : 'HH:mm',
21
23
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : french (fr)
2
+ //! locale : French [fr]
3
3
  //! author : John Fischer : https://github.com/jfroffice
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,9 +13,11 @@
13
13
  var fr = moment.defineLocale('fr', {
14
14
  months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15
15
  monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16
+ monthsParseExact : true,
16
17
  weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
17
18
  weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
18
19
  weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20
+ weekdaysParseExact : true,
19
21
  longDateFormat : {
20
22
  LT : 'HH:mm',
21
23
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : frisian (fy)
2
+ //! locale : Frisian [fy]
3
3
  //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -22,9 +22,11 @@
22
22
  return monthsShortWithDots[m.month()];
23
23
  }
24
24
  },
25
+ monthsParseExact : true,
25
26
  weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
26
27
  weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
27
28
  weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
29
+ weekdaysParseExact : true,
28
30
  longDateFormat : {
29
31
  LT : 'HH:mm',
30
32
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : great britain scottish gealic (gd)
2
+ //! locale : Scottish Gaelic [gd]
3
3
  //! author : Jon Ashdown : https://github.com/jonashdown
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -1,28 +1,30 @@
1
1
  //! moment.js locale configuration
2
- //! locale : galician (gl)
2
+ //! locale : Galician [gl]
3
3
  //! author : Juan G. Hurtado : https://github.com/juanghurtado
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
12
12
 
13
13
  var gl = moment.defineLocale('gl', {
14
- months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
15
- monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
16
- weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
17
- weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
18
- weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
14
+ months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
15
+ monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
16
+ monthsParseExact: true,
17
+ weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
18
+ weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
19
+ weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
20
+ weekdaysParseExact : true,
19
21
  longDateFormat : {
20
22
  LT : 'H:mm',
21
23
  LTS : 'H:mm:ss',
22
24
  L : 'DD/MM/YYYY',
23
- LL : 'D MMMM YYYY',
24
- LLL : 'D MMMM YYYY H:mm',
25
- LLLL : 'dddd D MMMM YYYY H:mm'
25
+ LL : 'D [de] MMMM [de] YYYY',
26
+ LLL : 'D [de] MMMM [de] YYYY H:mm',
27
+ LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
26
28
  },
27
29
  calendar : {
28
30
  sameDay : function () {
@@ -44,8 +46,8 @@
44
46
  },
45
47
  relativeTime : {
46
48
  future : function (str) {
47
- if (str === 'uns segundos') {
48
- return 'nuns segundos';
49
+ if (str.indexOf('un') === 0) {
50
+ return 'n' + str;
49
51
  }
50
52
  return 'en ' + str;
51
53
  },
@@ -66,7 +68,7 @@
66
68
  ordinal : '%dº',
67
69
  week : {
68
70
  dow : 1, // Monday is the first day of the week.
69
- doy : 7 // The week that contains Jan 1st is the first week of the year.
71
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
70
72
  }
71
73
  });
72
74
 
@@ -1,5 +1,5 @@
1
1
  //! moment.js locale configuration
2
- //! locale : Hebrew (he)
2
+ //! locale : Hebrew [he]
3
3
  //! author : Tomer Cohen : https://github.com/tomer
4
4
  //! author : Moshe Simantov : https://github.com/DevelopmentIL
5
5
  //! author : Tal Ater : https://github.com/TalAter
@@ -7,7 +7,7 @@
7
7
  ;(function (global, factory) {
8
8
  typeof exports === 'object' && typeof module !== 'undefined'
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
12
  }(this, function (moment) { 'use strict';
13
13
 
@@ -74,6 +74,23 @@
74
74
  }
75
75
  return number + ' שנים';
76
76
  }
77
+ },
78
+ meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
79
+ isPM : function (input) {
80
+ return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
81
+ },
82
+ meridiem : function (hour, minute, isLower) {
83
+ if (hour < 5) {
84
+ return 'לפנות בוקר';
85
+ } else if (hour < 10) {
86
+ return 'בבוקר';
87
+ } else if (hour < 12) {
88
+ return isLower ? 'לפנה"צ' : 'לפני הצהריים';
89
+ } else if (hour < 18) {
90
+ return isLower ? 'אחה"צ' : 'אחרי הצהריים';
91
+ } else {
92
+ return 'בערב';
93
+ }
77
94
  }
78
95
  });
79
96
 
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : hindi (hi)
2
+ //! locale : Hindi [hi]
3
3
  //! author : Mayank Singhal : https://github.com/mayanksinghal
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -38,6 +38,7 @@
38
38
  var hi = moment.defineLocale('hi', {
39
39
  months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
40
40
  monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
41
+ monthsParseExact: true,
41
42
  weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
42
43
  weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
43
44
  weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : hrvatski (hr)
2
+ //! locale : Croatian [hr]
3
3
  //! author : Bojan Marković : https://github.com/bmarkovic
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,53 +13,53 @@
13
13
  function translate(number, withoutSuffix, key) {
14
14
  var result = number + ' ';
15
15
  switch (key) {
16
- case 'm':
17
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
18
- case 'mm':
19
- if (number === 1) {
20
- result += 'minuta';
21
- } else if (number === 2 || number === 3 || number === 4) {
22
- result += 'minute';
23
- } else {
24
- result += 'minuta';
25
- }
26
- return result;
27
- case 'h':
28
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
29
- case 'hh':
30
- if (number === 1) {
31
- result += 'sat';
32
- } else if (number === 2 || number === 3 || number === 4) {
33
- result += 'sata';
34
- } else {
35
- result += 'sati';
36
- }
37
- return result;
38
- case 'dd':
39
- if (number === 1) {
40
- result += 'dan';
41
- } else {
42
- result += 'dana';
43
- }
44
- return result;
45
- case 'MM':
46
- if (number === 1) {
47
- result += 'mjesec';
48
- } else if (number === 2 || number === 3 || number === 4) {
49
- result += 'mjeseca';
50
- } else {
51
- result += 'mjeseci';
52
- }
53
- return result;
54
- case 'yy':
55
- if (number === 1) {
56
- result += 'godina';
57
- } else if (number === 2 || number === 3 || number === 4) {
58
- result += 'godine';
59
- } else {
60
- result += 'godina';
61
- }
62
- return result;
16
+ case 'm':
17
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
18
+ case 'mm':
19
+ if (number === 1) {
20
+ result += 'minuta';
21
+ } else if (number === 2 || number === 3 || number === 4) {
22
+ result += 'minute';
23
+ } else {
24
+ result += 'minuta';
25
+ }
26
+ return result;
27
+ case 'h':
28
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
29
+ case 'hh':
30
+ if (number === 1) {
31
+ result += 'sat';
32
+ } else if (number === 2 || number === 3 || number === 4) {
33
+ result += 'sata';
34
+ } else {
35
+ result += 'sati';
36
+ }
37
+ return result;
38
+ case 'dd':
39
+ if (number === 1) {
40
+ result += 'dan';
41
+ } else {
42
+ result += 'dana';
43
+ }
44
+ return result;
45
+ case 'MM':
46
+ if (number === 1) {
47
+ result += 'mjesec';
48
+ } else if (number === 2 || number === 3 || number === 4) {
49
+ result += 'mjeseca';
50
+ } else {
51
+ result += 'mjeseci';
52
+ }
53
+ return result;
54
+ case 'yy':
55
+ if (number === 1) {
56
+ result += 'godina';
57
+ } else if (number === 2 || number === 3 || number === 4) {
58
+ result += 'godine';
59
+ } else {
60
+ result += 'godina';
61
+ }
62
+ return result;
63
63
  }
64
64
  }
65
65
 
@@ -69,13 +69,15 @@
69
69
  standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
70
70
  },
71
71
  monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
72
+ monthsParseExact: true,
72
73
  weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
73
74
  weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
74
75
  weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
76
+ weekdaysParseExact : true,
75
77
  longDateFormat : {
76
78
  LT : 'H:mm',
77
79
  LTS : 'H:mm:ss',
78
- L : 'DD. MM. YYYY',
80
+ L : 'DD.MM.YYYY',
79
81
  LL : 'D. MMMM YYYY',
80
82
  LLL : 'D. MMMM YYYY H:mm',
81
83
  LLLL : 'dddd, D. MMMM YYYY H:mm'
@@ -85,32 +87,32 @@
85
87
  nextDay : '[sutra u] LT',
86
88
  nextWeek : function () {
87
89
  switch (this.day()) {
88
- case 0:
89
- return '[u] [nedjelju] [u] LT';
90
- case 3:
91
- return '[u] [srijedu] [u] LT';
92
- case 6:
93
- return '[u] [subotu] [u] LT';
94
- case 1:
95
- case 2:
96
- case 4:
97
- case 5:
98
- return '[u] dddd [u] LT';
90
+ case 0:
91
+ return '[u] [nedjelju] [u] LT';
92
+ case 3:
93
+ return '[u] [srijedu] [u] LT';
94
+ case 6:
95
+ return '[u] [subotu] [u] LT';
96
+ case 1:
97
+ case 2:
98
+ case 4:
99
+ case 5:
100
+ return '[u] dddd [u] LT';
99
101
  }
100
102
  },
101
103
  lastDay : '[jučer u] LT',
102
104
  lastWeek : function () {
103
105
  switch (this.day()) {
104
- case 0:
105
- case 3:
106
- return '[prošlu] dddd [u] LT';
107
- case 6:
108
- return '[prošle] [subote] [u] LT';
109
- case 1:
110
- case 2:
111
- case 4:
112
- case 5:
113
- return '[prošli] dddd [u] LT';
106
+ case 0:
107
+ case 3:
108
+ return '[prošlu] dddd [u] LT';
109
+ case 6:
110
+ return '[prošle] [subote] [u] LT';
111
+ case 1:
112
+ case 2:
113
+ case 4:
114
+ case 5:
115
+ return '[prošli] dddd [u] LT';
114
116
  }
115
117
  },
116
118
  sameElse : 'L'
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : hungarian (hu)
2
+ //! locale : Hungarian [hu]
3
3
  //! author : Adam Brunner : https://github.com/adambrunner
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -15,28 +15,28 @@
15
15
  var num = number,
16
16
  suffix;
17
17
  switch (key) {
18
- case 's':
19
- return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
20
- case 'm':
21
- return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
22
- case 'mm':
23
- return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
24
- case 'h':
25
- return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
26
- case 'hh':
27
- return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
28
- case 'd':
29
- return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
30
- case 'dd':
31
- return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
32
- case 'M':
33
- return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
34
- case 'MM':
35
- return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
36
- case 'y':
37
- return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
38
- case 'yy':
39
- return num + (isFuture || withoutSuffix ? ' év' : ' éve');
18
+ case 's':
19
+ return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
20
+ case 'm':
21
+ return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
22
+ case 'mm':
23
+ return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
24
+ case 'h':
25
+ return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
26
+ case 'hh':
27
+ return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
28
+ case 'd':
29
+ return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
30
+ case 'dd':
31
+ return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
32
+ case 'M':
33
+ return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
34
+ case 'MM':
35
+ return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
36
+ case 'y':
37
+ return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
38
+ case 'yy':
39
+ return num + (isFuture || withoutSuffix ? ' év' : ' éve');
40
40
  }
41
41
  return '';
42
42
  }