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 : afrikaans (af)
3
- // author : Werner Mollentze : https://github.com/wernerm
1
+ //! moment.js locale configuration
2
+ //! locale : afrikaans (af)
3
+ //! author : Werner Mollentze : https://github.com/wernerm
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('af', {
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 af = moment.defineLocale('af', {
15
13
  months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
16
14
  monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
17
15
  weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
@@ -68,4 +66,7 @@
68
66
  doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
69
67
  }
70
68
  });
71
- }));
69
+
70
+ return af;
71
+
72
+ }));
@@ -1,18 +1,16 @@
1
- // moment.js locale configuration
2
- // locale : Moroccan Arabic (ar-ma)
3
- // author : ElFadili Yassine : https://github.com/ElFadiliY
4
- // author : Abdel Said : https://github.com/abdelsaid
1
+ //! moment.js locale configuration
2
+ //! locale : Moroccan Arabic (ar-ma)
3
+ //! author : ElFadili Yassine : https://github.com/ElFadiliY
4
+ //! author : Abdel Said : https://github.com/abdelsaid
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('ar-ma', {
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 ar_ma = moment.defineLocale('ar-ma', {
16
14
  months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17
15
  monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
18
16
  weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
@@ -54,4 +52,7 @@
54
52
  doy : 12 // The week that contains Jan 1st is the first week of the year.
55
53
  }
56
54
  });
57
- }));
55
+
56
+ return ar_ma;
57
+
58
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : Arabic Saudi Arabia (ar-sa)
3
- // author : Suhail Alkowaileet : https://github.com/xsoh
1
+ //! moment.js locale configuration
2
+ //! locale : Arabic Saudi Arabia (ar-sa)
3
+ //! author : Suhail Alkowaileet : https://github.com/xsoh
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': '٢',
@@ -35,7 +33,7 @@
35
33
  '٠': '0'
36
34
  };
37
35
 
38
- return moment.defineLocale('ar-sa', {
36
+ var ar_sa = moment.defineLocale('ar-sa', {
39
37
  months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
40
38
  monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
41
39
  weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
@@ -98,4 +96,7 @@
98
96
  doy : 12 // The week that contains Jan 1st is the first week of the year.
99
97
  }
100
98
  });
101
- }));
99
+
100
+ return ar_sa;
101
+
102
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : Tunisian Arabic (ar-tn)
1
+ //! moment.js locale configuration
2
+ //! locale : Tunisian Arabic (ar-tn)
3
3
 
4
- (function (factory) {
5
- if (typeof define === 'function' && define.amd) {
6
- define(['moment'], factory); // AMD
7
- } else if (typeof exports === 'object') {
8
- module.exports = factory(require('../moment')); // Node
9
- } else {
10
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
11
- }
12
- }(function (moment) {
13
- return moment.defineLocale('ar-tn', {
4
+ (function (global, factory) {
5
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
6
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
7
+ factory(global.moment)
8
+ }(this, function (moment) { 'use strict';
9
+
10
+
11
+ var ar_tn = moment.defineLocale('ar-tn', {
14
12
  months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15
13
  monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
16
14
  weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
@@ -52,4 +50,7 @@
52
50
  doy: 4 // The week that contains Jan 4th is the first week of the year.
53
51
  }
54
52
  });
55
- }));
53
+
54
+ return ar_tn;
55
+
56
+ }));
@@ -1,18 +1,16 @@
1
- // moment.js locale configuration
2
- // Locale: Arabic (ar)
3
- // Author: Abdel Said: https://github.com/abdelsaid
4
- // Changes in months, weekdays: Ahmed Elkhatib
5
- // Native plural forms: forabi https://github.com/forabi
1
+ //! moment.js locale configuration
2
+ //! Locale: Arabic (ar)
3
+ //! Author: Abdel Said: https://github.com/abdelsaid
4
+ //! Changes in months, weekdays: Ahmed Elkhatib
5
+ //! Native plural forms: forabi https://github.com/forabi
6
+
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
+
6
13
 
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
14
  var symbolMap = {
17
15
  '1': '١',
18
16
  '2': '٢',
@@ -68,7 +66,7 @@
68
66
  'كانون الأول ديسمبر'
69
67
  ];
70
68
 
71
- return moment.defineLocale('ar', {
69
+ var ar = moment.defineLocale('ar', {
72
70
  months : months,
73
71
  monthsShort : months,
74
72
  weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
@@ -131,4 +129,7 @@
131
129
  doy : 12 // The week that contains Jan 1st is the first week of the year.
132
130
  }
133
131
  });
134
- }));
132
+
133
+ return ar;
134
+
135
+ }));
@@ -1,42 +1,36 @@
1
- // moment.js locale configuration
2
- // locale : azerbaijani (az)
3
- // author : topchiyev : https://github.com/topchiyev
1
+ //! moment.js locale configuration
2
+ //! locale : azerbaijani (az)
3
+ //! author : topchiyev : https://github.com/topchiyev
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 suffixes = {
15
13
  1: '-inci',
16
14
  5: '-inci',
17
15
  8: '-inci',
18
16
  70: '-inci',
19
17
  80: '-inci',
20
-
21
18
  2: '-nci',
22
19
  7: '-nci',
23
20
  20: '-nci',
24
21
  50: '-nci',
25
-
26
22
  3: '-üncü',
27
23
  4: '-üncü',
28
24
  100: '-üncü',
29
-
30
25
  6: '-ncı',
31
-
32
26
  9: '-uncu',
33
27
  10: '-uncu',
34
28
  30: '-uncu',
35
-
36
29
  60: '-ıncı',
37
30
  90: '-ıncı'
38
31
  };
