js_stack 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,163 @@
1
+ //! moment.js locale configuration
2
+ //! locale : russian (ru)
3
+ //! author : Viktorminator : https://github.com/Viktorminator
4
+ //! Author : Menelion Elensúle : https://github.com/Oire
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 plural(word, num) {
14
+ var forms = word.split('_');
15
+ 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]);
16
+ }
17
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
18
+ var format = {
19
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
20
+ 'hh': 'час_часа_часов',
21
+ 'dd': 'день_дня_дней',
22
+ 'MM': 'месяц_месяца_месяцев',
23
+ 'yy': 'год_года_лет'
24
+ };
25
+ if (key === 'm') {
26
+ return withoutSuffix ? 'минута' : 'минуту';
27
+ }
28
+ else {
29
+ return number + ' ' + plural(format[key], +number);
30
+ }
31
+ }
32
+ function monthsCaseReplace(m, format) {
33
+ var months = {
34
+ 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
35
+ 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
36
+ },
37
+ nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
38
+ 'accusative' :
39
+ 'nominative';
40
+ return months[nounCase][m.month()];
41
+ }
42
+ function monthsShortCaseReplace(m, format) {
43
+ var monthsShort = {
44
+ 'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
45
+ 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
46
+ },
47
+ nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
48
+ 'accusative' :
49
+ 'nominative';
50
+ return monthsShort[nounCase][m.month()];
51
+ }
52
+ function weekdaysCaseReplace(m, format) {
53
+ var weekdays = {
54
+ 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
55
+ 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
56
+ },
57
+ nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test(format) ?
58
+ 'accusative' :
59
+ 'nominative';
60
+ return weekdays[nounCase][m.day()];
61
+ }
62
+
63
+ var ru = moment.defineLocale('ru', {
64
+ months : monthsCaseReplace,
65
+ monthsShort : monthsShortCaseReplace,
66
+ weekdays : weekdaysCaseReplace,
67
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
68
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
69
+ monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
70
+ longDateFormat : {
71
+ LT : 'HH:mm',
72
+ LTS : 'HH:mm:ss',
73
+ L : 'DD.MM.YYYY',
74
+ LL : 'D MMMM YYYY г.',
75
+ LLL : 'D MMMM YYYY г., HH:mm',
76
+ LLLL : 'dddd, D MMMM YYYY г., HH:mm'
77
+ },
78
+ calendar : {
79
+ sameDay: '[Сегодня в] LT',
80
+ nextDay: '[Завтра в] LT',
81
+ lastDay: '[Вчера в] LT',
82
+ nextWeek: function () {
83
+ return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
84
+ },
85
+ lastWeek: function (now) {
86
+ if (now.week() !== this.week()) {
87
+ switch (this.day()) {
88
+ case 0:
89
+ return '[В прошлое] dddd [в] LT';
90
+ case 1:
91
+ case 2:
92
+ case 4:
93
+ return '[В прошлый] dddd [в] LT';
94
+ case 3:
95
+ case 5:
96
+ case 6:
97
+ return '[В прошлую] dddd [в] LT';
98
+ }
99
+ } else {
100
+ if (this.day() === 2) {
101
+ return '[Во] dddd [в] LT';
102
+ } else {
103
+ return '[В] dddd [в] LT';
104
+ }
105
+ }
106
+ },
107
+ sameElse: 'L'
108
+ },
109
+ relativeTime : {
110
+ future : 'через %s',
111
+ past : '%s назад',
112
+ s : 'несколько секунд',
113
+ m : relativeTimeWithPlural,
114
+ mm : relativeTimeWithPlural,
115
+ h : 'час',
116
+ hh : relativeTimeWithPlural,
117
+ d : 'день',
118
+ dd : relativeTimeWithPlural,
119
+ M : 'месяц',
120
+ MM : relativeTimeWithPlural,
121
+ y : 'год',
122
+ yy : relativeTimeWithPlural
123
+ },
124
+ meridiemParse: /ночи|утра|дня|вечера/i,
125
+ isPM : function (input) {
126
+ return /^(дня|вечера)$/.test(input);
127
+ },
128
+ meridiem : function (hour, minute, isLower) {
129
+ if (hour < 4) {
130
+ return 'ночи';
131
+ } else if (hour < 12) {
132
+ return 'утра';
133
+ } else if (hour < 17) {
134
+ return 'дня';
135
+ } else {
136
+ return 'вечера';
137
+ }
138
+ },
139
+ ordinalParse: /\d{1,2}-(й|го|я)/,
140
+ ordinal: function (number, period) {
141
+ switch (period) {
142
+ case 'M':
143
+ case 'd':
144
+ case 'DDD':
145
+ return number + '-й';
146
+ case 'D':
147
+ return number + '-го';
148
+ case 'w':
149
+ case 'W':
150
+ return number + '-я';
151
+ default:
152
+ return number;
153
+ }
154
+ },
155
+ week : {
156
+ dow : 1, // Monday is the first day of the week.
157
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
158
+ }
159
+ });
160
+
161
+ return ru;
162
+
163
+ }));
@@ -0,0 +1,64 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Sinhalese (si)
3
+ //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
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 si = moment.defineLocale('si', {
13
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
14
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
15
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
16
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'a h:mm',
20
+ LTS : 'a h:mm:ss',
21
+ L : 'YYYY/MM/DD',
22
+ LL : 'YYYY MMMM D',
23
+ LLL : 'YYYY MMMM D, a h:mm',
24
+ LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
25
+ },
26
+ calendar : {
27
+ sameDay : '[අද] LT[ට]',
28
+ nextDay : '[හෙට] LT[ට]',
29
+ nextWeek : 'dddd LT[ට]',
30
+ lastDay : '[ඊයේ] LT[ට]',
31
+ lastWeek : '[පසුගිය] dddd LT[ට]',
32
+ sameElse : 'L'
33
+ },
34
+ relativeTime : {
35
+ future : '%sකින්',
36
+ past : '%sකට පෙර',
37
+ s : 'තත්පර කිහිපය',
38
+ m : 'මිනිත්තුව',
39
+ mm : 'මිනිත්තු %d',
40
+ h : 'පැය',
41
+ hh : 'පැය %d',
42
+ d : 'දිනය',
43
+ dd : 'දින %d',
44
+ M : 'මාසය',
45
+ MM : 'මාස %d',
46
+ y : 'වසර',
47
+ yy : 'වසර %d'
48
+ },
49
+ ordinalParse: /\d{1,2} වැනි/,
50
+ ordinal : function (number) {
51
+ return number + ' වැනි';
52
+ },
53
+ meridiem : function (hours, minutes, isLower) {
54
+ if (hours > 11) {
55
+ return isLower ? 'ප.ව.' : 'පස් වරු';
56
+ } else {
57
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
58
+ }
59
+ }
60
+ });
61
+
62
+ return si;
63
+
64
+ }));
@@ -0,0 +1,157 @@
1
+ //! moment.js locale configuration
2
+ //! locale : slovak (sk)
3
+ //! author : Martin Minka : https://github.com/k2s
4
+ //! based on work of petrbela : https://github.com/petrbela
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
+ var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
14
+ monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
15
+ function plural(n) {
16
+ return (n > 1) && (n < 5);
17
+ }
18
+ function translate(number, withoutSuffix, key, isFuture) {
19
+ var result = number + ' ';
20
+ switch (key) {
21
+ case 's': // a few seconds / in a few seconds / a few seconds ago
22
+ return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
23
+ case 'm': // a minute / in a minute / a minute ago
24
+ return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
25
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
26
+ if (withoutSuffix || isFuture) {
27
+ return result + (plural(number) ? 'minúty' : 'minút');
28
+ } else {
29
+ return result + 'minútami';
30
+ }
31
+ break;
32
+ case 'h': // an hour / in an hour / an hour ago
33
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
34
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
35
+ if (withoutSuffix || isFuture) {
36
+ return result + (plural(number) ? 'hodiny' : 'hodín');
37
+ } else {
38
+ return result + 'hodinami';
39
+ }
40
+ break;
41
+ case 'd': // a day / in a day / a day ago
42
+ return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
43
+ case 'dd': // 9 days / in 9 days / 9 days ago
44
+ if (withoutSuffix || isFuture) {
45
+ return result + (plural(number) ? 'dni' : 'dní');
46
+ } else {
47
+ return result + 'dňami';
48
+ }
49
+ break;
50
+ case 'M': // a month / in a month / a month ago
51
+ return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
52
+ case 'MM': // 9 months / in 9 months / 9 months ago
53
+ if (withoutSuffix || isFuture) {
54
+ return result + (plural(number) ? 'mesiace' : 'mesiacov');
55
+ } else {
56
+ return result + 'mesiacmi';
57
+ }
58
+ break;
59
+ case 'y': // a year / in a year / a year ago
60
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
61
+ case 'yy': // 9 years / in 9 years / 9 years ago
62
+ if (withoutSuffix || isFuture) {
63
+ return result + (plural(number) ? 'roky' : 'rokov');
64
+ } else {
65
+ return result + 'rokmi';
66
+ }
67
+ break;
68
+ }
69
+ }
70
+
71
+ var sk = moment.defineLocale('sk', {
72
+ months : months,
73
+ monthsShort : monthsShort,
74
+ monthsParse : (function (months, monthsShort) {
75
+ var i, _monthsParse = [];
76
+ for (i = 0; i < 12; i++) {
77
+ // use custom parser to solve problem with July (červenec)
78
+ _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
79
+ }
80
+ return _monthsParse;
81
+ }(months, monthsShort)),
82
+ weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
83
+ weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
84
+ weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
85
+ longDateFormat : {
86
+ LT: 'H:mm',
87
+ LTS : 'H:mm:ss',
88
+ L : 'DD.MM.YYYY',
89
+ LL : 'D. MMMM YYYY',
90
+ LLL : 'D. MMMM YYYY H:mm',
91
+ LLLL : 'dddd D. MMMM YYYY H:mm'
92
+ },
93
+ calendar : {
94
+ sameDay: '[dnes o] LT',
95
+ nextDay: '[zajtra o] LT',
96
+ nextWeek: function () {
97
+ switch (this.day()) {
98
+ case 0:
99
+ return '[v nedeľu o] LT';
100
+ case 1:
101
+ case 2:
102
+ return '[v] dddd [o] LT';
103
+ case 3:
104
+ return '[v stredu o] LT';
105
+ case 4:
106
+ return '[vo štvrtok o] LT';
107
+ case 5:
108
+ return '[v piatok o] LT';
109
+ case 6:
110
+ return '[v sobotu o] LT';
111
+ }
112
+ },
113
+ lastDay: '[včera o] LT',
114
+ lastWeek: function () {
115
+ switch (this.day()) {
116
+ case 0:
117
+ return '[minulú nedeľu o] LT';
118
+ case 1:
119
+ case 2:
120
+ return '[minulý] dddd [o] LT';
121
+ case 3:
122
+ return '[minulú stredu o] LT';
123
+ case 4:
124
+ case 5:
125
+ return '[minulý] dddd [o] LT';
126
+ case 6:
127
+ return '[minulú sobotu o] LT';
128
+ }
129
+ },
130
+ sameElse: 'L'
131
+ },
132
+ relativeTime : {
133
+ future : 'za %s',
134
+ past : 'pred %s',
135
+ s : translate,
136
+ m : translate,
137
+ mm : translate,
138
+ h : translate,
139
+ hh : translate,
140
+ d : translate,
141
+ dd : translate,
142
+ M : translate,
143
+ MM : translate,
144
+ y : translate,
145
+ yy : translate
146
+ },
147
+ ordinalParse: /\d{1,2}\./,
148
+ ordinal : '%d.',
149
+ week : {
150
+ dow : 1, // Monday is the first day of the week.
151
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
152
+ }
153
+ });
154
+
155
+ return sk;
156
+
157
+ }));
@@ -0,0 +1,159 @@
1
+ //! moment.js locale configuration
2
+ //! locale : slovenian (sl)
3
+ //! author : Robert Sedovšek : https://github.com/sedovsek
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 processRelativeTime(number, withoutSuffix, key, isFuture) {
13
+ var result = number + ' ';
14
+ switch (key) {
15
+ case 's':
16
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
17
+ case 'm':
18
+ return withoutSuffix ? 'ena minuta' : 'eno minuto';
19
+ case 'mm':
20
+ if (number === 1) {
21
+ result += withoutSuffix ? 'minuta' : 'minuto';
22
+ } else if (number === 2) {
23
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
24
+ } else if (number < 5) {
25
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
26
+ } else {
27
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
28
+ }
29
+ return result;
30
+ case 'h':
31
+ return withoutSuffix ? 'ena ura' : 'eno uro';
32
+ case 'hh':
33
+ if (number === 1) {
34
+ result += withoutSuffix ? 'ura' : 'uro';
35
+ } else if (number === 2) {
36
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
37
+ } else if (number < 5) {
38
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
39
+ } else {
40
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
41
+ }
42
+ return result;
43
+ case 'd':
44
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
45
+ case 'dd':
46
+ if (number === 1) {
47
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
48
+ } else if (number === 2) {
49
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
50
+ } else {
51
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
52
+ }
53
+ return result;
54
+ case 'M':
55
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
56
+ case 'MM':
57
+ if (number === 1) {
58
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
59
+ } else if (number === 2) {
60
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
61
+ } else if (number < 5) {
62
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
63
+ } else {
64
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
65
+ }
66
+ return result;
67
+ case 'y':
68
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
69
+ case 'yy':
70
+ if (number === 1) {
71
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
72
+ } else if (number === 2) {
73
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
74
+ } else if (number < 5) {
75
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
76
+ } else {
77
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
78
+ }
79
+ return result;
80
+ }
81
+ }
82
+
83
+ var sl = moment.defineLocale('sl', {
84
+ months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
85
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
86
+ weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
87
+ weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
88
+ weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
89
+ longDateFormat : {
90
+ LT : 'H:mm',
91
+ LTS : 'H:mm:ss',
92
+ L : 'DD. MM. YYYY',
93
+ LL : 'D. MMMM YYYY',
94
+ LLL : 'D. MMMM YYYY H:mm',
95
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
96
+ },
97
+ calendar : {
98
+ sameDay : '[danes ob] LT',
99
+ nextDay : '[jutri ob] LT',
100
+
101
+ nextWeek : function () {
102
+ switch (this.day()) {
103
+ case 0:
104
+ return '[v] [nedeljo] [ob] LT';
105
+ case 3:
106
+ return '[v] [sredo] [ob] LT';
107
+ case 6:
108
+ return '[v] [soboto] [ob] LT';
109
+ case 1:
110
+ case 2:
111
+ case 4:
112
+ case 5:
113
+ return '[v] dddd [ob] LT';
114
+ }
115
+ },
116
+ lastDay : '[včeraj ob] LT',
117
+ lastWeek : function () {
118
+ switch (this.day()) {
119
+ case 0:
120
+ return '[prejšnjo] [nedeljo] [ob] LT';
121
+ case 3:
122
+ return '[prejšnjo] [sredo] [ob] LT';
123
+ case 6:
124
+ return '[prejšnjo] [soboto] [ob] LT';
125
+ case 1:
126
+ case 2:
127
+ case 4:
128
+ case 5:
129
+ return '[prejšnji] dddd [ob] LT';
130
+ }
131
+ },
132
+ sameElse : 'L'
133
+ },
134
+ relativeTime : {
135
+ future : 'čez %s',
136
+ past : 'pred %s',
137
+ s : processRelativeTime,
138
+ m : processRelativeTime,
139
+ mm : processRelativeTime,
140
+ h : processRelativeTime,
141
+ hh : processRelativeTime,
142
+ d : processRelativeTime,
143
+ dd : processRelativeTime,
144
+ M : processRelativeTime,
145
+ MM : processRelativeTime,
146
+ y : processRelativeTime,
147
+ yy : processRelativeTime
148
+ },
149
+ ordinalParse: /\d{1,2}\./,
150
+ ordinal : '%d.',
151
+ week : {
152
+ dow : 1, // Monday is the first day of the week.
153
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
154
+ }
155
+ });
156
+
157
+ return sl;
158
+
159
+ }));
@@ -0,0 +1,68 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Albanian (sq)
3
+ //! author : Flakërim Ismani : https://github.com/flakerimi
4
+ //! author: Menelion Elensúle: https://github.com/Oire (tests)
5
+ //! author : Oerd Cukalla : https://github.com/oerd (fixes)
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
+
13
+
14
+ var sq = moment.defineLocale('sq', {
15
+ months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
16
+ monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
17
+ weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
18
+ weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
19
+ weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
20
+ meridiemParse: /PD|MD/,
21
+ isPM: function (input) {
22
+ return input.charAt(0) === 'M';
23
+ },
24
+ meridiem : function (hours, minutes, isLower) {
25
+ return hours < 12 ? 'PD' : 'MD';
26
+ },
27
+ longDateFormat : {
28
+ LT : 'HH:mm',
29
+ LTS : 'HH:mm:ss',
30
+ L : 'DD/MM/YYYY',
31
+ LL : 'D MMMM YYYY',
32
+ LLL : 'D MMMM YYYY HH:mm',
33
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
34
+ },
35
+ calendar : {
36
+ sameDay : '[Sot në] LT',
37
+ nextDay : '[Nesër në] LT',
38
+ nextWeek : 'dddd [në] LT',
39
+ lastDay : '[Dje në] LT',
40
+ lastWeek : 'dddd [e kaluar në] LT',
41
+ sameElse : 'L'
42
+ },
43
+ relativeTime : {
44
+ future : 'në %s',
45
+ past : '%s më parë',
46
+ s : 'disa sekonda',
47
+ m : 'një minutë',
48
+ mm : '%d minuta',
49
+ h : 'një orë',
50
+ hh : '%d orë',
51
+ d : 'një ditë',
52
+ dd : '%d ditë',
53
+ M : 'një muaj',
54
+ MM : '%d muaj',
55
+ y : 'një vit',
56
+ yy : '%d vite'
57
+ },
58
+ ordinalParse: /\d{1,2}\./,
59
+ ordinal : '%d.',
60
+ week : {
61
+ dow : 1, // Monday is the first day of the week.
62
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
63
+ }
64
+ });
65
+
66
+ return sq;
67
+
68
+ }));