js_stack 1.10.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +6 -6
  4. data/js_stack.gemspec +0 -1
  5. data/lib/js_stack/version.rb +1 -1
  6. data/lib/js_stack.rb +0 -1
  7. data/vendor/assets/javascripts/js_stack/base/backbone/1.2.3.js +1894 -0
  8. data/vendor/assets/javascripts/js_stack/base/backbone.js +1 -1
  9. data/vendor/assets/javascripts/js_stack/base/marionette/{2.4.1.js → 2.4.3.js} +265 -138
  10. data/vendor/assets/javascripts/js_stack/base/marionette.js +1 -1
  11. data/vendor/assets/javascripts/js_stack/plugins/backbone/stickit/{0.9.0.js → 0.9.2.js} +1 -1
  12. data/vendor/assets/javascripts/js_stack/plugins/backbone.stickit.js +1 -1
  13. data/vendor/assets/javascripts/js_stack/plugins/moment/2.10.6.js +3195 -0
  14. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/af.js +72 -0
  15. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-ma.js +58 -0
  16. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-sa.js +102 -0
  17. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-tn.js +56 -0
  18. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar.js +135 -0
  19. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/az.js +103 -0
  20. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/be.js +146 -0
  21. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bg.js +89 -0
  22. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bn.js +112 -0
  23. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bo.js +109 -0
  24. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/br.js +106 -0
  25. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bs.js +140 -0
  26. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ca.js +78 -0
  27. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cs.js +156 -0
  28. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cv.js +62 -0
  29. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cy.js +78 -0
  30. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/da.js +59 -0
  31. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de-at.js +75 -0
  32. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de.js +74 -0
  33. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/el.js +93 -0
  34. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-au.js +65 -0
  35. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-ca.js +62 -0
  36. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-gb.js +66 -0
  37. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eo.js +72 -0
  38. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/es.js +78 -0
  39. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/et.js +79 -0
  40. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eu.js +63 -0
  41. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fa.js +104 -0
  42. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fi.js +106 -0
  43. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fo.js +59 -0
  44. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr-ca.js +57 -0
  45. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr.js +61 -0
  46. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fy.js +70 -0
  47. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/gl.js +74 -0
  48. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/he.js +81 -0
  49. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hi.js +122 -0
  50. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hr.js +139 -0
  51. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hu.js +108 -0
  52. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hy-am.js +110 -0
  53. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/id.js +82 -0
  54. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/is.js +126 -0
  55. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/it.js +69 -0
  56. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ja.js +64 -0
  57. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/jv.js +82 -0
  58. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ka.js +102 -0
  59. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/km.js +57 -0
  60. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ko.js +67 -0
  61. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lb.js +133 -0
  62. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lt.js +124 -0
  63. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lv.js +95 -0
  64. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/me.js +108 -0
  65. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mk.js +89 -0
  66. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ml.js +70 -0
  67. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mr.js +120 -0
  68. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms-my.js +81 -0
  69. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms.js +81 -0
  70. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/my.js +92 -0
  71. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nb.js +60 -0
  72. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ne.js +122 -0
  73. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nl.js +70 -0
  74. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nn.js +59 -0
  75. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pl.js +104 -0
  76. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt-br.js +59 -0
  77. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt.js +63 -0
  78. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ro.js +73 -0
  79. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ru.js +163 -0
  80. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/si.js +64 -0
  81. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sk.js +157 -0
  82. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sl.js +159 -0
  83. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sq.js +68 -0
  84. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr-cyrl.js +107 -0
  85. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr.js +107 -0
  86. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sv.js +66 -0
  87. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ta.js +94 -0
  88. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/th.js +64 -0
  89. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tl-ph.js +61 -0
  90. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tr.js +89 -0
  91. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzl.js +84 -0
  92. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm-latn.js +57 -0
  93. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm.js +57 -0
  94. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uk.js +152 -0
  95. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uz.js +57 -0
  96. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/vi.js +65 -0
  97. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-cn.js +126 -0
  98. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-tw.js +100 -0
  99. data/vendor/assets/javascripts/js_stack/plugins/moment.js +1 -1
  100. data/vendor/assets/javascripts/js_stack/plugins/underscore/string/3.2.2.js +1186 -0
  101. data/vendor/assets/javascripts/js_stack/plugins/underscore.string.js +1 -1
  102. metadata +93 -20
