cone.calendar 1.1.0__py3-none-any.whl

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 (202) hide show
  1. cone/calendar/__init__.py +20 -0
  2. cone/calendar/browser/__init__.py +88 -0
  3. cone/calendar/browser/calendar.pt +16 -0
  4. cone/calendar/browser/calendar.py +370 -0
  5. cone/calendar/browser/static/calendar/cone.calendar.css +23 -0
  6. cone/calendar/browser/static/calendar/cone.calendar.js +241 -0
  7. cone/calendar/browser/static/calendar/cone.calendar.min.js +1 -0
  8. cone/calendar/browser/static/fullcalendar/fullcalendar.css +1404 -0
  9. cone/calendar/browser/static/fullcalendar/fullcalendar.js +14206 -0
  10. cone/calendar/browser/static/fullcalendar/fullcalendar.min.css +5 -0
  11. cone/calendar/browser/static/fullcalendar/fullcalendar.min.js +10 -0
  12. cone/calendar/browser/static/fullcalendar/fullcalendar.print.css +208 -0
  13. cone/calendar/browser/static/fullcalendar/fullcalendar.print.min.css +5 -0
  14. cone/calendar/browser/static/fullcalendar/gcal.js +180 -0
  15. cone/calendar/browser/static/fullcalendar/gcal.min.js +6 -0
  16. cone/calendar/browser/static/fullcalendar/locale/af.js +1 -0
  17. cone/calendar/browser/static/fullcalendar/locale/ar-dz.js +1 -0
  18. cone/calendar/browser/static/fullcalendar/locale/ar-ly.js +1 -0
  19. cone/calendar/browser/static/fullcalendar/locale/ar-ma.js +1 -0
  20. cone/calendar/browser/static/fullcalendar/locale/ar-sa.js +1 -0
  21. cone/calendar/browser/static/fullcalendar/locale/ar-tn.js +1 -0
  22. cone/calendar/browser/static/fullcalendar/locale/ar.js +1 -0
  23. cone/calendar/browser/static/fullcalendar/locale/bg.js +1 -0
  24. cone/calendar/browser/static/fullcalendar/locale/ca.js +1 -0
  25. cone/calendar/browser/static/fullcalendar/locale/cs.js +1 -0
  26. cone/calendar/browser/static/fullcalendar/locale/da.js +1 -0
  27. cone/calendar/browser/static/fullcalendar/locale/de-at.js +1 -0
  28. cone/calendar/browser/static/fullcalendar/locale/de.js +1 -0
  29. cone/calendar/browser/static/fullcalendar/locale/el.js +1 -0
  30. cone/calendar/browser/static/fullcalendar/locale/en-au.js +1 -0
  31. cone/calendar/browser/static/fullcalendar/locale/en-ca.js +1 -0
  32. cone/calendar/browser/static/fullcalendar/locale/en-gb.js +1 -0
  33. cone/calendar/browser/static/fullcalendar/locale/en-ie.js +1 -0
  34. cone/calendar/browser/static/fullcalendar/locale/en-nz.js +1 -0
  35. cone/calendar/browser/static/fullcalendar/locale/es-do.js +1 -0
  36. cone/calendar/browser/static/fullcalendar/locale/es.js +1 -0
  37. cone/calendar/browser/static/fullcalendar/locale/eu.js +1 -0
  38. cone/calendar/browser/static/fullcalendar/locale/fa.js +1 -0
  39. cone/calendar/browser/static/fullcalendar/locale/fi.js +1 -0
  40. cone/calendar/browser/static/fullcalendar/locale/fr-ca.js +1 -0
  41. cone/calendar/browser/static/fullcalendar/locale/fr-ch.js +1 -0
  42. cone/calendar/browser/static/fullcalendar/locale/fr.js +1 -0
  43. cone/calendar/browser/static/fullcalendar/locale/gl.js +1 -0
  44. cone/calendar/browser/static/fullcalendar/locale/he.js +1 -0
  45. cone/calendar/browser/static/fullcalendar/locale/hi.js +1 -0
  46. cone/calendar/browser/static/fullcalendar/locale/hr.js +1 -0
  47. cone/calendar/browser/static/fullcalendar/locale/hu.js +1 -0
  48. cone/calendar/browser/static/fullcalendar/locale/id.js +1 -0
  49. cone/calendar/browser/static/fullcalendar/locale/is.js +1 -0
  50. cone/calendar/browser/static/fullcalendar/locale/it.js +1 -0
  51. cone/calendar/browser/static/fullcalendar/locale/ja.js +1 -0
  52. cone/calendar/browser/static/fullcalendar/locale/kk.js +1 -0
  53. cone/calendar/browser/static/fullcalendar/locale/ko.js +1 -0
  54. cone/calendar/browser/static/fullcalendar/locale/lb.js +1 -0
  55. cone/calendar/browser/static/fullcalendar/locale/lt.js +1 -0
  56. cone/calendar/browser/static/fullcalendar/locale/lv.js +1 -0
  57. cone/calendar/browser/static/fullcalendar/locale/mk.js +1 -0
  58. cone/calendar/browser/static/fullcalendar/locale/ms-my.js +1 -0
  59. cone/calendar/browser/static/fullcalendar/locale/ms.js +1 -0
  60. cone/calendar/browser/static/fullcalendar/locale/nb.js +1 -0
  61. cone/calendar/browser/static/fullcalendar/locale/nl-be.js +1 -0
  62. cone/calendar/browser/static/fullcalendar/locale/nl.js +1 -0
  63. cone/calendar/browser/static/fullcalendar/locale/nn.js +1 -0
  64. cone/calendar/browser/static/fullcalendar/locale/pl.js +1 -0
  65. cone/calendar/browser/static/fullcalendar/locale/pt-br.js +1 -0
  66. cone/calendar/browser/static/fullcalendar/locale/pt.js +1 -0
  67. cone/calendar/browser/static/fullcalendar/locale/ro.js +1 -0
  68. cone/calendar/browser/static/fullcalendar/locale/ru.js +1 -0
  69. cone/calendar/browser/static/fullcalendar/locale/sk.js +1 -0
  70. cone/calendar/browser/static/fullcalendar/locale/sl.js +1 -0
  71. cone/calendar/browser/static/fullcalendar/locale/sr-cyrl.js +1 -0
  72. cone/calendar/browser/static/fullcalendar/locale/sr.js +1 -0
  73. cone/calendar/browser/static/fullcalendar/locale/sv.js +1 -0
  74. cone/calendar/browser/static/fullcalendar/locale/th.js +1 -0
  75. cone/calendar/browser/static/fullcalendar/locale/tr.js +1 -0
  76. cone/calendar/browser/static/fullcalendar/locale/uk.js +1 -0
  77. cone/calendar/browser/static/fullcalendar/locale/vi.js +1 -0
  78. cone/calendar/browser/static/fullcalendar/locale/zh-cn.js +1 -0
  79. cone/calendar/browser/static/fullcalendar/locale/zh-tw.js +1 -0
  80. cone/calendar/browser/static/fullcalendar/locale-all.js +5 -0
  81. cone/calendar/browser/static/moment/locale/af.js +73 -0
  82. cone/calendar/browser/static/moment/locale/ar-dz.js +59 -0
  83. cone/calendar/browser/static/moment/locale/ar-ly.js +126 -0
  84. cone/calendar/browser/static/moment/locale/ar-ma.js +60 -0
  85. cone/calendar/browser/static/moment/locale/ar-sa.js +105 -0
  86. cone/calendar/browser/static/moment/locale/ar-tn.js +59 -0
  87. cone/calendar/browser/static/moment/locale/ar.js +142 -0
  88. cone/calendar/browser/static/moment/locale/az.js +105 -0
  89. cone/calendar/browser/static/moment/locale/be.js +134 -0
  90. cone/calendar/browser/static/moment/locale/bg.js +90 -0
  91. cone/calendar/browser/static/moment/locale/bn.js +119 -0
  92. cone/calendar/browser/static/moment/locale/bo.js +119 -0
  93. cone/calendar/browser/static/moment/locale/br.js +108 -0
  94. cone/calendar/browser/static/moment/locale/bs.js +143 -0
  95. cone/calendar/browser/static/moment/locale/ca.js +81 -0
  96. cone/calendar/browser/static/moment/locale/cs.js +172 -0
  97. cone/calendar/browser/static/moment/locale/cv.js +63 -0
  98. cone/calendar/browser/static/moment/locale/cy.js +81 -0
  99. cone/calendar/browser/static/moment/locale/da.js +60 -0
  100. cone/calendar/browser/static/moment/locale/de-at.js +79 -0
  101. cone/calendar/browser/static/moment/locale/de.js +78 -0
  102. cone/calendar/browser/static/moment/locale/dv.js +100 -0
  103. cone/calendar/browser/static/moment/locale/el.js +98 -0
  104. cone/calendar/browser/static/moment/locale/en-au.js +67 -0
  105. cone/calendar/browser/static/moment/locale/en-ca.js +63 -0
  106. cone/calendar/browser/static/moment/locale/en-gb.js +67 -0
  107. cone/calendar/browser/static/moment/locale/en-ie.js +67 -0
  108. cone/calendar/browser/static/moment/locale/en-nz.js +67 -0
  109. cone/calendar/browser/static/moment/locale/eo.js +73 -0
  110. cone/calendar/browser/static/moment/locale/es-do.js +80 -0
  111. cone/calendar/browser/static/moment/locale/es.js +81 -0
  112. cone/calendar/browser/static/moment/locale/et.js +80 -0
  113. cone/calendar/browser/static/moment/locale/eu.js +66 -0
  114. cone/calendar/browser/static/moment/locale/fa.js +107 -0
  115. cone/calendar/browser/static/moment/locale/fi.js +107 -0
  116. cone/calendar/browser/static/moment/locale/fo.js +60 -0
  117. cone/calendar/browser/static/moment/locale/fr-ca.js +60 -0
  118. cone/calendar/browser/static/moment/locale/fr-ch.js +64 -0
  119. cone/calendar/browser/static/moment/locale/fr.js +64 -0
  120. cone/calendar/browser/static/moment/locale/fy.js +73 -0
  121. cone/calendar/browser/static/moment/locale/gd.js +76 -0
  122. cone/calendar/browser/static/moment/locale/gl.js +77 -0
  123. cone/calendar/browser/static/moment/locale/he.js +99 -0
  124. cone/calendar/browser/static/moment/locale/hi.js +124 -0
  125. cone/calendar/browser/static/moment/locale/hr.js +145 -0
  126. cone/calendar/browser/static/moment/locale/hu.js +109 -0
  127. cone/calendar/browser/static/moment/locale/hy-am.js +95 -0
  128. cone/calendar/browser/static/moment/locale/id.js +83 -0
  129. cone/calendar/browser/static/moment/locale/is.js +127 -0
  130. cone/calendar/browser/static/moment/locale/it.js +70 -0
  131. cone/calendar/browser/static/moment/locale/ja.js +76 -0
  132. cone/calendar/browser/static/moment/locale/jv.js +83 -0
  133. cone/calendar/browser/static/moment/locale/ka.js +89 -0
  134. cone/calendar/browser/static/moment/locale/kk.js +87 -0
  135. cone/calendar/browser/static/moment/locale/km.js +58 -0
  136. cone/calendar/browser/static/moment/locale/ko.js +65 -0
  137. cone/calendar/browser/static/moment/locale/ky.js +88 -0
  138. cone/calendar/browser/static/moment/locale/lb.js +137 -0
  139. cone/calendar/browser/static/moment/locale/lo.js +70 -0
  140. cone/calendar/browser/static/moment/locale/lt.js +117 -0
  141. cone/calendar/browser/static/moment/locale/lv.js +97 -0
  142. cone/calendar/browser/static/moment/locale/me.js +111 -0
  143. cone/calendar/browser/static/moment/locale/mi.js +64 -0
  144. cone/calendar/browser/static/moment/locale/mk.js +90 -0
  145. cone/calendar/browser/static/moment/locale/ml.js +81 -0
  146. cone/calendar/browser/static/moment/locale/mr.js +159 -0
  147. cone/calendar/browser/static/moment/locale/ms-my.js +83 -0
  148. cone/calendar/browser/static/moment/locale/ms.js +82 -0
  149. cone/calendar/browser/static/moment/locale/my.js +96 -0
  150. cone/calendar/browser/static/moment/locale/nb.js +63 -0
  151. cone/calendar/browser/static/moment/locale/ne.js +123 -0
  152. cone/calendar/browser/static/moment/locale/nl-be.js +86 -0
  153. cone/calendar/browser/static/moment/locale/nl.js +86 -0
  154. cone/calendar/browser/static/moment/locale/nn.js +60 -0
  155. cone/calendar/browser/static/moment/locale/pa-in.js +124 -0
  156. cone/calendar/browser/static/moment/locale/pl.js +105 -0
  157. cone/calendar/browser/static/moment/locale/pt-br.js +61 -0
  158. cone/calendar/browser/static/moment/locale/pt.js +65 -0
  159. cone/calendar/browser/static/moment/locale/ro.js +75 -0
  160. cone/calendar/browser/static/moment/locale/ru.js +183 -0
  161. cone/calendar/browser/static/moment/locale/se.js +61 -0
  162. cone/calendar/browser/static/moment/locale/si.js +71 -0
  163. cone/calendar/browser/static/moment/locale/sk.js +150 -0
  164. cone/calendar/browser/static/moment/locale/sl.js +162 -0
  165. cone/calendar/browser/static/moment/locale/sq.js +70 -0
  166. cone/calendar/browser/static/moment/locale/sr-cyrl.js +110 -0
  167. cone/calendar/browser/static/moment/locale/sr.js +110 -0
  168. cone/calendar/browser/static/moment/locale/ss.js +89 -0
  169. cone/calendar/browser/static/moment/locale/sv.js +69 -0
  170. cone/calendar/browser/static/moment/locale/sw.js +59 -0
  171. cone/calendar/browser/static/moment/locale/ta.js +130 -0
  172. cone/calendar/browser/static/moment/locale/te.js +89 -0
  173. cone/calendar/browser/static/moment/locale/tet.js +68 -0
  174. cone/calendar/browser/static/moment/locale/th.js +67 -0
  175. cone/calendar/browser/static/moment/locale/tl-ph.js +62 -0
  176. cone/calendar/browser/static/moment/locale/tlh.js +120 -0
  177. cone/calendar/browser/static/moment/locale/tr.js +90 -0
  178. cone/calendar/browser/static/moment/locale/tzl.js +91 -0
  179. cone/calendar/browser/static/moment/locale/tzm-latn.js +58 -0
  180. cone/calendar/browser/static/moment/locale/tzm.js +58 -0
  181. cone/calendar/browser/static/moment/locale/uk.js +146 -0
  182. cone/calendar/browser/static/moment/locale/uz.js +58 -0
  183. cone/calendar/browser/static/moment/locale/vi.js +79 -0
  184. cone/calendar/browser/static/moment/locale/x-pseudo.js +68 -0
  185. cone/calendar/browser/static/moment/locale/yo.js +60 -0
  186. cone/calendar/browser/static/moment/locale/zh-cn.js +127 -0
  187. cone/calendar/browser/static/moment/locale/zh-hk.js +105 -0
  188. cone/calendar/browser/static/moment/locale/zh-tw.js +104 -0
  189. cone/calendar/browser/static/moment/locales.js +8624 -0
  190. cone/calendar/browser/static/moment/locales.min.js +663 -0
  191. cone/calendar/browser/static/moment/moment-with-locales.js +12910 -0
  192. cone/calendar/browser/static/moment/moment-with-locales.min.js +1216 -0
  193. cone/calendar/browser/static/moment/moment.min.js +551 -0
  194. cone/calendar/interfaces.py +14 -0
  195. cone/calendar/locale/cone.calendar.pot +0 -0
  196. cone/calendar/locale/de/LC_MESSAGES/cone.calendar.po +0 -0
  197. cone/calendar/locale/en/LC_MESSAGES/cone.calendar.po +0 -0
  198. cone/calendar/tests/test_calendar.py +340 -0
  199. cone_calendar-1.1.0.dist-info/METADATA +252 -0
  200. cone_calendar-1.1.0.dist-info/RECORD +202 -0
  201. cone_calendar-1.1.0.dist-info/WHEEL +4 -0
  202. cone_calendar-1.1.0.dist-info/licenses/LICENSE.rst +27 -0
