momentjs-rails 2.9.0 → 2.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -2
  3. data/news.md +3 -0
  4. data/test/dummy/log/test.log +20 -0
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -1
  12. data/vendor/assets/javascripts/moment.js +2475 -2435
  13. data/vendor/assets/javascripts/moment/af.js +15 -14
  14. data/vendor/assets/javascripts/moment/ar-ma.js +16 -15
  15. data/vendor/assets/javascripts/moment/ar-sa.js +15 -14
  16. data/vendor/assets/javascripts/moment/ar-tn.js +14 -13
  17. data/vendor/assets/javascripts/moment/ar.js +17 -16
  18. data/vendor/assets/javascripts/moment/az.js +16 -20
  19. data/vendor/assets/javascripts/moment/be.js +17 -25
  20. data/vendor/assets/javascripts/moment/bg.js +15 -14
  21. data/vendor/assets/javascripts/moment/bn.js +15 -14
  22. data/vendor/assets/javascripts/moment/bo.js +15 -14
  23. data/vendor/assets/javascripts/moment/br.js +15 -18
  24. data/vendor/assets/javascripts/moment/bs.js +16 -16
  25. data/vendor/assets/javascripts/moment/ca.js +15 -14
  26. data/vendor/assets/javascripts/moment/cs.js +15 -16
  27. data/vendor/assets/javascripts/moment/cv.js +15 -14
  28. data/vendor/assets/javascripts/moment/cy.js +15 -16
  29. data/vendor/assets/javascripts/moment/da.js +15 -14
  30. data/vendor/assets/javascripts/moment/de-at.js +17 -16
  31. data/vendor/assets/javascripts/moment/de.js +16 -15
  32. data/vendor/assets/javascripts/moment/el.js +15 -16
  33. data/vendor/assets/javascripts/moment/en-au.js +14 -13
  34. data/vendor/assets/javascripts/moment/en-ca.js +15 -14
  35. data/vendor/assets/javascripts/moment/en-gb.js +15 -14
  36. data/vendor/assets/javascripts/moment/eo.js +17 -16
  37. data/vendor/assets/javascripts/moment/es.js +15 -14
  38. data/vendor/assets/javascripts/moment/et.js +16 -15
  39. data/vendor/assets/javascripts/moment/eu.js +15 -14
  40. data/vendor/assets/javascripts/moment/fa.js +15 -14
  41. data/vendor/assets/javascripts/moment/fi.js +15 -16
  42. data/vendor/assets/javascripts/moment/fo.js +15 -14
  43. data/vendor/assets/javascripts/moment/fr-ca.js +15 -14
  44. data/vendor/assets/javascripts/moment/fr.js +15 -14
  45. data/vendor/assets/javascripts/moment/fy.js +15 -14
  46. data/vendor/assets/javascripts/moment/gl.js +15 -14
  47. data/vendor/assets/javascripts/moment/he.js +17 -16
  48. data/vendor/assets/javascripts/moment/hi.js +15 -14
  49. data/vendor/assets/javascripts/moment/hr.js +14 -16
  50. data/vendor/assets/javascripts/moment/hu.js +15 -18
  51. data/vendor/assets/javascripts/moment/hy-am.js +15 -23
  52. data/vendor/assets/javascripts/moment/id.js +16 -15
  53. data/vendor/assets/javascripts/moment/is.js +15 -15
  54. data/vendor/assets/javascripts/moment/it.js +16 -15
  55. data/vendor/assets/javascripts/moment/ja.js +15 -14
  56. data/vendor/assets/javascripts/moment/ka.js +15 -22
  57. data/vendor/assets/javascripts/moment/km.js +15 -14
  58. data/vendor/assets/javascripts/moment/ko.js +20 -18
  59. data/vendor/assets/javascripts/moment/lb.js +14 -20
  60. data/vendor/assets/javascripts/moment/lt.js +15 -21
  61. data/vendor/assets/javascripts/moment/lv.js +15 -16
  62. data/vendor/assets/javascripts/moment/mk.js +15 -14
  63. data/vendor/assets/javascripts/moment/ml.js +15 -14
  64. data/vendor/assets/javascripts/moment/mr.js +16 -16
  65. data/vendor/assets/javascripts/moment/ms-my.js +15 -14
  66. data/vendor/assets/javascripts/moment/my.js +16 -14
  67. data/vendor/assets/javascripts/moment/nb.js +16 -15
  68. data/vendor/assets/javascripts/moment/ne.js +15 -14
  69. data/vendor/assets/javascripts/moment/nl.js +15 -14
  70. data/vendor/assets/javascripts/moment/nn.js +15 -14
  71. data/vendor/assets/javascripts/moment/pl.js +15 -16
  72. data/vendor/assets/javascripts/moment/pt-br.js +15 -14
  73. data/vendor/assets/javascripts/moment/pt.js +15 -14
  74. data/vendor/assets/javascripts/moment/ro.js +16 -16
  75. data/vendor/assets/javascripts/moment/ru.js +16 -29
  76. data/vendor/assets/javascripts/moment/sk.js +16 -17
  77. data/vendor/assets/javascripts/moment/sl.js +15 -15
  78. data/vendor/assets/javascripts/moment/sq.js +17 -16
  79. data/vendor/assets/javascripts/moment/sr-cyrl.js +15 -15
  80. data/vendor/assets/javascripts/moment/sr.js +15 -15
  81. data/vendor/assets/javascripts/moment/sv.js +15 -14
  82. data/vendor/assets/javascripts/moment/ta.js +14 -50
  83. data/vendor/assets/javascripts/moment/th.js +15 -14
  84. data/vendor/assets/javascripts/moment/tl-ph.js +15 -14
  85. data/vendor/assets/javascripts/moment/tr.js +16 -21
  86. data/vendor/assets/javascripts/moment/tzm-latn.js +15 -14
  87. data/vendor/assets/javascripts/moment/tzm.js +15 -14
  88. data/vendor/assets/javascripts/moment/uk.js +16 -27
  89. data/vendor/assets/javascripts/moment/uz.js +15 -14
  90. data/vendor/assets/javascripts/moment/vi.js +15 -14
  91. data/vendor/assets/javascripts/moment/zh-cn.js +16 -15
  92. data/vendor/assets/javascripts/moment/zh-tw.js +15 -14
  93. metadata +2 -2
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : canadian french (fr-ca)
3
- // author : Jonathan Abourbih : https://github.com/jonbca
1
+ //! moment.js locale configuration
2
+ //! locale : canadian french (fr-ca)
3
+ //! author : Jonathan Abourbih : https://github.com/jonbca
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('fr-ca', {
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var fr_ca = moment.defineLocale('fr-ca', {
15
13
  months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
16
14
  monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
17
15
  weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
@@ -53,4 +51,7 @@
53
51
  return number + (number === 1 ? 'er' : '');
54
52
  }
55
53
  });
56
- }));
54
+
55
+ return fr_ca;
56
+
57
+ }));
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : french (fr)
3
- // author : John Fischer : https://github.com/jfroffice
1
+ //! moment.js locale configuration
2
+ //! locale : french (fr)
3
+ //! author : John Fischer : https://github.com/jfroffice
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('fr', {
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var fr = moment.defineLocale('fr', {
15
13
  months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
16
14
  monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
17
15
  weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
@@ -57,4 +55,7 @@
57
55
  doy : 4 // The week that contains Jan 4th is the first week of the year.
58
56
  }
59
57
  });
60
- }));
58
+
59
+ return fr;
60
+
61
+ }));
@@ -1,20 +1,18 @@
1
- // moment.js locale configuration
2
- // locale : frisian (fy)
3
- // author : Robin van der Vliet : https://github.com/robin0van0der0v
1
+ //! moment.js locale configuration
2
+ //! locale : frisian (fy)
3
+ //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
15
13
  monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
