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,70 @@
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
5
+ //! author : Oerd Cukalla : https://github.com/oerd
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
+ var sq = moment.defineLocale('sq', {
16
+ months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
17
+ monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18
+ weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
19
+ weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
20
+ weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
21
+ weekdaysParseExact : true,
22
+ meridiemParse: /PD|MD/,
23
+ isPM: function (input) {
24
+ return input.charAt(0) === 'M';
25
+ },
26
+ meridiem : function (hours, minutes, isLower) {
27
+ return hours < 12 ? 'PD' : 'MD';
28
+ },
29
+ longDateFormat : {
30
+ LT : 'HH:mm',
31
+ LTS : 'HH:mm:ss',
32
+ L : 'DD/MM/YYYY',
33
+ LL : 'D MMMM YYYY',
34
+ LLL : 'D MMMM YYYY HH:mm',
35
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
36
+ },
37
+ calendar : {
38
+ sameDay : '[Sot në] LT',
39
+ nextDay : '[Nesër në] LT',
40
+ nextWeek : 'dddd [në] LT',
41
+ lastDay : '[Dje në] LT',
42
+ lastWeek : 'dddd [e kaluar në] LT',
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : 'në %s',
47
+ past : '%s më parë',
48
+ s : 'disa sekonda',
49
+ m : 'një minutë',
50
+ mm : '%d minuta',
51
+ h : 'një orë',
52
+ hh : '%d orë',
53
+ d : 'një ditë',
54
+ dd : '%d ditë',
55
+ M : 'një muaj',
56
+ MM : '%d muaj',
57
+ y : 'një vit',
58
+ yy : '%d vite'
59
+ },
60
+ ordinalParse: /\d{1,2}\./,
61
+ ordinal : '%d.',
62
+ week : {
63
+ dow : 1, // Monday is the first day of the week.
64
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
65
+ }
66
+ });
67
+
68
+ return sq;
69
+
70
+ })));
@@ -0,0 +1,110 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Serbian Cyrillic [sr-cyrl]
3
+ //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
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
+ var translator = {
14
+ words: { //Different grammatical cases
15
+ m: ['један минут', 'једне минуте'],
16
+ mm: ['минут', 'минуте', 'минута'],
17
+ h: ['један сат', 'једног сата'],
18
+ hh: ['сат', 'сата', 'сати'],
19
+ dd: ['дан', 'дана', 'дана'],
20
+ MM: ['месец', 'месеца', 'месеци'],
21
+ yy: ['година', 'године', 'година']
22
+ },
23
+ correctGrammaticalCase: function (number, wordKey) {
24
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
25
+ },
26
+ translate: function (number, withoutSuffix, key) {
27
+ var wordKey = translator.words[key];
28
+ if (key.length === 1) {
29
+ return withoutSuffix ? wordKey[0] : wordKey[1];
30
+ } else {
31
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
32
+ }
33
+ }
34
+ };
35
+
36
+ var srCyrl = moment.defineLocale('sr-cyrl', {
37
+ months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
38
+ monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
39
+ monthsParseExact: true,
40
+ weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
41
+ weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
42
+ weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
43
+ weekdaysParseExact : true,
44
+ longDateFormat: {
45
+ LT: 'H:mm',
46
+ LTS : 'H:mm:ss',
47
+ L: 'DD.MM.YYYY',
48
+ LL: 'D. MMMM YYYY',
49
+ LLL: 'D. MMMM YYYY H:mm',
50
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
51
+ },
52
+ calendar: {
53
+ sameDay: '[данас у] LT',
54
+ nextDay: '[сутра у] LT',
55
+ nextWeek: function () {
56
+ switch (this.day()) {
57
+ case 0:
58
+ return '[у] [недељу] [у] LT';
59
+ case 3:
60
+ return '[у] [среду] [у] LT';
61
+ case 6:
62
+ return '[у] [суботу] [у] LT';
63
+ case 1:
64
+ case 2:
65
+ case 4:
66
+ case 5:
67
+ return '[у] dddd [у] LT';
68
+ }
69
+ },
70
+ lastDay : '[јуче у] LT',
71
+ lastWeek : function () {
72
+ var lastWeekDays = [
73
+ '[прошле] [недеље] [у] LT',
74
+ '[прошлог] [понедељка] [у] LT',
75
+ '[прошлог] [уторка] [у] LT',
76
+ '[прошле] [среде] [у] LT',
77
+ '[прошлог] [четвртка] [у] LT',
78
+ '[прошлог] [петка] [у] LT',
79
+ '[прошле] [суботе] [у] LT'
80
+ ];
81
+ return lastWeekDays[this.day()];
82
+ },
83
+ sameElse : 'L'
84
+ },
85
+ relativeTime : {
86
+ future : 'за %s',
87
+ past : 'пре %s',
88
+ s : 'неколико секунди',
89
+ m : translator.translate,
90
+ mm : translator.translate,
91
+ h : translator.translate,
92
+ hh : translator.translate,
93
+ d : 'дан',
94
+ dd : translator.translate,
95
+ M : 'месец',
96
+ MM : translator.translate,
97
+ y : 'годину',
98
+ yy : translator.translate
99
+ },
100
+ ordinalParse: /\d{1,2}\./,
101
+ ordinal : '%d.',
102
+ week : {
103
+ dow : 1, // Monday is the first day of the week.
104
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
105
+ }
106
+ });
107
+
108
+ return srCyrl;
109
+
110
+ })));
@@ -0,0 +1,110 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Serbian [sr]
3
+ //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
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
+ var translator = {
14
+ words: { //Different grammatical cases
15
+ m: ['jedan minut', 'jedne minute'],
16
+ mm: ['minut', 'minute', 'minuta'],
17
+ h: ['jedan sat', 'jednog sata'],
18
+ hh: ['sat', 'sata', 'sati'],
19
+ dd: ['dan', 'dana', 'dana'],
20
+ MM: ['mesec', 'meseca', 'meseci'],
21
+ yy: ['godina', 'godine', 'godina']
22
+ },
23
+ correctGrammaticalCase: function (number, wordKey) {
24
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
25
+ },
26
+ translate: function (number, withoutSuffix, key) {
27
+ var wordKey = translator.words[key];
28
+ if (key.length === 1) {
29
+ return withoutSuffix ? wordKey[0] : wordKey[1];
30
+ } else {
31
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
32
+ }
33
+ }
34
+ };
35
+
36
+ var sr = moment.defineLocale('sr', {
37
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
38
+ monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
39
+ monthsParseExact: true,
40
+ weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
41
+ weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
42
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
43
+ weekdaysParseExact : true,
44
+ longDateFormat: {
45
+ LT: 'H:mm',
46
+ LTS : 'H:mm:ss',
47
+ L: 'DD.MM.YYYY',
48
+ LL: 'D. MMMM YYYY',
49
+ LLL: 'D. MMMM YYYY H:mm',
50
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
51
+ },
52
+ calendar: {
53
+ sameDay: '[danas u] LT',
54
+ nextDay: '[sutra u] LT',
55
+ nextWeek: function () {
56
+ switch (this.day()) {
57
+ case 0:
58
+ return '[u] [nedelju] [u] LT';
59
+ case 3:
60
+ return '[u] [sredu] [u] LT';
61
+ case 6:
62
+ return '[u] [subotu] [u] LT';
63
+ case 1:
64
+ case 2:
65
+ case 4:
66
+ case 5:
67
+ return '[u] dddd [u] LT';
68
+ }
69
+ },
70
+ lastDay : '[juče u] LT',
71
+ lastWeek : function () {
72
+ var lastWeekDays = [
73
+ '[prošle] [nedelje] [u] LT',
74
+ '[prošlog] [ponedeljka] [u] LT',
75
+ '[prošlog] [utorka] [u] LT',
76
+ '[prošle] [srede] [u] LT',
77
+ '[prošlog] [četvrtka] [u] LT',
78
+ '[prošlog] [petka] [u] LT',
79
+ '[prošle] [subote] [u] LT'
80
+ ];
81
+ return lastWeekDays[this.day()];
82
+ },
83
+ sameElse : 'L'
84
+ },
85
+ relativeTime : {
86
+ future : 'za %s',
87
+ past : 'pre %s',
88
+ s : 'nekoliko sekundi',
89
+ m : translator.translate,
90
+ mm : translator.translate,
91
+ h : translator.translate,
92
+ hh : translator.translate,
93
+ d : 'dan',
94
+ dd : translator.translate,
95
+ M : 'mesec',
96
+ MM : translator.translate,
97
+ y : 'godinu',
98
+ yy : translator.translate
99
+ },
100
+ ordinalParse: /\d{1,2}\./,
101
+ ordinal : '%d.',
102
+ week : {
103
+ dow : 1, // Monday is the first day of the week.
104
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
105
+ }
106
+ });
107
+
108
+ return sr;
109
+
110
+ })));
@@ -0,0 +1,89 @@
1
+ //! moment.js locale configuration
2
+ //! locale : siSwati [ss]
3
+ //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
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 ss = moment.defineLocale('ss', {
15
+ months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
16
+ monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
17
+ weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
18
+ weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
19
+ weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'h:mm A',
23
+ LTS : 'h:mm:ss A',
24
+ L : 'DD/MM/YYYY',
25
+ LL : 'D MMMM YYYY',
26
+ LLL : 'D MMMM YYYY h:mm A',
27
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
28
+ },
29
+ calendar : {
30
+ sameDay : '[Namuhla nga] LT',
31
+ nextDay : '[Kusasa nga] LT',
32
+ nextWeek : 'dddd [nga] LT',
33
+ lastDay : '[Itolo nga] LT',
34
+ lastWeek : 'dddd [leliphelile] [nga] LT',
35
+ sameElse : 'L'
36
+ },
37
+ relativeTime : {
38
+ future : 'nga %s',
39
+ past : 'wenteka nga %s',
40
+ s : 'emizuzwana lomcane',
41
+ m : 'umzuzu',
42
+ mm : '%d emizuzu',
43
+ h : 'lihora',
44
+ hh : '%d emahora',
45
+ d : 'lilanga',
46
+ dd : '%d emalanga',
47
+ M : 'inyanga',
48
+ MM : '%d tinyanga',
49
+ y : 'umnyaka',
50
+ yy : '%d iminyaka'
51
+ },
52
+ meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
53
+ meridiem : function (hours, minutes, isLower) {
54
+ if (hours < 11) {
55
+ return 'ekuseni';
56
+ } else if (hours < 15) {
57
+ return 'emini';
58
+ } else if (hours < 19) {
59
+ return 'entsambama';
60
+ } else {
61
+ return 'ebusuku';
62
+ }
63
+ },
64
+ meridiemHour : function (hour, meridiem) {
65
+ if (hour === 12) {
66
+ hour = 0;
67
+ }
68
+ if (meridiem === 'ekuseni') {
69
+ return hour;
70
+ } else if (meridiem === 'emini') {
71
+ return hour >= 11 ? hour : hour + 12;
72
+ } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
73
+ if (hour === 0) {
74
+ return 0;
75
+ }
76
+ return hour + 12;
77
+ }
78
+ },
79
+ ordinalParse: /\d{1,2}/,
80
+ ordinal : '%d',
81
+ week : {
82
+ dow : 1, // Monday is the first day of the week.
83
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
84
+ }
85
+ });
86
+
87
+ return ss;
88
+
89
+ })));
@@ -0,0 +1,69 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Swedish [sv]
3
+ //! author : Jens Alm : https://github.com/ulmus
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
+ var sv = moment.defineLocale('sv', {
14
+ months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
15
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
16
+ weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
17
+ weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
18
+ weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH:mm',
21
+ LTS : 'HH:mm:ss',
22
+ L : 'YYYY-MM-DD',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY [kl.] HH:mm',
25
+ LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
26
+ lll : 'D MMM YYYY HH:mm',
27
+ llll : 'ddd D MMM YYYY HH:mm'
28
+ },
29
+ calendar : {
30
+ sameDay: '[Idag] LT',
31
+ nextDay: '[Imorgon] LT',
32
+ lastDay: '[Igår] LT',
33
+ nextWeek: '[På] dddd LT',
34
+ lastWeek: '[I] dddd[s] LT',
35
+ sameElse: 'L'
36
+ },
37
+ relativeTime : {
38
+ future : 'om %s',
39
+ past : 'för %s sedan',
40
+ s : 'några sekunder',
41
+ m : 'en minut',
42
+ mm : '%d minuter',
43
+ h : 'en timme',
44
+ hh : '%d timmar',
45
+ d : 'en dag',
46
+ dd : '%d dagar',
47
+ M : 'en månad',
48
+ MM : '%d månader',
49
+ y : 'ett år',
50
+ yy : '%d år'
51
+ },
52
+ ordinalParse: /\d{1,2}(e|a)/,
53
+ ordinal : function (number) {
54
+ var b = number % 10,
55
+ output = (~~(number % 100 / 10) === 1) ? 'e' :
56
+ (b === 1) ? 'a' :
57
+ (b === 2) ? 'a' :
58
+ (b === 3) ? 'e' : 'e';
59
+ return number + output;
60
+ },
61
+ week : {
62
+ dow : 1, // Monday is the first day of the week.
63
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
64
+ }
65
+ });
66
+
67
+ return sv;
68
+
69
+ })));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Swahili [sw]
3
+ //! author : Fahad Kassim : https://github.com/fadsel
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
+ var sw = moment.defineLocale('sw', {
14
+ months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
16
+ weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
17
+ weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
18
+ weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD.MM.YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay : '[leo saa] LT',
30
+ nextDay : '[kesho saa] LT',
31
+ nextWeek : '[wiki ijayo] dddd [saat] LT',
32
+ lastDay : '[jana] LT',
33
+ lastWeek : '[wiki iliyopita] dddd [saat] LT',
34
+ sameElse : 'L'
35
+ },
36
+ relativeTime : {
37
+ future : '%s baadaye',
38
+ past : 'tokea %s',
39
+ s : 'hivi punde',
40
+ m : 'dakika moja',
41
+ mm : 'dakika %d',
42
+ h : 'saa limoja',
43
+ hh : 'masaa %d',
44
+ d : 'siku moja',
45
+ dd : 'masiku %d',
46
+ M : 'mwezi mmoja',
47
+ MM : 'miezi %d',
48
+ y : 'mwaka mmoja',
49
+ yy : 'miaka %d'
50
+ },
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return sw;
58
+
59
+ })));
@@ -0,0 +1,130 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Tamil [ta]
3
+ //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
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
+ var symbolMap = {
14
+ '1': '௧',
15
+ '2': '௨',
16
+ '3': '௩',
17
+ '4': '௪',
18
+ '5': '௫',
19
+ '6': '௬',
20
+ '7': '௭',
21
+ '8': '௮',
22
+ '9': '௯',
23
+ '0': '௦'
24
+ };
25
+ var numberMap = {
26
+ '௧': '1',
27
+ '௨': '2',
28
+ '௩': '3',
29
+ '௪': '4',
30
+ '௫': '5',
31
+ '௬': '6',
32
+ '௭': '7',
33
+ '௮': '8',
34
+ '௯': '9',
35
+ '௦': '0'
36
+ };
37
+
38
+ var ta = moment.defineLocale('ta', {
39
+ months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
40
+ monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
41
+ weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
42
+ weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
43
+ weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
44
+ longDateFormat : {
45
+ LT : 'HH:mm',
46
+ LTS : 'HH:mm:ss',
47
+ L : 'DD/MM/YYYY',
48
+ LL : 'D MMMM YYYY',
49
+ LLL : 'D MMMM YYYY, HH:mm',
50
+ LLLL : 'dddd, D MMMM YYYY, HH:mm'
51
+ },
52
+ calendar : {
53
+ sameDay : '[இன்று] LT',
54
+ nextDay : '[நாளை] LT',
55
+ nextWeek : 'dddd, LT',
56
+ lastDay : '[நேற்று] LT',
57
+ lastWeek : '[கடந்த வாரம்] dddd, LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : '%s இல்',
62
+ past : '%s முன்',
63
+ s : 'ஒரு சில விநாடிகள்',
64
+ m : 'ஒரு நிமிடம்',
65
+ mm : '%d நிமிடங்கள்',
66
+ h : 'ஒரு மணி நேரம்',
67
+ hh : '%d மணி நேரம்',
68
+ d : 'ஒரு நாள்',
69
+ dd : '%d நாட்கள்',
70
+ M : 'ஒரு மாதம்',
71
+ MM : '%d மாதங்கள்',
72
+ y : 'ஒரு வருடம்',
73
+ yy : '%d ஆண்டுகள்'
74
+ },
75
+ ordinalParse: /\d{1,2}வது/,
76
+ ordinal : function (number) {
77
+ return number + 'வது';
78
+ },
79
+ preparse: function (string) {
80
+ return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
81
+ return numberMap[match];
82
+ });
83
+ },
84
+ postformat: function (string) {
85
+ return string.replace(/\d/g, function (match) {
86
+ return symbolMap[match];
87
+ });
88
+ },
89
+ // refer http://ta.wikipedia.org/s/1er1
90
+ meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
91
+ meridiem : function (hour, minute, isLower) {
92
+ if (hour < 2) {
93
+ return ' யாமம்';
94
+ } else if (hour < 6) {
95
+ return ' வைகறை'; // வைகறை
96
+ } else if (hour < 10) {
97
+ return ' காலை'; // காலை
98
+ } else if (hour < 14) {
99
+ return ' நண்பகல்'; // நண்பகல்
100
+ } else if (hour < 18) {
101
+ return ' எற்பாடு'; // எற்பாடு
102
+ } else if (hour < 22) {
103
+ return ' மாலை'; // மாலை
104
+ } else {
105
+ return ' யாமம்';
106
+ }
107
+ },
108
+ meridiemHour : function (hour, meridiem) {
109
+ if (hour === 12) {
110
+ hour = 0;
111
+ }
112
+ if (meridiem === 'யாமம்') {
113
+ return hour < 2 ? hour : hour + 12;
114
+ } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
115
+ return hour;
116
+ } else if (meridiem === 'நண்பகல்') {
117
+ return hour >= 10 ? hour : hour + 12;
118
+ } else {
119
+ return hour + 12;
120
+ }
121
+ },
122
+ week : {
123
+ dow : 0, // Sunday is the first day of the week.
124
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
125
+ }
126
+ });
127
+
128
+ return ta;
129
+
130
+ })));