@@ -0,0 +1,183 @@
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
+ //! author : Коренберг Марк : https://github.com/socketpair
6
+
7
+ ;(function (global, factory) {
8
+ typeof exports === 'object' && typeof module !== 'undefined'
9
+ && typeof require === 'function' ? factory(require('../moment')) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
+ factory(global.moment)
12
+ }(this, (function (moment) { 'use strict';
13
+
14
+
15
+ function plural(word, num) {
16
+ var forms = word.split('_');
17
+ 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]);
18
+ }
19
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
20
+ var format = {
21
+ 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
22
+ 'hh': 'час_часа_часов',
23
+ 'dd': 'день_дня_дней',
24
+ 'MM': 'месяц_месяца_месяцев',
25
+ 'yy': 'год_года_лет'
26
+ };
27
+ if (key === 'm') {
28
+ return withoutSuffix ? 'минута' : 'минуту';
29
+ }
30
+ else {
31
+ return number + ' ' + plural(format[key], +number);
32
+ }
33
+ }
34
+ var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
35
+
36
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
37
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
38
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
39
+ var ru = moment.defineLocale('ru', {
40
+ months : {
41
+ format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
42
+ standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
43
+ },
44
+ monthsShort : {
45
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
46
+ format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
47
+ standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
48
+ },
49
+ weekdays : {
50
+ standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
51
+ format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
52
+ isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
53
+ },
54
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
55
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
56
+ monthsParse : monthsParse,
57
+ longMonthsParse : monthsParse,
58
+ shortMonthsParse : monthsParse,
59
+
60
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
61
+ monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
62
+
63
+ // копия предыдущего
64
+ monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
65
+
66
+ // полные названия с падежами
67
+ monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
68
+
69
+ // Выражение, которое соотвествует только сокращённым формам
70
+ monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
71
+ longDateFormat : {
72
+ LT : 'HH:mm',
73
+ LTS : 'HH:mm:ss',
74
+ L : 'DD.MM.YYYY',
75
+ LL : 'D MMMM YYYY г.',
76
+ LLL : 'D MMMM YYYY г., HH:mm',
77
+ LLLL : 'dddd, D MMMM YYYY г., HH:mm'
78
+ },
79
+ calendar : {
80
+ sameDay: '[Сегодня в] LT',
81
+ nextDay: '[Завтра в] LT',
82
+ lastDay: '[Вчера в] LT',
83
+ nextWeek: function (now) {
84
+ if (now.week() !== this.week()) {
85
+ switch (this.day()) {
86
+ case 0:
87
+ return '[В следующее] dddd [в] LT';
88
+ case 1:
89
+ case 2:
90
+ case 4:
91
+ return '[В следующий] dddd [в] LT';
92
+ case 3:
93
+ case 5:
94
+ case 6:
95
+ return '[В следующую] dddd [в] LT';
96
+ }
97
+ } else {
98
+ if (this.day() === 2) {
99
+ return '[Во] dddd [в] LT';
100
+ } else {
101
+ return '[В] dddd [в] LT';
102
+ }
103
+ }
104
+ },
105
+ lastWeek: function (now) {
106
+ if (now.week() !== this.week()) {
107
+ switch (this.day()) {
108
+ case 0:
109
+ return '[В прошлое] dddd [в] LT';
110
+ case 1:
111
+ case 2:
112
+ case 4:
113
+ return '[В прошлый] dddd [в] LT';
114
+ case 3:
115
+ case 5:
116
+ case 6:
117
+ return '[В прошлую] dddd [в] LT';
118
+ }
119
+ } else {
120
+ if (this.day() === 2) {
121
+ return '[Во] dddd [в] LT';
122
+ } else {
123
+ return '[В] dddd [в] LT';
124
+ }
125
+ }
126
+ },
127
+ sameElse: 'L'
128
+ },
129
+ relativeTime : {
130
+ future : 'через %s',
131
+ past : '%s назад',
132
+ s : 'несколько секунд',
133
+ m : relativeTimeWithPlural,
134
+ mm : relativeTimeWithPlural,
135
+ h : 'час',
136
+ hh : relativeTimeWithPlural,
137
+ d : 'день',
138
+ dd : relativeTimeWithPlural,
139
+ M : 'месяц',
140
+ MM : relativeTimeWithPlural,
141
+ y : 'год',
142
+ yy : relativeTimeWithPlural
143
+ },
144
+ meridiemParse: /ночи|утра|дня|вечера/i,
145
+ isPM : function (input) {
146
+ return /^(дня|вечера)$/.test(input);
147
+ },
148
+ meridiem : function (hour, minute, isLower) {
149
+ if (hour < 4) {
150
+ return 'ночи';
151
+ } else if (hour < 12) {
152
+ return 'утра';
153
+ } else if (hour < 17) {
154
+ return 'дня';
155
+ } else {
156
+ return 'вечера';
157
+ }
158
+ },
159
+ ordinalParse: /\d{1,2}-(й|го|я)/,
160
+ ordinal: function (number, period) {
161
+ switch (period) {
162
+ case 'M':
163
+ case 'd':
164
+ case 'DDD':
165
+ return number + '-й';
166
+ case 'D':
167
+ return number + '-го';
168
+ case 'w':
169
+ case 'W':
170
+ return number + '-я';
171
+ default:
172
+ return number;
173
+ }
174
+ },
175
+ week : {
176
+ dow : 1, // Monday is the first day of the week.
177
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
178
+ }
179
+ });
180
+
181
+ return ru;
182
+
183
+ })));
@@ -0,0 +1,61 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Northern Sami [se]
3
+ //! authors : Bård Rolstad Henriksen : https://github.com/karamell
4
+
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? 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
+
14
+ var se = moment.defineLocale('se', {
15
+ 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('_'),
16
+ monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
17
+ weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
18
+ weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
19
+ weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD.MM.YYYY',
24
+ LL : 'MMMM D. [b.] YYYY',
25
+ LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
26
+ LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[otne ti] LT',
30
+ nextDay: '[ihttin ti] LT',
31
+ nextWeek: 'dddd [ti] LT',
32
+ lastDay: '[ikte ti] LT',
33
+ lastWeek: '[ovddit] dddd [ti] LT',
34
+ sameElse: 'L'
35
+ },
36
+ relativeTime : {
37
+ future : '%s geažes',
38
+ past : 'maŋit %s',
39
+ s : 'moadde sekunddat',
40
+ m : 'okta minuhta',
41
+ mm : '%d minuhtat',
42
+ h : 'okta diimmu',
43
+ hh : '%d diimmut',
44
+ d : 'okta beaivi',
45
+ dd : '%d beaivvit',
46
+ M : 'okta mánnu',
47
+ MM : '%d mánut',
48
+ y : 'okta jahki',
49
+ yy : '%d jagit'
50
+ },
51
+ ordinalParse: /\d{1,2}\./,
52
+ ordinal : '%d.',
53
+ week : {
54
+ dow : 1, // Monday is the first day of the week.
55
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
56
+ }
57
+ });
58
+
59
+ return se;
60
+
61
+ })));
@@ -0,0 +1,71 @@
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'
7
+ && typeof require === 'function' ? 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
+ /*jshint -W100*/
14
+ var si = moment.defineLocale('si', {
15
+ months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
16
+ monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
17
+ weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
18
+ weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
19
+ weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'a h:mm',
23
+ LTS : 'a h:mm:ss',
24
+ L : 'YYYY/MM/DD',
25
+ LL : 'YYYY MMMM D',
26
+ LLL : 'YYYY MMMM D, a h:mm',
27
+ LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
28
+ },
29
+ calendar : {
30
+ sameDay : '[අද] LT[ට]',
31
+ nextDay : '[හෙට] LT[ට]',
32
+ nextWeek : 'dddd LT[ට]',
33
+ lastDay : '[ඊයේ] LT[ට]',
34
+ lastWeek : '[පසුගිය] dddd LT[ට]',
35
+ sameElse : 'L'
36
+ },
37
+ relativeTime : {
38
+ future : '%sකින්',
39
+ past : '%sකට පෙර',
40
+ s : 'තත්පර කිහිපය',
41
+ m : 'මිනිත්තුව',
42
+ mm : 'මිනිත්තු %d',
43
+ h : 'පැය',
44
+ hh : 'පැය %d',
45
+ d : 'දිනය',
46
+ dd : 'දින %d',
47
+ M : 'මාසය',
48
+ MM : 'මාස %d',
49
+ y : 'වසර',
50
+ yy : 'වසර %d'
51
+ },
52
+ ordinalParse: /\d{1,2} වැනි/,
53
+ ordinal : function (number) {
54
+ return number + ' වැනි';
55
+ },
56
+ meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
57
+ isPM : function (input) {
58
+ return input === 'ප.ව.' || input === 'පස් වරු';
59
+ },
60
+ meridiem : function (hours, minutes, isLower) {
61
+ if (hours > 11) {
62
+ return isLower ? 'ප.ව.' : 'පස් වරු';
63
+ } else {
64
+ return isLower ? 'පෙ.ව.' : 'පෙර වරු';
65
+ }
66
+ }
67
+ });
68
+
69
+ return si;
70
+
71
+ })));
@@ -0,0 +1,150 @@
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'
8
+ && typeof require === 'function' ? 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 months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
15
+ var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
16
+ function plural(n) {
17
+ return (n > 1) && (n < 5);
18
+ }
19
+ function translate(number, withoutSuffix, key, isFuture) {
20
+ var result = number + ' ';
21
+ switch (key) {
22
+ case 's': // a few seconds / in a few seconds / a few seconds ago
23
+ return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
24
+ case 'm': // a minute / in a minute / a minute ago
25
+ return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
26
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
27
+ if (withoutSuffix || isFuture) {
28
+ return result + (plural(number) ? 'minúty' : 'minút');
29
+ } else {
30
+ return result + 'minútami';
31
+ }
32
+ break;
33
+ case 'h': // an hour / in an hour / an hour ago
34
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
35
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
36
+ if (withoutSuffix || isFuture) {
37
+ return result + (plural(number) ? 'hodiny' : 'hodín');
38
+ } else {
39
+ return result + 'hodinami';
40
+ }
41
+ break;
42
+ case 'd': // a day / in a day / a day ago
43
+ return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
44
+ case 'dd': // 9 days / in 9 days / 9 days ago
45
+ if (withoutSuffix || isFuture) {
46
+ return result + (plural(number) ? 'dni' : 'dní');
47
+ } else {
48
+ return result + 'dňami';
49
+ }
50
+ break;
51
+ case 'M': // a month / in a month / a month ago
52
+ return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
53
+ case 'MM': // 9 months / in 9 months / 9 months ago
54
+ if (withoutSuffix || isFuture) {
55
+ return result + (plural(number) ? 'mesiace' : 'mesiacov');
56
+ } else {
57
+ return result + 'mesiacmi';
58
+ }
59
+ break;
60
+ case 'y': // a year / in a year / a year ago
61
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
62
+ case 'yy': // 9 years / in 9 years / 9 years ago
63
+ if (withoutSuffix || isFuture) {
64
+ return result + (plural(number) ? 'roky' : 'rokov');
65
+ } else {
66
+ return result + 'rokmi';
67
+ }
68
+ break;
69
+ }
70
+ }
71
+
72
+ var sk = moment.defineLocale('sk', {
73
+ months : months,
74
+ monthsShort : monthsShort,
75
+ weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
76
+ weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
77
+ weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
78
+ longDateFormat : {
79
+ LT: 'H:mm',
80
+ LTS : 'H:mm:ss',
81
+ L : 'DD.MM.YYYY',
82
+ LL : 'D. MMMM YYYY',
83
+ LLL : 'D. MMMM YYYY H:mm',
84
+ LLLL : 'dddd D. MMMM YYYY H:mm'
85
+ },
86
+ calendar : {
87
+ sameDay: '[dnes o] LT',
88
+ nextDay: '[zajtra o] LT',
89
+ nextWeek: function () {
90
+ switch (this.day()) {
91
+ case 0:
92
+ return '[v nedeľu o] LT';
93
+ case 1:
94
+ case 2:
95
+ return '[v] dddd [o] LT';
96
+ case 3:
97
+ return '[v stredu o] LT';
98
+ case 4:
99
+ return '[vo štvrtok o] LT';
100
+ case 5:
101
+ return '[v piatok o] LT';
102
+ case 6:
103
+ return '[v sobotu o] LT';
104
+ }
105
+ },
106
+ lastDay: '[včera o] LT',
107
+ lastWeek: function () {
108
+ switch (this.day()) {
109
+ case 0:
110
+ return '[minulú nedeľu o] LT';
111
+ case 1:
112
+ case 2:
113
+ return '[minulý] dddd [o] LT';
114
+ case 3:
115
+ return '[minulú stredu o] LT';
116
+ case 4:
117
+ case 5:
118
+ return '[minulý] dddd [o] LT';
119
+ case 6:
120
+ return '[minulú sobotu o] LT';
121
+ }
122
+ },
123
+ sameElse: 'L'
124
+ },
125
+ relativeTime : {
126
+ future : 'za %s',
127
+ past : 'pred %s',
128
+ s : translate,
129
+ m : translate,
130
+ mm : translate,
131
+ h : translate,
132
+ hh : translate,
133
+ d : translate,
134
+ dd : translate,
135
+ M : translate,
136
+ MM : translate,
137
+ y : translate,
138
+ yy : translate
139
+ },
140
+ ordinalParse: /\d{1,2}\./,
141
+ ordinal : '%d.',
142
+ week : {
143
+ dow : 1, // Monday is the first day of the week.
144
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
145
+ }
146
+ });
147
+
148
+ return sk;
149
+
150
+ })));
@@ -0,0 +1,162 @@
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'
7
+ && typeof require === 'function' ? 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 processRelativeTime(number, withoutSuffix, key, isFuture) {
14
+ var result = number + ' ';
15
+ switch (key) {
16
+ case 's':
17
+ return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
18
+ case 'm':
19
+ return withoutSuffix ? 'ena minuta' : 'eno minuto';
20
+ case 'mm':
21
+ if (number === 1) {
22
+ result += withoutSuffix ? 'minuta' : 'minuto';
23
+ } else if (number === 2) {
24
+ result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
25
+ } else if (number < 5) {
26
+ result += withoutSuffix || isFuture ? 'minute' : 'minutami';
27
+ } else {
28
+ result += withoutSuffix || isFuture ? 'minut' : 'minutami';
29
+ }
30
+ return result;
31
+ case 'h':
32
+ return withoutSuffix ? 'ena ura' : 'eno uro';
33
+ case 'hh':
34
+ if (number === 1) {
35
+ result += withoutSuffix ? 'ura' : 'uro';
36
+ } else if (number === 2) {
37
+ result += withoutSuffix || isFuture ? 'uri' : 'urama';
38
+ } else if (number < 5) {
39
+ result += withoutSuffix || isFuture ? 'ure' : 'urami';
40
+ } else {
41
+ result += withoutSuffix || isFuture ? 'ur' : 'urami';
42
+ }
43
+ return result;
44
+ case 'd':
45
+ return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
46
+ case 'dd':
47
+ if (number === 1) {
48
+ result += withoutSuffix || isFuture ? 'dan' : 'dnem';
49
+ } else if (number === 2) {
50
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
51
+ } else {
52
+ result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
53
+ }
54
+ return result;
55
+ case 'M':
56
+ return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
57
+ case 'MM':
58
+ if (number === 1) {
59
+ result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
60
+ } else if (number === 2) {
61
+ result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
62
+ } else if (number < 5) {
63
+ result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
64
+ } else {
65
+ result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
66
+ }
67
+ return result;
68
+ case 'y':
69
+ return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
70
+ case 'yy':
71
+ if (number === 1) {
72
+ result += withoutSuffix || isFuture ? 'leto' : 'letom';
73
+ } else if (number === 2) {
74
+ result += withoutSuffix || isFuture ? 'leti' : 'letoma';
75
+ } else if (number < 5) {
76
+ result += withoutSuffix || isFuture ? 'leta' : 'leti';
77
+ } else {
78
+ result += withoutSuffix || isFuture ? 'let' : 'leti';
79
+ }
80
+ return result;
81
+ }
82
+ }
83
+
84
+ var sl = moment.defineLocale('sl', {
85
+ months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
86
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
87
+ monthsParseExact: true,
88
+ weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
89
+ weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
90
+ weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
91
+ weekdaysParseExact : true,
92
+ longDateFormat : {
93
+ LT : 'H:mm',
94
+ LTS : 'H:mm:ss',
95
+ L : 'DD.MM.YYYY',
96
+ LL : 'D. MMMM YYYY',
97
+ LLL : 'D. MMMM YYYY H:mm',
98
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
99
+ },
100
+ calendar : {
101
+ sameDay : '[danes ob] LT',
102
+ nextDay : '[jutri ob] LT',
103
+
104
+ nextWeek : function () {
105
+ switch (this.day()) {
106
+ case 0:
107
+ return '[v] [nedeljo] [ob] LT';
108
+ case 3:
109
+ return '[v] [sredo] [ob] LT';
110
+ case 6:
111
+ return '[v] [soboto] [ob] LT';
112
+ case 1:
113
+ case 2:
114
+ case 4:
115
+ case 5:
116
+ return '[v] dddd [ob] LT';
117
+ }
118
+ },
119
+ lastDay : '[včeraj ob] LT',
120
+ lastWeek : function () {
121
+ switch (this.day()) {
122
+ case 0:
123
+ return '[prejšnjo] [nedeljo] [ob] LT';
124
+ case 3:
125
+ return '[prejšnjo] [sredo] [ob] LT';
126
+ case 6:
127
+ return '[prejšnjo] [soboto] [ob] LT';
128
+ case 1:
129
+ case 2:
130
+ case 4:
131
+ case 5:
132
+ return '[prejšnji] dddd [ob] LT';
133
+ }
134
+ },
135
+ sameElse : 'L'
136
+ },
137
+ relativeTime : {
138
+ future : 'čez %s',
139
+ past : 'pred %s',
140
+ s : processRelativeTime,
141
+ m : processRelativeTime,
142
+ mm : processRelativeTime,
143
+ h : processRelativeTime,
144
+ hh : processRelativeTime,
145
+ d : processRelativeTime,
146
+ dd : processRelativeTime,
147
+ M : processRelativeTime,
148
+ MM : processRelativeTime,
149
+ y : processRelativeTime,
150
+ yy : processRelativeTime
151
+ },
152
+ ordinalParse: /\d{1,2}\./,
153
+ ordinal : '%d.',
154
+ week : {
155
+ dow : 1, // Monday is the first day of the week.
156
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
157
+ }
158
+ });
159
+
160
+ return sl;
161
+
162
+ })));