16
14
 
17
- return moment.defineLocale('fy', {
15
+ var fy = moment.defineLocale('fy', {
18
16
  months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
19
17
  monthsShort : function (m, format) {
20
18
  if (/-MMM-/.test(format)) {
@@ -66,4 +64,7 @@
66
64
  doy : 4 // The week that contains Jan 4th is the first week of the year.
67
65
  }
68
66
  });
69
- }));
67
+
68
+ return fy;
69
+
70
+ }));
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : galician (gl)
3
- // author : Juan G. Hurtado : https://github.com/juanghurtado
1
+ //! moment.js locale configuration
2
+ //! locale : galician (gl)
3
+ //! author : Juan G. Hurtado : https://github.com/juanghurtado
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('gl', {
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var gl = moment.defineLocale('gl', {
15
13
  months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
16
14
  monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
17
15
  weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
@@ -70,4 +68,7 @@
70
68
  doy : 7 // The week that contains Jan 1st is the first week of the year.
71
69
  }
72
70
  });
73
- }));
71
+
72
+ return gl;
73
+
74
+ }));
@@ -1,19 +1,17 @@
1
- // moment.js locale configuration
2
- // locale : Hebrew (he)
3
- // author : Tomer Cohen : https://github.com/tomer
4
- // author : Moshe Simantov : https://github.com/DevelopmentIL
5
- // author : Tal Ater : https://github.com/TalAter
1
+ //! moment.js locale configuration
2
+ //! locale : Hebrew (he)
3
+ //! author : Tomer Cohen : https://github.com/tomer
4
+ //! author : Moshe Simantov : https://github.com/DevelopmentIL
5
+ //! author : Tal Ater : https://github.com/TalAter
6
6
 
