effective_bootstrap 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/app/assets/javascripts/effective_date/input.js +1 -1
  4. data/app/assets/javascripts/effective_datetime/input.js +1 -1
  5. data/app/assets/javascripts/effective_time/input.js +1 -1
  6. data/app/assets/javascripts/moment/locale/af.js +72 -0
  7. data/app/assets/javascripts/moment/locale/ar-dz.js +58 -0
  8. data/app/assets/javascripts/moment/locale/ar-kw.js +58 -0
  9. data/app/assets/javascripts/moment/locale/ar-ly.js +121 -0
  10. data/app/assets/javascripts/moment/locale/ar-ma.js +58 -0
  11. data/app/assets/javascripts/moment/locale/ar-sa.js +103 -0
  12. data/app/assets/javascripts/moment/locale/ar-tn.js +58 -0
  13. data/app/assets/javascripts/moment/locale/ar.js +134 -0
  14. data/app/assets/javascripts/moment/locale/az.js +104 -0
  15. data/app/assets/javascripts/moment/locale/be.js +131 -0
  16. data/app/assets/javascripts/moment/locale/bg.js +89 -0
  17. data/app/assets/javascripts/moment/locale/bm.js +57 -0
  18. data/app/assets/javascripts/moment/locale/bn.js +118 -0
  19. data/app/assets/javascripts/moment/locale/bo.js +118 -0
  20. data/app/assets/javascripts/moment/locale/br.js +107 -0
  21. data/app/assets/javascripts/moment/locale/bs.js +150 -0
  22. data/app/assets/javascripts/moment/locale/ca.js +87 -0
  23. data/app/assets/javascripts/moment/locale/cs.js +171 -0
  24. data/app/assets/javascripts/moment/locale/cv.js +62 -0
  25. data/app/assets/javascripts/moment/locale/cy.js +79 -0
  26. data/app/assets/javascripts/moment/locale/da.js +59 -0
  27. data/app/assets/javascripts/moment/locale/de-at.js +75 -0
  28. data/app/assets/javascripts/moment/locale/de-ch.js +75 -0
  29. data/app/assets/javascripts/moment/locale/de.js +75 -0
  30. data/app/assets/javascripts/moment/locale/dv.js +98 -0
  31. data/app/assets/javascripts/moment/locale/el.js +99 -0
  32. data/app/assets/javascripts/moment/locale/en-SG.js +66 -0
  33. data/app/assets/javascripts/moment/locale/en-au.js +66 -0
  34. data/app/assets/javascripts/moment/locale/en-ca.js +62 -0
  35. data/app/assets/javascripts/moment/locale/en-gb.js +66 -0
  36. data/app/assets/javascripts/moment/locale/en-ie.js +66 -0
  37. data/app/assets/javascripts/moment/locale/en-il.js +61 -0
  38. data/app/assets/javascripts/moment/locale/en-nz.js +66 -0
  39. data/app/assets/javascripts/moment/locale/eo.js +70 -0
  40. data/app/assets/javascripts/moment/locale/es-do.js +91 -0
  41. data/app/assets/javascripts/moment/locale/es-us.js +91 -0
  42. data/app/assets/javascripts/moment/locale/es.js +91 -0
  43. data/app/assets/javascripts/moment/locale/et.js +79 -0
  44. data/app/assets/javascripts/moment/locale/eu.js +65 -0
  45. data/app/assets/javascripts/moment/locale/fa.js +105 -0
  46. data/app/assets/javascripts/moment/locale/fi.js +108 -0
  47. data/app/assets/javascripts/moment/locale/fo.js +59 -0
  48. data/app/assets/javascripts/moment/locale/fr-ca.js +73 -0
  49. data/app/assets/javascripts/moment/locale/fr-ch.js +77 -0
  50. data/app/assets/javascripts/moment/locale/fr.js +82 -0
  51. data/app/assets/javascripts/moment/locale/fy.js +74 -0
  52. data/app/assets/javascripts/moment/locale/ga.js +76 -0
  53. data/app/assets/javascripts/moment/locale/gd.js +75 -0
  54. data/app/assets/javascripts/moment/locale/gl.js +76 -0
  55. data/app/assets/javascripts/moment/locale/gom-latn.js +122 -0
  56. data/app/assets/javascripts/moment/locale/gu.js +123 -0
  57. data/app/assets/javascripts/moment/locale/he.js +96 -0
  58. data/app/assets/javascripts/moment/locale/hi.js +123 -0
  59. data/app/assets/javascripts/moment/locale/hr.js +153 -0
  60. data/app/assets/javascripts/moment/locale/hu.js +109 -0
  61. data/app/assets/javascripts/moment/locale/hy-am.js +94 -0
  62. data/app/assets/javascripts/moment/locale/id.js +81 -0
  63. data/app/assets/javascripts/moment/locale/is.js +131 -0
  64. data/app/assets/javascripts/moment/locale/it-ch.js +68 -0
  65. data/app/assets/javascripts/moment/locale/it.js +68 -0
  66. data/app/assets/javascripts/moment/locale/ja.js +91 -0
  67. data/app/assets/javascripts/moment/locale/jv.js +81 -0
  68. data/app/assets/javascripts/moment/locale/ka.js +88 -0
  69. data/app/assets/javascripts/moment/locale/kk.js +86 -0
  70. data/app/assets/javascripts/moment/locale/km.js +109 -0
  71. data/app/assets/javascripts/moment/locale/kn.js +125 -0
  72. data/app/assets/javascripts/moment/locale/ko.js +80 -0
  73. data/app/assets/javascripts/moment/locale/ku.js +118 -0
  74. data/app/assets/javascripts/moment/locale/ky.js +86 -0
  75. data/app/assets/javascripts/moment/locale/lb.js +135 -0
  76. data/app/assets/javascripts/moment/locale/lo.js +69 -0
  77. data/app/assets/javascripts/moment/locale/lt.js +117 -0
  78. data/app/assets/javascripts/moment/locale/lv.js +96 -0
  79. data/app/assets/javascripts/moment/locale/me.js +111 -0
  80. data/app/assets/javascripts/moment/locale/mi.js +63 -0
  81. data/app/assets/javascripts/moment/locale/mk.js +89 -0
  82. data/app/assets/javascripts/moment/locale/ml.js +80 -0
  83. data/app/assets/javascripts/moment/locale/mn.js +103 -0
  84. data/app/assets/javascripts/moment/locale/mr.js +159 -0
  85. data/app/assets/javascripts/moment/locale/ms-my.js +81 -0
  86. data/app/assets/javascripts/moment/locale/ms.js +81 -0
  87. data/app/assets/javascripts/moment/locale/mt.js +59 -0
  88. data/app/assets/javascripts/moment/locale/my.js +92 -0
  89. data/app/assets/javascripts/moment/locale/nb.js +61 -0
  90. data/app/assets/javascripts/moment/locale/ne.js +122 -0
  91. data/app/assets/javascripts/moment/locale/nl-be.js +86 -0
  92. data/app/assets/javascripts/moment/locale/nl.js +86 -0
  93. data/app/assets/javascripts/moment/locale/nn.js +59 -0
  94. data/app/assets/javascripts/moment/locale/pa-in.js +123 -0
  95. data/app/assets/javascripts/moment/locale/pl.js +125 -0
  96. data/app/assets/javascripts/moment/locale/pt-br.js +60 -0
  97. data/app/assets/javascripts/moment/locale/pt.js +64 -0
  98. data/app/assets/javascripts/moment/locale/ro.js +74 -0
  99. data/app/assets/javascripts/moment/locale/ru.js +181 -0
  100. data/app/assets/javascripts/moment/locale/sd.js +97 -0
  101. data/app/assets/javascripts/moment/locale/se.js +59 -0
  102. data/app/assets/javascripts/moment/locale/si.js +70 -0
  103. data/app/assets/javascripts/moment/locale/sk.js +155 -0
  104. data/app/assets/javascripts/moment/locale/sl.js +172 -0
  105. data/app/assets/javascripts/moment/locale/sq.js +67 -0
  106. data/app/assets/javascripts/moment/locale/sr-cyrl.js +110 -0
  107. data/app/assets/javascripts/moment/locale/sr.js +110 -0
  108. data/app/assets/javascripts/moment/locale/ss.js +87 -0
  109. data/app/assets/javascripts/moment/locale/sv.js +68 -0
  110. data/app/assets/javascripts/moment/locale/sw.js +58 -0
  111. data/app/assets/javascripts/moment/locale/ta.js +128 -0
  112. data/app/assets/javascripts/moment/locale/te.js +88 -0
  113. data/app/assets/javascripts/moment/locale/tet.js +66 -0
  114. data/app/assets/javascripts/moment/locale/tg.js +115 -0
  115. data/app/assets/javascripts/moment/locale/th.js +66 -0
  116. data/app/assets/javascripts/moment/locale/tl-ph.js +61 -0
  117. data/app/assets/javascripts/moment/locale/tlh.js +121 -0
  118. data/app/assets/javascripts/moment/locale/tr.js +93 -0
  119. data/app/assets/javascripts/moment/locale/tzl.js +90 -0
  120. data/app/assets/javascripts/moment/locale/tzm-latn.js +57 -0
  121. data/app/assets/javascripts/moment/locale/tzm.js +57 -0
  122. data/app/assets/javascripts/moment/locale/ug-cn.js +118 -0
  123. data/app/assets/javascripts/moment/locale/uk.js +153 -0
  124. data/app/assets/javascripts/moment/locale/ur.js +97 -0
  125. data/app/assets/javascripts/moment/locale/uz-latn.js +57 -0
  126. data/app/assets/javascripts/moment/locale/uz.js +57 -0
  127. data/app/assets/javascripts/moment/locale/vi.js +78 -0
  128. data/app/assets/javascripts/moment/locale/x-pseudo.js +67 -0
  129. data/app/assets/javascripts/moment/locale/yo.js +59 -0
  130. data/app/assets/javascripts/moment/locale/zh-cn.js +109 -0
  131. data/app/assets/javascripts/moment/locale/zh-hk.js +102 -0
  132. data/app/assets/javascripts/moment/locale/zh-tw.js +102 -0
  133. data/app/assets/javascripts/moment/moment.js +4603 -0
  134. data/lib/effective_bootstrap/version.rb +1 -1
  135. metadata +129 -2
  136. data/app/assets/javascripts/effective_datetime/moment.js +0 -4535