@@ -0,0 +1,89 @@
1
+ //! moment.js locale configuration
2
+ //! locale : bulgarian (bg)
3
+ //! author : Krasen Borisov : https://github.com/kraz
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
+
11
+
12
+ var bg = moment.defineLocale('bg', {
13
+ months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
14
+ monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
15
+ weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
16
+ weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
17
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'H:mm',
20
+ LTS : 'H:mm:ss',
21
+ L : 'D.MM.YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY H:mm',
24
+ LLLL : 'dddd, D MMMM YYYY H:mm'
25
+ },
26
+ calendar : {
27
+ sameDay : '[Днес в] LT',
28
+ nextDay : '[Утре в] LT',
29
+ nextWeek : 'dddd [в] LT',
30
+ lastDay : '[Вчера в] LT',
31
+ lastWeek : function () {
32
+ switch (this.day()) {
33
+ case 0:
34
+ case 3:
35
+ case 6:
36
+ return '[В изминалата] dddd [в] LT';
37
+ case 1:
38
+ case 2:
39
+ case 4:
40
+ case 5:
41
+ return '[В изминалия] dddd [в] LT';
42
+ }
43
+ },
44
+ sameElse : 'L'
45
+ },
46
+ relativeTime : {
47
+ future : 'след %s',
48
+ past : 'преди %s',
49
+ s : 'няколко секунди',
50
+ m : 'минута',
51
+ mm : '%d минути',
52
+ h : 'час',
53
+ hh : '%d часа',
54
+ d : 'ден',
55
+ dd : '%d дни',
56
+ M : 'месец',
57
+ MM : '%d месеца',
58
+ y : 'година',
59
+ yy : '%d години'
60
+ },
61
+ ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
62
+ ordinal : function (number) {
63
+ var lastDigit = number % 10,
64
+ last2Digits = number % 100;
65
+ if (number === 0) {
66
+ return number + '-ев';
67
+ } else if (last2Digits === 0) {
68
+ return number + '-ен';
69
+ } else if (last2Digits > 10 && last2Digits < 20) {
70
+ return number + '-ти';
71
+ } else if (lastDigit === 1) {
72
+ return number + '-ви';
73
+ } else if (lastDigit === 2) {
74
+ return number + '-ри';
75
+ } else if (lastDigit === 7 || lastDigit === 8) {
76
+ return number + '-ми';
77
+ } else {
78
+ return number + '-ти';
79
+ }
80
+ },
81
+ week : {
82
+ dow : 1, // Monday is the first day of the week.
83
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
84
+ }
85
+ });
86
+
87
+ return bg;
88
+
89
+ }));
@@ -0,0 +1,112 @@
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
+
11
+
12
+ var symbolMap = {
13
+ '1': '১',
14
+ '2': '২',
15
+ '3': '৩',
16
+ '4': '৪',
17
+ '5': '৫',
18
+ '6': '৬',
19
+ '7': '৭',
20
+ '8': '৮',
21
+ '9': '৯',
22
+ '0': '০'
23
+ },
24
+ numberMap = {
25
+ '১': '1',
26
+ '২': '2',
27
+ '৩': '3',
28
+ '৪': '4',
29
+ '৫': '5',
30
+ '৬': '6',
31
+ '৭': '7',
32
+ '৮': '8',
33
+ '৯': '9',
34
+ '০': '0'
35
+ };
36
+
37
+ var bn = moment.defineLocale('bn', {
38
+ months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
39
+ monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
40
+ weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
41
+ weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
42
+ weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
43
+ longDateFormat : {
44
+ LT : 'A h:mm সময়',
45
+ LTS : 'A h:mm:ss সময়',
46
+ L : 'DD/MM/YYYY',
47
+ LL : 'D MMMM YYYY',
48
+ LLL : 'D MMMM YYYY, A h:mm সময়',
49
+ LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
50
+ },
51
+ calendar : {
52
+ sameDay : '[আজ] LT',
53
+ nextDay : '[আগামীকাল] LT',
54
+ nextWeek : 'dddd, LT',
55
+ lastDay : '[গতকাল] LT',
56
+ lastWeek : '[গত] dddd, LT',
57
+ sameElse : 'L'
58
+ },
59
+ relativeTime : {
60
+ future : '%s পরে',
61
+ past : '%s আগে',
62
+ s : 'কএক সেকেন্ড',
63
+ m : 'এক মিনিট',
64
+ mm : '%d মিনিট',
65
+ h : 'এক ঘন্টা',
66
+ hh : '%d ঘন্টা',
67
+ d : 'এক দিন',
68
+ dd : '%d দিন',
69
+ M : 'এক মাস',
70
+ MM : '%d মাস',
71
+ y : 'এক বছর',
72
+ yy : '%d বছর'
73
+ },
74
+ preparse: function (string) {
75
+ return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
76
+ return numberMap[match];
77
+ });
78
+ },
79
+ postformat: function (string) {
80
+ return string.replace(/\d/g, function (match) {
81
+ return symbolMap[match];
82
+ });
83
+ },
84
+ meridiemParse: /রাত|সকাল|দুপুর|বিকেল|রাত/,
85
+ isPM: function (input) {
86
+ return /^(দুপুর|বিকেল|রাত)$/.test(input);
87
+ },
88
+ //Bengali is a vast language its spoken
89
+ //in different forms in various parts of the world.
90
+ //I have just generalized with most common one used
91
+ meridiem : function (hour, minute, isLower) {
92
+ if (hour < 4) {
93
+ return 'রাত';
94
+ } else if (hour < 10) {
95
+ return 'সকাল';
96
+ } else if (hour < 17) {
97
+ return 'দুপুর';
98
+ } else if (hour < 20) {
99
+ return 'বিকেল';
100
+ } else {
101
+ return 'রাত';
102
+ }
103
+ },
104
+ week : {
105
+ dow : 0, // Sunday is the first day of the week.
106
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
107
+ }
108
+ });
109
+
110
+ return bn;
111
+
112
+ }));
@@ -0,0 +1,109 @@
1
+ //! moment.js locale configuration
2
+ //! locale : tibetan (bo)
3
+ //! author : Thupten N. Chakrishar : https://github.com/vajradog
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
+
11
+
12
+ var symbolMap = {
13
+ '1': '༡',
14
+ '2': '༢',
15
+ '3': '༣',
16
+ '4': '༤',
17
+ '5': '༥',
18
+ '6': '༦',
19
+ '7': '༧',
20
+ '8': '༨',
21
+ '9': '༩',
22
+ '0': '༠'
23
+ },
24
+ numberMap = {
25
+ '༡': '1',
26
+ '༢': '2',
27
+ '༣': '3',
28
+ '༤': '4',
29
+ '༥': '5',
30
+ '༦': '6',
31
+ '༧': '7',
32
+ '༨': '8',
33
+ '༩': '9',
34
+ '༠': '0'
35
+ };
36
+
37
+ var bo = moment.defineLocale('bo', {
38
+ months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
39
+ monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
40
+ weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
41
+ weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
42
+ weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
43
+ longDateFormat : {
44
+ LT : 'A h:mm',
45
+ LTS : 'A h:mm:ss',
46
+ L : 'DD/MM/YYYY',
47
+ LL : 'D MMMM YYYY',
48
+ LLL : 'D MMMM YYYY, A h:mm',
49
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
50
+ },
51
+ calendar : {
52
+ sameDay : '[དི་རིང] LT',
53
+ nextDay : '[སང་ཉིན] LT',
54
+ nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
55
+ lastDay : '[ཁ་སང] LT',
56
+ lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
57
+ sameElse : 'L'
58
+ },
59
+ relativeTime : {
60
+ future : '%s ལ་',
61
+ past : '%s སྔན་ལ',
62
+ s : 'ལམ་སང',
63
+ m : 'སྐར་མ་གཅིག',
64
+ mm : '%d སྐར་མ',
65
+ h : 'ཆུ་ཚོད་གཅིག',
66
+ hh : '%d ཆུ་ཚོད',
67
+ d : 'ཉིན་གཅིག',
68
+ dd : '%d ཉིན་',
69
+ M : 'ཟླ་བ་གཅིག',
70
+ MM : '%d ཟླ་བ',
71
+ y : 'ལོ་གཅིག',
72
+ yy : '%d ལོ'
73
+ },
74
+ preparse: function (string) {
75
+ return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
76
+ return numberMap[match];
77
+ });
78
+ },
79
+ postformat: function (string) {
80
+ return string.replace(/\d/g, function (match) {
81
+ return symbolMap[match];
82
+ });
83
+ },
84
+ meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
85
+ isPM: function (input) {
86
+ return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);
87
+ },
88
+ meridiem : function (hour, minute, isLower) {
89
+ if (hour < 4) {
90
+ return 'མཚན་མོ';
91
+ } else if (hour < 10) {
92
+ return 'ཞོགས་ཀས';
93
+ } else if (hour < 17) {
94
+ return 'ཉིན་གུང';
95
+ } else if (hour < 20) {
96
+ return 'དགོང་དག';
97
+ } else {
98
+ return 'མཚན་མོ';
99
+ }
100
+ },
101
+ week : {
102
+ dow : 0, // Sunday is the first day of the week.
103
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
104
+ }
105
+ });
106
+
107
+ return bo;
108
+
109
+ }));
@@ -0,0 +1,106 @@
1
+ //! moment.js locale configuration
2
+ //! locale : breton (br)
3
+ //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
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
+
11
+
12
+ function relativeTimeWithMutation(number, withoutSuffix, key) {
13
+ var format = {
14
+ 'mm': 'munutenn',
15
+ 'MM': 'miz',
16
+ 'dd': 'devezh'
17
+ };
18
+ return number + ' ' + mutation(format[key], number);
19
+ }
20
+ function specialMutationForYears(number) {
21
+ switch (lastNumber(number)) {
22
+ case 1:
23
+ case 3:
24
+ case 4:
25
+ case 5:
26
+ case 9:
27
+ return number + ' bloaz';
28
+ default:
29
+ return number + ' vloaz';
30
+ }
31
+ }
32
+ function lastNumber(number) {
33
+ if (number > 9) {
34
+ return lastNumber(number % 10);
35
+ }
36
+ return number;
37
+ }
38
+ function mutation(text, number) {
39
+ if (number === 2) {
40
+ return softMutation(text);
41
+ }
42
+ return text;
43
+ }
44
+ function softMutation(text) {
45
+ var mutationTable = {
46
+ 'm': 'v',
47
+ 'b': 'v',
48
+ 'd': 'z'
49
+ };
50
+ if (mutationTable[text.charAt(0)] === undefined) {
51
+ return text;
52
+ }
53
+ return mutationTable[text.charAt(0)] + text.substring(1);
54
+ }
55
+
56
+ var br = moment.defineLocale('br', {
57
+ months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
58
+ monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
59
+ weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
60
+ weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
61
+ weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
62
+ longDateFormat : {
63
+ LT : 'h[e]mm A',
64
+ LTS : 'h[e]mm:ss A',
65
+ L : 'DD/MM/YYYY',
66
+ LL : 'D [a viz] MMMM YYYY',
67
+ LLL : 'D [a viz] MMMM YYYY h[e]mm A',
68
+ LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
69
+ },
70
+ calendar : {
71
+ sameDay : '[Hiziv da] LT',
72
+ nextDay : '[Warc\'hoazh da] LT',
73
+ nextWeek : 'dddd [da] LT',
74
+ lastDay : '[Dec\'h da] LT',
75
+ lastWeek : 'dddd [paset da] LT',
76
+ sameElse : 'L'
77
+ },
78
+ relativeTime : {
79
+ future : 'a-benn %s',
80
+ past : '%s \'zo',
81
+ s : 'un nebeud segondennoù',
82
+ m : 'ur vunutenn',
83
+ mm : relativeTimeWithMutation,
84
+ h : 'un eur',
85
+ hh : '%d eur',
86
+ d : 'un devezh',
87
+ dd : relativeTimeWithMutation,
88
+ M : 'ur miz',
89
+ MM : relativeTimeWithMutation,
90
+ y : 'ur bloaz',
91
+ yy : specialMutationForYears
92
+ },
93
+ ordinalParse: /\d{1,2}(añ|vet)/,
94
+ ordinal : function (number) {
95
+ var output = (number === 1) ? 'añ' : 'vet';
96
+ return number + output;
97
+ },
98
+ week : {
99
+ dow : 1, // Monday is the first day of the week.
100
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
101
+ }
102
+ });
103
+
104
+ return br;
105
+
106
+ }));
@@ -0,0 +1,140 @@
1
+ //! moment.js locale configuration
2
+ //! locale : bosnian (bs)
3
+ //! author : Nedim Cholich : https://github.com/frontyard
4
+ //! based on (hr) translation by Bojan Marković
5
+
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
+ function translate(number, withoutSuffix, key) {
14
+ var result = number + ' ';
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;
63
+ }
64
+ }
65
+
66
+ var bs = moment.defineLocale('bs', {
67
+ months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
68
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
69
+ weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
70
+ weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
71
+ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
72
+ longDateFormat : {
73
+ LT : 'H:mm',
74
+ LTS : 'H:mm:ss',
75
+ L : 'DD. MM. YYYY',
76
+ LL : 'D. MMMM YYYY',
77
+ LLL : 'D. MMMM YYYY H:mm',
78
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
79
+ },
80
+ calendar : {
81
+ sameDay : '[danas u] LT',
82
+ nextDay : '[sutra u] LT',
83
+ nextWeek : function () {
84
+ switch (this.day()) {
85
+ case 0:
86
+ return '[u] [nedjelju] [u] LT';
87
+ case 3:
88
+ return '[u] [srijedu] [u] LT';
89
+ case 6:
90
+ return '[u] [subotu] [u] LT';
91
+ case 1:
92
+ case 2:
93
+ case 4:
94
+ case 5:
95
+ return '[u] dddd [u] LT';
96
+ }
97
+ },
98
+ lastDay : '[jučer u] LT',
99
+ lastWeek : function () {
100
+ switch (this.day()) {
101
+ case 0:
102
+ case 3:
103
+ return '[prošlu] dddd [u] LT';
104
+ case 6:
105
+ return '[prošle] [subote] [u] LT';
106
+ case 1:
107
+ case 2:
108
+ case 4:
109
+ case 5:
110
+ return '[prošli] dddd [u] LT';
111
+ }
112
+ },
113
+ sameElse : 'L'
114
+ },
115
+ relativeTime : {
116
+ future : 'za %s',
117
+ past : 'prije %s',
118
+ s : 'par sekundi',
119
+ m : translate,
120
+ mm : translate,
121
+ h : translate,
122
+ hh : translate,
123
+ d : 'dan',
124
+ dd : translate,
125
+ M : 'mjesec',
126
+ MM : translate,
127
+ y : 'godinu',
128
+ yy : translate
129
+ },
130
+ ordinalParse: /\d{1,2}\./,
131
+ ordinal : '%d.',
132
+ week : {
133
+ dow : 1, // Monday is the first day of the week.
134
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
135
+ }
136
+ });
137
+
138
+ return bs;
139
+
140
+ }));
@@ -0,0 +1,78 @@
1
+ //! moment.js locale configuration
2
+ //! locale : catalan (ca)
3
+ //! author : Juan G. Hurtado : https://github.com/juanghurtado
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
+
11
+
12
+ var ca = moment.defineLocale('ca', {
13
+ months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
14
+ monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
15
+ weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
16
+ weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
17
+ weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'H:mm',
20
+ LTS : 'LT:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY H:mm',
24
+ LLLL : 'dddd D MMMM YYYY H:mm'
25
+ },
26
+ calendar : {
27
+ sameDay : function () {
28
+ return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
29
+ },
30
+ nextDay : function () {
31
+ return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
32
+ },
33
+ nextWeek : function () {
34
+ return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
35
+ },
36
+ lastDay : function () {
37
+ return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
38
+ },
39
+ lastWeek : function () {
40
+ return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
41
+ },
42
+ sameElse : 'L'
43
+ },
44
+ relativeTime : {
45
+ future : 'en %s',
46
+ past : 'fa %s',
47
+ s : 'uns segons',
48
+ m : 'un minut',
49
+ mm : '%d minuts',
50
+ h : 'una hora',
51
+ hh : '%d hores',
52
+ d : 'un dia',
53
+ dd : '%d dies',
54
+ M : 'un mes',
55
+ MM : '%d mesos',
56
+ y : 'un any',
57
+ yy : '%d anys'
58
+ },
59
+ ordinalParse: /\d{1,2}(r|n|t|è|a)/,
60
+ ordinal : function (number, period) {
61
+ var output = (number === 1) ? 'r' :
62
+ (number === 2) ? 'n' :
63
+ (number === 3) ? 'r' :
64
+ (number === 4) ? 't' : 'è';
65
+ if (period === 'w' || period === 'W') {
66
+ output = 'a';
67
+ }
68
+ return number + output;
69
+ },
70
+ week : {
71
+ dow : 1, // Monday is the first day of the week.
72
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
73
+ }
74
+ });
75
+
76
+ return ca;
77
+
78
+ }));