7
- (function (factory) {
8
- if (typeof define === 'function' && define.amd) {
9
- define(['moment'], factory); // AMD
10
- } else if (typeof exports === 'object') {
11
- module.exports = factory(require('../moment')); // Node
12
- } else {
13
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
- }
15
- }(function (moment) {
16
- return moment.defineLocale('he', {
7
+ (function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, function (moment) { 'use strict';
12
+
13
+
14
+ var he = moment.defineLocale('he', {
17
15
  months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
18
16
  monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
19
17
  weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
@@ -77,4 +75,7 @@
77
75
  }
78
76
  }
79
77
  });
80
- }));
78
+
79
+ return he;
80
+
81
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : hindi (hi)
3
- // author : Mayank Singhal : https://github.com/mayanksinghal
1
+ //! moment.js locale configuration
2
+ //! locale : hindi (hi)
3
+ //! author : Mayank Singhal : https://github.com/mayanksinghal
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  var symbolMap = {
15
13
  '1': '१',
16
14
  '2': '२',
@@ -36,7 +34,7 @@
36
34
  '०': '0'
37
35
  };
38
36
 
39
- return moment.defineLocale('hi', {
37
+ var hi = moment.defineLocale('hi', {
40
38
  months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
41
39
  monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
42
40
  weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
@@ -118,4 +116,7 @@
118
116
  doy : 6 // The week that contains Jan 1st is the first week of the year.
119
117
  }
120
118
  });
121
- }));
119
+
120
+ return hi;
121
+
122
+ }));
@@ -1,18 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : hrvatski (hr)
3
- // author : Bojan Marković : https://github.com/bmarkovic
1
+ //! moment.js locale configuration
2
+ //! locale : hrvatski (hr)
3
+ //! author : Bojan Marković : https://github.com/bmarkovic
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
4
10
 
5
- // based on (sl) translation by Robert Sedovšek
6
11
 