@@ -0,0 +1,181 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? 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
+ function plural(word, num) {
12
+ var forms = word.split('_');
13
+ 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]);
14
+ }
15
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
16
+ var format = {
17
+ 'ss': withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
18
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
19
+ 'hh': 'час_часа_часов',
20
+ 'dd': 'день_дня_дней',
21
+ 'MM': 'месяц_месяца_месяцев',
22
+ 'yy': 'год_года_лет'
23
+ };
24
+ if (key === 'm') {
25
+ return withoutSuffix ? 'минута' : 'минуту';
26
+ }
27
+ else {
28
+ return number + ' ' + plural(format[key], +number);
29
+ }
30
+ }
31
+ var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
32
+
33
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
34
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
35
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
36
+ var ru = moment.defineLocale('ru', {
37
+ months : {
38
+ format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
39
+ standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
40
+ },
41
+ monthsShort : {
42
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
43
+ format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
44
+ standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
45
+ },
46
+ weekdays : {
47
+ standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
48
+ format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
49
+ isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
50
+ },
51
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
52
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
53
+ monthsParse : monthsParse,
54
+ longMonthsParse : monthsParse,
55
+ shortMonthsParse : monthsParse,
56
+
57
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
58
+ monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
59
+
60
+ // копия предыдущего
61
+ monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
62
+
63
+ // полные названия с падежами
64
+ monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
65
+
66
+ // Выражение, которое соотвествует только сокращённым формам
67
+ monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
68
+ longDateFormat : {
69
+ LT : 'H:mm',
70
+ LTS : 'H:mm:ss',
71
+ L : 'DD.MM.YYYY',
72
+ LL : 'D MMMM YYYY г.',
73
+ LLL : 'D MMMM YYYY г., H:mm',
74
+ LLLL : 'dddd, D MMMM YYYY г., H:mm'
75
+ },
76
+ calendar : {
77
+ sameDay: '[Сегодня, в] LT',
78
+ nextDay: '[Завтра, в] LT',
79
+ lastDay: '[Вчера, в] LT',
80
+ nextWeek: function (now) {
81
+ if (now.week() !== this.week()) {
82
+ switch (this.day()) {
83
+ case 0:
84
+ return '[В следующее] dddd, [в] LT';
85
+ case 1:
86
+ case 2:
87
+ case 4:
88
+ return '[В следующий] dddd, [в] LT';
89
+ case 3:
90
+ case 5:
91
+ case 6:
92
+ return '[В следующую] dddd, [в] LT';
93
+ }
94
+ } else {
95
+ if (this.day() === 2) {
96
+ return '[Во] dddd, [в] LT';
97
+ } else {
98
+ return '[В] dddd, [в] LT';
99
+ }
100
+ }
101
+ },
102
+ lastWeek: function (now) {
103
+ if (now.week() !== this.week()) {
104
+ switch (this.day()) {
105
+ case 0:
106
+ return '[В прошлое] dddd, [в] LT';
107
+ case 1:
108
+ case 2:
109
+ case 4:
110
+ return '[В прошлый] dddd, [в] LT';
111
+ case 3:
112
+ case 5:
113
+ case 6:
114
+ return '[В прошлую] dddd, [в] LT';
115
+ }
116
+ } else {
117
+ if (this.day() === 2) {
118
+ return '[Во] dddd, [в] LT';
119
+ } else {
120
+ return '[В] dddd, [в] LT';
121
+ }
122
+ }
123
+ },
124
+ sameElse: 'L'
125
+ },
126
+ relativeTime : {
127
+ future : 'через %s',
128
+ past : '%s назад',
129
+ s : 'несколько секунд',
130
+ ss : relativeTimeWithPlural,
131
+ m : relativeTimeWithPlural,
132
+ mm : relativeTimeWithPlural,
133
+ h : 'час',
134
+ hh : relativeTimeWithPlural,
135
+ d : 'день',
136
+ dd : relativeTimeWithPlural,
137
+ M : 'месяц',
138
+ MM : relativeTimeWithPlural,
139
+ y : 'год',
140
+ yy : relativeTimeWithPlural
141
+ },
142
+ meridiemParse: /ночи|утра|дня|вечера/i,
143
+ isPM : function (input) {
144
+ return /^(дня|вечера)$/.test(input);
145
+ },
146
+ meridiem : function (hour, minute, isLower) {
147
+ if (hour < 4) {
148
+ return 'ночи';
149
+ } else if (hour < 12) {
150
+ return 'утра';
151
+ } else if (hour < 17) {
152
+ return 'дня';
153
+ } else {
154
+ return 'вечера';
155
+ }
156
+ },
157
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
158
+ ordinal: function (number, period) {
159
+ switch (period) {
160
+ case 'M':
161
+ case 'd':
162
+ case 'DDD':
163
+ return number + '-й';
164
+ case 'D':
165
+ return number + '-го';
166
+ case 'w':
167
+ case 'W':
168
+ return number + '-я';
169
+ default:
170
+ return number;
171
+ }
172
+ },
173
+ week : {
174
+ dow : 1, // Monday is the first day of the week.
175
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
176
+ }
177
+ });
178
+
179
+ return ru;
180
+
181
+ })));
@@ -0,0 +1,97 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? 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 months = [
12
+ 'جنوري',
13
+ 'فيبروري',
14
+ 'مارچ',
15
+ 'اپريل',
16
+ 'مئي',
17
+ 'جون',
18
+ 'جولاءِ',
19
+ 'آگسٽ',
20
+ 'سيپٽمبر',
21
+ 'آڪٽوبر',
22
+ 'نومبر',
23
+ 'ڊسمبر'
24
+ ];
25
+ var days = [
26
+ 'آچر',
27
+ 'سومر',
28
+ 'اڱارو',
29
+ 'اربع',
30
+ 'خميس',
31
+ 'جمع',
32
+ 'ڇنڇر'
33
+ ];
34
+
35
+ var sd = moment.defineLocale('sd', {
36
+ months : months,
37
+ monthsShort : months,
38
+ weekdays : days,
39
+ weekdaysShort : days,
40
+ weekdaysMin : days,
41
+ longDateFormat : {
42
+ LT : 'HH:mm',
43
+ LTS : 'HH:mm:ss',
44
+ L : 'DD/MM/YYYY',
45
+ LL : 'D MMMM YYYY',
46
+ LLL : 'D MMMM YYYY HH:mm',
47
+ LLLL : 'dddd، D MMMM YYYY HH:mm'
48
+ },
49
+ meridiemParse: /صبح|شام/,
50
+ isPM : function (input) {
51
+ return 'شام' === input;
52
+ },
53
+ meridiem : function (hour, minute, isLower) {
54
+ if (hour < 12) {
55
+ return 'صبح';
56
+ }
57
+ return 'شام';
58
+ },
59
+ calendar : {
60
+ sameDay : '[اڄ] LT',
61
+ nextDay : '[سڀاڻي] LT',
62
+ nextWeek : 'dddd [اڳين هفتي تي] LT',
63
+ lastDay : '[ڪالهه] LT',
64
+ lastWeek : '[گزريل هفتي] dddd [تي] LT',
65
+ sameElse : 'L'
66
+ },
67
+ relativeTime : {
68
+ future : '%s پوء',
69
+ past : '%s اڳ',
70
+ s : 'چند سيڪنڊ',
71
+ ss : '%d سيڪنڊ',
72
+ m : 'هڪ منٽ',
73
+ mm : '%d منٽ',
74
+ h : 'هڪ ڪلاڪ',
75
+ hh : '%d ڪلاڪ',
76
+ d : 'هڪ ڏينهن',
77
+ dd : '%d ڏينهن',
78
+ M : 'هڪ مهينو',
79
+ MM : '%d مهينا',
80
+ y : 'هڪ سال',
81
+ yy : '%d سال'
82
+ },
83
+ preparse: function (string) {
84
+ return string.replace(/،/g, ',');
85
+ },
86
+ postformat: function (string) {
87
+ return string.replace(/,/g, '،');
88
+ },
89
+ week : {
90
+ dow : 1, // Monday is the first day of the week.
91
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
92
+ }
93
+ });
94
+
95
+ return sd;
96
+
97
+ })));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? 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 se = moment.defineLocale('se', {
12
+ months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
13
+ monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
14
+ weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
15
+ weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
16
+ weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'HH:mm',
19
+ LTS : 'HH:mm:ss',
20
+ L : 'DD.MM.YYYY',
21
+ LL : 'MMMM D. [b.] YYYY',
22
+ LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
23
+ LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay: '[otne ti] LT',
27
+ nextDay: '[ihttin ti] LT',
28
+ nextWeek: 'dddd [ti] LT',
29
+ lastDay: '[ikte ti] LT',
30
+ lastWeek: '[ovddit] dddd [ti] LT',
31
+ sameElse: 'L'
32
+ },
33
+ relativeTime : {
34
+ future : '%s geažes',
35
+ past : 'maŋit %s',
36
+ s : 'moadde sekunddat',
37
+ ss: '%d sekunddat',
38
+ m : 'okta minuhta',
39
+ mm : '%d minuhtat',
40
+ h : 'okta diimmu',
41
+ hh : '%d diimmut',
42
+ d : 'okta beaivi',
43
+ dd : '%d beaivvit',
44
+ M : 'okta mánnu',
45
+ MM : '%d mánut',
46
+ y : 'okta jahki',
47
+ yy : '%d jagit'
48
+ },
49
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return se;
58
+
59
+ })));
@@ -0,0 +1,70 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? 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
+ /*jshint -W100*/
12
+ var si = moment.defineLocale('si', {
13
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
14
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
15
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
16
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
17
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
18
+ weekdaysParseExact : true,
19
+ longDateFormat : {
20
+ LT : 'a h:mm',
21
+ LTS : 'a h:mm:ss',
22
+ L : 'YYYY/MM/DD',
23
+ LL : 'YYYY MMMM D',
24
+ LLL : 'YYYY MMMM D, a h:mm',
25
+ LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
26
+ },
27
+ calendar : {
28
+ sameDay : '[අද] LT[ට]',
29
+ nextDay : '[හෙට] LT[ට]',
30
+ nextWeek : 'dddd LT[ට]',
31
+ lastDay : '[ඊයේ] LT[ට]',
32
+ lastWeek : '[පසුගිය] dddd LT[ට]',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : '%sකින්',
37
+ past : '%sකට පෙර',
38
+ s : 'තත්පර කිහිපය',
39
+ ss : 'තත්පර %d',
40
+ m : 'මිනිත්තුව',
41
+ mm : 'මිනිත්තු %d',
42
+ h : 'පැය',
43
+ hh : 'පැය %d',
44
+ d : 'දිනය',
45
+ dd : 'දින %d',
46
+ M : 'මාසය',
47
+ MM : 'මාස %d',
48
+ y : 'වසර',
49
+ yy : 'වසර %d'
50
+ },
51
+ dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
52
+ ordinal : function (number) {
53
+ return number + ' වැනි';
54
+ },
55
+ meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
56
+ isPM : function (input) {
57
+ return input === 'ප.ව.' || input === 'පස් වරු';
58
+ },
59
+ meridiem : function (hours, minutes, isLower) {
60
+ if (hours > 11) {
61
+ return isLower ? 'ප.ව.' : 'පස් වරු';
62
+ } else {
63
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
64
+ }
65
+ }
66
+ });
67
+
68
+ return si;
69
+
70
+ })));
@@ -0,0 +1,155 @@
1
+ //! moment.js locale configuration
2
+
3
+ ;(function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined'
5
+ && typeof require === 'function' ? 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 months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
12
+ monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
13
+ function plural(n) {
14
+ return (n > 1) && (n < 5);
15
+ }
16
+ function translate(number, withoutSuffix, key, isFuture) {
17
+ var result = number + ' ';
18
+ switch (key) {
19
+ case 's': // a few seconds / in a few seconds / a few seconds ago
20
+ return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
21
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
22
+ if (withoutSuffix || isFuture) {
23
+ return result + (plural(number) ? 'sekundy' : 'sekúnd');
24
+ } else {
25
+ return result + 'sekundami';
26
+ }
27
+ break;
28
+ case 'm': // a minute / in a minute / a minute ago
29
+ return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
30
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
31
+ if (withoutSuffix || isFuture) {
32
+ return result + (plural(number) ? 'minúty' : 'minút');
33
+ } else {
34
+ return result + 'minútami';
35
+ }
36
+ break;
37
+ case 'h': // an hour / in an hour / an hour ago
38
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
39
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
40
+ if (withoutSuffix || isFuture) {
41
+ return result + (plural(number) ? 'hodiny' : 'hodín');
42
+ } else {
43
+ return result + 'hodinami';
44
+ }
45
+ break;
46
+ case 'd': // a day / in a day / a day ago
47
+ return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
48
+ case 'dd': // 9 days / in 9 days / 9 days ago
49
+ if (withoutSuffix || isFuture) {
50
+ return result + (plural(number) ? 'dni' : 'dní');
51
+ } else {
52
+ return result + 'dňami';
53
+ }
54
+ break;
55
+ case 'M': // a month / in a month / a month ago
56
+ return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
57
+ case 'MM': // 9 months / in 9 months / 9 months ago
58
+ if (withoutSuffix || isFuture) {
59
+ return result + (plural(number) ? 'mesiace' : 'mesiacov');
60
+ } else {
61
+ return result + 'mesiacmi';
62
+ }
63
+ break;
64
+ case 'y': // a year / in a year / a year ago
65
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
66
+ case 'yy': // 9 years / in 9 years / 9 years ago
67
+ if (withoutSuffix || isFuture) {
68
+ return result + (plural(number) ? 'roky' : 'rokov');
69
+ } else {
70
+ return result + 'rokmi';
71
+ }
72
+ break;
73
+ }
74
+ }
75
+
76
+ var sk = moment.defineLocale('sk', {
77
+ months : months,
78
+ monthsShort : monthsShort,
79
+ weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
80
+ weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
81
+ weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
82
+ longDateFormat : {
83
+ LT: 'H:mm',
84
+ LTS : 'H:mm:ss',
85
+ L : 'DD.MM.YYYY',
86
+ LL : 'D. MMMM YYYY',
87
+ LLL : 'D. MMMM YYYY H:mm',
88
+ LLLL : 'dddd D. MMMM YYYY H:mm'
89
+ },
90
+ calendar : {
91
+ sameDay: '[dnes o] LT',
92
+ nextDay: '[zajtra o] LT',
93
+ nextWeek: function () {
94
+ switch (this.day()) {
95
+ case 0:
96
+ return '[v nedeľu o] LT';
97
+ case 1:
98
+ case 2:
99
+ return '[v] dddd [o] LT';
100
+ case 3:
101
+ return '[v stredu o] LT';
102
+ case 4:
103
+ return '[vo štvrtok o] LT';
104
+ case 5:
105
+ return '[v piatok o] LT';
106
+ case 6:
107
+ return '[v sobotu o] LT';
108
+ }
109
+ },
110
+ lastDay: '[včera o] LT',
111
+ lastWeek: function () {
112
+ switch (this.day()) {
113
+ case 0:
114
+ return '[minulú nedeľu o] LT';
115
+ case 1:
116
+ case 2:
117
+ return '[minulý] dddd [o] LT';
118
+ case 3:
119
+ return '[minulú stredu o] LT';
120
+ case 4:
121
+ case 5:
122
+ return '[minulý] dddd [o] LT';
123
+ case 6:
124
+ return '[minulú sobotu o] LT';
125
+ }
126
+ },
127
+ sameElse: 'L'
128
+ },
129
+ relativeTime : {
130
+ future : 'za %s',
131
+ past : 'pred %s',
132
+ s : translate,
133
+ ss : translate,
134
+ m : translate,
135
+ mm : translate,
136
+ h : translate,
137
+ hh : translate,
138
+ d : translate,
139
+ dd : translate,
140
+ M : translate,
141
+ MM : translate,
142
+ y : translate,
143
+ yy : translate
144
+ },
145
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
146
+ ordinal : '%d.',
147
+ week : {
148
+ dow : 1, // Monday is the first day of the week.
149
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
150
+ }
151
+ });
152
+
153
+ return sk;
154
+
155
+ })));