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,90 @@
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
+ // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
12
+ // This is currently too difficult (maybe even impossible) to add.
13
+ var tzl = moment.defineLocale('tzl', {
14
+ months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
15
+ monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
16
+ weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
17
+ weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
18
+ weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH.mm',
21
+ LTS : 'HH.mm.ss',
22
+ L : 'DD.MM.YYYY',
23
+ LL : 'D. MMMM [dallas] YYYY',
24
+ LLL : 'D. MMMM [dallas] YYYY HH.mm',
25
+ LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
26
+ },
27
+ meridiemParse: /d\'o|d\'a/i,
28
+ isPM : function (input) {
29
+ return 'd\'o' === input.toLowerCase();
30
+ },
31
+ meridiem : function (hours, minutes, isLower) {
32
+ if (hours > 11) {
33
+ return isLower ? 'd\'o' : 'D\'O';
34
+ } else {
35
+ return isLower ? 'd\'a' : 'D\'A';
36
+ }
37
+ },
38
+ calendar : {
39
+ sameDay : '[oxhi à] LT',
40
+ nextDay : '[demà à] LT',
41
+ nextWeek : 'dddd [à] LT',
42
+ lastDay : '[ieiri à] LT',
43
+ lastWeek : '[sür el] dddd [lasteu à] LT',
44
+ sameElse : 'L'
45
+ },
46
+ relativeTime : {
47
+ future : 'osprei %s',
48
+ past : 'ja%s',
49
+ s : processRelativeTime,
50
+ ss : processRelativeTime,
51
+ m : processRelativeTime,
52
+ mm : processRelativeTime,
53
+ h : processRelativeTime,
54
+ hh : processRelativeTime,
55
+ d : processRelativeTime,
56
+ dd : processRelativeTime,
57
+ M : processRelativeTime,
58
+ MM : processRelativeTime,
59
+ y : processRelativeTime,
60
+ yy : processRelativeTime
61
+ },
62
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
63
+ ordinal : '%d.',
64
+ week : {
65
+ dow : 1, // Monday is the first day of the week.
66
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
67
+ }
68
+ });
69
+
70
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
71
+ var format = {
72
+ 's': ['viensas secunds', '\'iensas secunds'],
73
+ 'ss': [number + ' secunds', '' + number + ' secunds'],
74
+ 'm': ['\'n míut', '\'iens míut'],
75
+ 'mm': [number + ' míuts', '' + number + ' míuts'],
76
+ 'h': ['\'n þora', '\'iensa þora'],
77
+ 'hh': [number + ' þoras', '' + number + ' þoras'],
78
+ 'd': ['\'n ziua', '\'iensa ziua'],
79
+ 'dd': [number + ' ziuas', '' + number + ' ziuas'],
80
+ 'M': ['\'n mes', '\'iens mes'],
81
+ 'MM': [number + ' mesen', '' + number + ' mesen'],
82
+ 'y': ['\'n ar', '\'iens ar'],
83
+ 'yy': [number + ' ars', '' + number + ' ars']
84
+ };
85
+ return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
86
+ }
87
+
88
+ return tzl;
89
+
90
+ })));
@@ -0,0 +1,57 @@
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 tzmLatn = moment.defineLocale('tzm-latn', {
12
+ months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
13
+ monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
14
+ weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
15
+ weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
16
+ weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'HH:mm',
19
+ LTS : 'HH:mm:ss',
20
+ L : 'DD/MM/YYYY',
21
+ LL : 'D MMMM YYYY',
22
+ LLL : 'D MMMM YYYY HH:mm',
23
+ LLLL : 'dddd D MMMM YYYY HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay: '[asdkh g] LT',
27
+ nextDay: '[aska g] LT',
28
+ nextWeek: 'dddd [g] LT',
29
+ lastDay: '[assant g] LT',
30
+ lastWeek: 'dddd [g] LT',
31
+ sameElse: 'L'
32
+ },
33
+ relativeTime : {
34
+ future : 'dadkh s yan %s',
35
+ past : 'yan %s',
36
+ s : 'imik',
37
+ ss : '%d imik',
38
+ m : 'minuḍ',
39
+ mm : '%d minuḍ',
40
+ h : 'saɛa',
41
+ hh : '%d tassaɛin',
42
+ d : 'ass',
43
+ dd : '%d ossan',
44
+ M : 'ayowr',
45
+ MM : '%d iyyirn',
46
+ y : 'asgas',
47
+ yy : '%d isgasn'
48
+ },
49
+ week : {
50
+ dow : 6, // Saturday is the first day of the week.
51
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return tzmLatn;
56
+
57
+ })));
@@ -0,0 +1,57 @@
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 tzm = moment.defineLocale('tzm', {
12
+ months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
13
+ monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
14
+ weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
15
+ weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
16
+ weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'HH:mm',
19
+ LTS: 'HH:mm:ss',
20
+ L : 'DD/MM/YYYY',
21
+ LL : 'D MMMM YYYY',
22
+ LLL : 'D MMMM YYYY HH:mm',
23
+ LLLL : 'dddd D MMMM YYYY HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
27
+ nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
28
+ nextWeek: 'dddd [ⴴ] LT',
29
+ lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
30
+ lastWeek: 'dddd [ⴴ] LT',
31
+ sameElse: 'L'
32
+ },
33
+ relativeTime : {
34
+ future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
35
+ past : 'ⵢⴰⵏ %s',
36
+ s : 'ⵉⵎⵉⴽ',
37
+ ss : '%d ⵉⵎⵉⴽ',
38
+ m : 'ⵎⵉⵏⵓⴺ',
39
+ mm : '%d ⵎⵉⵏⵓⴺ',
40
+ h : 'ⵙⴰⵄⴰ',
41
+ hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
42
+ d : 'ⴰⵙⵙ',
43
+ dd : '%d oⵙⵙⴰⵏ',
44
+ M : 'ⴰⵢoⵓⵔ',
45
+ MM : '%d ⵉⵢⵢⵉⵔⵏ',
46
+ y : 'ⴰⵙⴳⴰⵙ',
47
+ yy : '%d ⵉⵙⴳⴰⵙⵏ'
48
+ },
49
+ week : {
50
+ dow : 6, // Saturday is the first day of the week.
51
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return tzm;
56
+
57
+ })));
@@ -0,0 +1,118 @@
1
+ //! moment.js language 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 ugCn = moment.defineLocale('ug-cn', {
12
+ months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
13
+ '_'
14
+ ),
15
+ monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
16
+ '_'
17
+ ),
18
+ weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
19
+ '_'
20
+ ),
21
+ weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
22
+ weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
23
+ longDateFormat: {
24
+ LT: 'HH:mm',
25
+ LTS: 'HH:mm:ss',
26
+ L: 'YYYY-MM-DD',
27
+ LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
28
+ LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
29
+ LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
30
+ },
31
+ meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
32
+ meridiemHour: function (hour, meridiem) {
33
+ if (hour === 12) {
34
+ hour = 0;
35
+ }
36
+ if (
37
+ meridiem === 'يېرىم كېچە' ||
38
+ meridiem === 'سەھەر' ||
39
+ meridiem === 'چۈشتىن بۇرۇن'
40
+ ) {
41
+ return hour;
42
+ } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
43
+ return hour + 12;
44
+ } else {
45
+ return hour >= 11 ? hour : hour + 12;
46
+ }
47
+ },
48
+ meridiem: function (hour, minute, isLower) {
49
+ var hm = hour * 100 + minute;
50
+ if (hm < 600) {
51
+ return 'يېرىم كېچە';
52
+ } else if (hm < 900) {
53
+ return 'سەھەر';
54
+ } else if (hm < 1130) {
55
+ return 'چۈشتىن بۇرۇن';
56
+ } else if (hm < 1230) {
57
+ return 'چۈش';
58
+ } else if (hm < 1800) {
59
+ return 'چۈشتىن كېيىن';
60
+ } else {
61
+ return 'كەچ';
62
+ }
63
+ },
64
+ calendar: {
65
+ sameDay: '[بۈگۈن سائەت] LT',
66
+ nextDay: '[ئەتە سائەت] LT',
67
+ nextWeek: '[كېلەركى] dddd [سائەت] LT',
68
+ lastDay: '[تۆنۈگۈن] LT',
69
+ lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
70
+ sameElse: 'L'
71
+ },
72
+ relativeTime: {
73
+ future: '%s كېيىن',
74
+ past: '%s بۇرۇن',
75
+ s: 'نەچچە سېكونت',
76
+ ss: '%d سېكونت',
77
+ m: 'بىر مىنۇت',
78
+ mm: '%d مىنۇت',
79
+ h: 'بىر سائەت',
80
+ hh: '%d سائەت',
81
+ d: 'بىر كۈن',
82
+ dd: '%d كۈن',
83
+ M: 'بىر ئاي',
84
+ MM: '%d ئاي',
85
+ y: 'بىر يىل',
86
+ yy: '%d يىل'
87
+ },
88
+
89
+ dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
90
+ ordinal: function (number, period) {
91
+ switch (period) {
92
+ case 'd':
93
+ case 'D':
94
+ case 'DDD':
95
+ return number + '-كۈنى';
96
+ case 'w':
97
+ case 'W':
98
+ return number + '-ھەپتە';
99
+ default:
100
+ return number;
101
+ }
102
+ },
103
+ preparse: function (string) {
104
+ return string.replace(/،/g, ',');
105
+ },
106
+ postformat: function (string) {
107
+ return string.replace(/,/g, '،');
108
+ },
109
+ week: {
110
+ // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
111
+ dow: 1, // Monday is the first day of the week.
112
+ doy: 7 // The week that contains Jan 1st is the first week of the year.
113
+ }
114
+ });
115
+
116
+ return ugCn;
117
+
118
+ })));
@@ -0,0 +1,153 @@
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': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
20
+ 'dd': 'день_дні_днів',
21
+ 'MM': 'місяць_місяці_місяців',
22
+ 'yy': 'рік_роки_років'
23
+ };
24
+ if (key === 'm') {
25
+ return withoutSuffix ? 'хвилина' : 'хвилину';
26
+ }
27
+ else if (key === 'h') {
28
+ return withoutSuffix ? 'година' : 'годину';
29
+ }
30
+ else {
31
+ return number + ' ' + plural(format[key], +number);
32
+ }
33
+ }
34
+ function weekdaysCaseReplace(m, format) {
35
+ var weekdays = {
36
+ 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
37
+ 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
38
+ 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
39
+ };
40
+
41
+ if (m === true) {
42
+ return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
43
+ }
44
+ if (!m) {
45
+ return weekdays['nominative'];
46
+ }
47
+
48
+ var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
49
+ 'accusative' :
50
+ ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
51
+ 'genitive' :
52
+ 'nominative');
53
+ return weekdays[nounCase][m.day()];
54
+ }
55
+ function processHoursFunction(str) {
56
+ return function () {
57
+ return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
58
+ };
59
+ }
60
+
61
+ var uk = moment.defineLocale('uk', {
62
+ months : {
63
+ 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
64
+ 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
65
+ },
66
+ monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
67
+ weekdays : weekdaysCaseReplace,
68
+ weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
69
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
70
+ longDateFormat : {
71
+ LT : 'HH:mm',
72
+ LTS : 'HH:mm:ss',
73
+ L : 'DD.MM.YYYY',
74
+ LL : 'D MMMM YYYY р.',
75
+ LLL : 'D MMMM YYYY р., HH:mm',
76
+ LLLL : 'dddd, D MMMM YYYY р., HH:mm'
77
+ },
78
+ calendar : {
79
+ sameDay: processHoursFunction('[Сьогодні '),
80
+ nextDay: processHoursFunction('[Завтра '),
81
+ lastDay: processHoursFunction('[Вчора '),
82
+ nextWeek: processHoursFunction('[У] dddd ['),
83
+ lastWeek: function () {
84
+ switch (this.day()) {
85
+ case 0:
86
+ case 3:
87
+ case 5:
88
+ case 6:
89
+ return processHoursFunction('[Минулої] dddd [').call(this);
90
+ case 1:
91
+ case 2:
92
+ case 4:
93
+ return processHoursFunction('[Минулого] dddd [').call(this);
94
+ }
95
+ },
96
+ sameElse: 'L'
97
+ },
98
+ relativeTime : {
99
+ future : 'за %s',
100
+ past : '%s тому',
101
+ s : 'декілька секунд',
102
+ ss : relativeTimeWithPlural,
103
+ m : relativeTimeWithPlural,
104
+ mm : relativeTimeWithPlural,
105
+ h : 'годину',
106
+ hh : relativeTimeWithPlural,
107
+ d : 'день',
108
+ dd : relativeTimeWithPlural,
109
+ M : 'місяць',
110
+ MM : relativeTimeWithPlural,
111
+ y : 'рік',
112
+ yy : relativeTimeWithPlural
113
+ },
114
+ // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
115
+ meridiemParse: /ночі|ранку|дня|вечора/,
116
+ isPM: function (input) {
117
+ return /^(дня|вечора)$/.test(input);
118
+ },
119
+ meridiem : function (hour, minute, isLower) {
120
+ if (hour < 4) {
121
+ return 'ночі';
122
+ } else if (hour < 12) {
123
+ return 'ранку';
124
+ } else if (hour < 17) {
125
+ return 'дня';
126
+ } else {
127
+ return 'вечора';
128
+ }
129
+ },
130
+ dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
131
+ ordinal: function (number, period) {
132
+ switch (period) {
133
+ case 'M':
134
+ case 'd':
135
+ case 'DDD':
136
+ case 'w':
137
+ case 'W':
138
+ return number + '-й';
139
+ case 'D':
140
+ return number + '-го';
141
+ default:
142
+ return number;
143
+ }
144
+ },
145
+ week : {
146
+ dow : 1, // Monday is the first day of the week.
147
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
148
+ }
149
+ });
150
+
151
+ return uk;
152
+
153
+ })));