7
- (function (factory) {
8
- if (typeof define === 'function' && define.amd) {
9
- define(['moment'], factory); // AMD
10
- } else if (typeof exports === 'object') {
11
- module.exports = factory(require('../moment')); // Node
12
- } else {
13
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
- }
15
- }(function (moment) {
16
12
  function translate(number, withoutSuffix, key) {
17
13
  var result = number + ' ';
18
14
  switch (key) {
@@ -66,7 +62,7 @@
66
62
  }
67
63
  }
68
64
 
69
- return moment.defineLocale('hr', {
65
+ var hr = moment.defineLocale('hr', {
70
66
  months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
71
67
  monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
72
68
  weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
@@ -83,7 +79,6 @@
83
79
  calendar : {
84
80
  sameDay : '[danas u] LT',
85
81
  nextDay : '[sutra u] LT',
86
-
87
82
  nextWeek : function () {
88
83
  switch (this.day()) {
89
84
  case 0:
@@ -138,4 +133,7 @@
138
133
  doy : 7 // The week that contains Jan 1st is the first week of the year.
139
134
  }
140
135
  });
141
- }));
136
+
137
+ return hr;
138
+
139
+ }));
@@ -1,22 +1,18 @@
1
- // moment.js locale configuration
2
- // locale : hungarian (hu)
3
- // author : Adam Brunner : https://github.com/adambrunner
1
+ //! moment.js locale configuration
2
+ //! locale : hungarian (hu)
3
+ //! author : Adam Brunner : https://github.com/adambrunner
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
4
10
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
15
11
 
12
+ var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
16
13
  function translate(number, withoutSuffix, key, isFuture) {
17
14
  var num = number,
18
15
  suffix;
19
-
20
16
  switch (key) {
21
17
  case 's':
22
18
  return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
@@ -41,15 +37,13 @@
41
37
  case 'yy':
42
38
  return num + (isFuture || withoutSuffix ? ' év' : ' éve');
43
39
  }
44
-
45
40
  return '';
46
41
  }
47
-
48
42
  function week(isFuture) {
49
43
  return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
50
44
  }
51
45
 
52
- return moment.defineLocale('hu', {
46
+ var hu = moment.defineLocale('hu', {
53
47
  months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
54
48
  monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
55
49
  weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
@@ -108,4 +102,7 @@
108
102
  doy : 7 // The week that contains Jan 1st is the first week of the year.
109
103
  }
110
104
  });
111
- }));
105
+
106
+ return hu;
107
+
108
+ }));
@@ -1,42 +1,34 @@
1
- // moment.js locale configuration
2
- // locale : Armenian (hy-am)
3
- // author : Armendarabyan : https://github.com/armendarabyan
1
+ //! moment.js locale configuration
2
+ //! locale : Armenian (hy-am)
3
+ //! author : Armendarabyan : https://github.com/armendarabyan
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
4
11
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
12
  function monthsCaseReplace(m, format) {
15
13
  var months = {
16
14
  'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
17
15
  'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
18
16
  },
19
-
20
17
  nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
21
18
  'accusative' :
22
19
  'nominative';
23
-
24
20
  return months[nounCase][m.month()];
25
21
  }
26
-
27
22
  function monthsShortCaseReplace(m, format) {
28
23
  var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
29
-
30
24
  return monthsShort[m.month()];
31
25
  }
32
-
33
26
  function weekdaysCaseReplace(m, format) {
34
27
  var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
35
-
36
28
  return weekdays[m.day()];
37
29
  }
38
30
 
39
- return moment.defineLocale('hy-am', {
31
+ var hy_am = moment.defineLocale('hy-am', {
40
32
  months : monthsCaseReplace,
41
33
  monthsShort : monthsShortCaseReplace,
42
34
  weekdays : weekdaysCaseReplace,
@@ -77,7 +69,6 @@
77
69
  y : 'տարի',
78
70
  yy : '%d տարի'
79
71
  },
80
-
81
72
  meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
82
73
  isPM: function (input) {
83
74
  return /^(ցերեկվա|երեկոյան)$/.test(input);
@@ -93,7 +84,6 @@
93
84
  return 'երեկոյան';
94
85
  }
95
86
  },
96
-
97
87
  ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
98
88
  ordinal: function (number, period) {
99
89
  switch (period) {
@@ -109,10 +99,12 @@
109
99
  return number;
110
100
  }
111
101
  },
112
-
113
102
  week : {
114
103
  dow : 1, // Monday is the first day of the week.
115
104
  doy : 7 // The week that contains Jan 1st is the first week of the year.
116
105
  }
117
106
  });
118
- }));
107
+
108
+ return hy_am;
109
+
110
+ }));
@@ -1,18 +1,16 @@
1
- // moment.js locale configuration
2
- // locale : Bahasa Indonesia (id)
3
- // author : Mohammad Satrio Utomo : https://github.com/tyok
4
- // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
1
+ //! moment.js locale configuration
2
+ //! locale : Bahasa Indonesia (id)
3
+ //! author : Mohammad Satrio Utomo : https://github.com/tyok
4
+ //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
5
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
- }
14
- }(function (moment) {
15
- return moment.defineLocale('id', {
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, function (moment) { 'use strict';
11
+
12
+
13
+ var id = moment.defineLocale('id', {
16
14
  months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
17
15
  monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
18
16
  weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
@@ -78,4 +76,7 @@
78
76
  doy : 7 // The week that contains Jan 1st is the first week of the year.
79
77
  }
80
78
  });
81
- }));
79
+
80
+ return id;
81
+
82
+ }));