39
- return moment.defineLocale('az', {
32
+
33
+ var az = moment.defineLocale('az', {
40
34
  months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
41
35
  monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
42
36
  weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
@@ -96,7 +90,6 @@
96
90
  var a = number % 10,
97
91
  b = number % 100 - a,
98
92
  c = number >= 100 ? 100 : null;
99
-
100
93
  return number + (suffixes[a] || suffixes[b] || suffixes[c]);
101
94
  },
102
95
  week : {
@@ -104,4 +97,7 @@
104
97
  doy : 7 // The week that contains Jan 1st is the first week of the year.
105
98
  }
106
99
  });
107
- }));
100
+
101
+ return az;
102
+
103
+ }));
@@ -1,23 +1,20 @@
1
- // moment.js locale configuration
2
- // locale : belarusian (be)
3
- // author : Dmitry Demidov : https://github.com/demidov91
4
- // author: Praleska: http://praleska.pro/
5
- // Author : Menelion Elensúle : https://github.com/Oire
1
+ //! moment.js locale configuration
2
+ //! locale : belarusian (be)
3
+ //! author : Dmitry Demidov : https://github.com/demidov91
4
+ //! author: Praleska: http://praleska.pro/
5
+ //! Author : Menelion Elensúle : https://github.com/Oire
6
+
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
+
6
13
 
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
14
  function plural(word, num) {
17
15
  var forms = word.split('_');
18
16
  return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
19
17
  }
20
-
21
18
  function relativeTimeWithPlural(number, withoutSuffix, key) {
22
19
  var format = {
23
20
  'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
@@ -36,34 +33,28 @@
36
33
  return number + ' ' + plural(format[key], +number);
37
34
  }
38
35
  }
39
-
40
36
  function monthsCaseReplace(m, format) {
41
37
  var months = {
42
38
  'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
43
39
  'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
44
40
  },
45
-
46
41
  nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
47
42
  'accusative' :
48
43
  'nominative';
49
-
50
44
  return months[nounCase][m.month()];
51
45
  }
52
-
53
46
  function weekdaysCaseReplace(m, format) {
54
47
  var weekdays = {
55
48
  'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
56
49
  'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
57
50
  },
58
-
59
51
  nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
60
52
  'accusative' :
61
53
  'nominative';
62
-
63
54
  return weekdays[nounCase][m.day()];
64
55
  }
65
56
 
66
- return moment.defineLocale('be', {
57
+ var be = moment.defineLocale('be', {
67
58
  months : monthsCaseReplace,
68
59
  monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
69
60
  weekdays : weekdaysCaseReplace,
@@ -129,7 +120,6 @@
129
120
  return 'вечара';
130
121
  }
131
122
  },
132
-
133
123
  ordinalParse: /\d{1,2}-(і|ы|га)/,
134
124
  ordinal: function (number, period) {
135
125
  switch (period) {
@@ -145,10 +135,12 @@
145
135
  return number;
146
136
  }
147
137
  },
148
-
149
138
  week : {
150
139
  dow : 1, // Monday is the first day of the week.
151
140
  doy : 7 // The week that contains Jan 1st is the first week of the year.
152
141
  }
153
142
  });
154
- }));
143
+
144
+ return be;
145
+
146
+ }));
@@ -1,17 +1,15 @@
1
- // moment.js locale configuration
2
- // locale : bulgarian (bg)
3
- // author : Krasen Borisov : https://github.com/kraz
1
+ //! moment.js locale configuration
2
+ //! locale : bulgarian (bg)
3
+ //! author : Krasen Borisov : https://github.com/kraz
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('bg', {
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 bg = moment.defineLocale('bg', {
15
13
  months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
16
14
  monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
17
15
  weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
@@ -85,4 +83,7 @@
85
83
  doy : 7 // The week that contains Jan 1st is the first week of the year.
86
84
  }
87
85
  });
88
- }));
86
+
87
+ return bg;
88
+
89
+ }));
@@ -1,16 +1,14 @@
1
- // moment.js locale configuration
2
- // locale : Bengali (bn)
3
- // author : Kaushik Gandhi : https://github.com/kaushikgandhi
1
+ //! moment.js locale configuration
2
+ //! locale : Bengali (bn)
3
+ //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
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('bn', {
37
+ var bn = moment.defineLocale('bn', {
40
38
  months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
41
39
  monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
42
40
  weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
@@ -108,4 +106,7 @@
108
106
  doy : 6 // The week that contains Jan 1st is the first week of the year.
109
107
  }
110
108
  });
111
- }));
109
+
110
+ return bn;
111
+
112
+ }));