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,58 @@
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 arTn = moment.defineLocale('ar-tn', {
12
+ months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
13
+ monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14
+ weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
15
+ weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
16
+ weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
17
+ weekdaysParseExact : true,
18
+ longDateFormat: {
19
+ LT: 'HH:mm',
20
+ LTS: 'HH:mm:ss',
21
+ L: 'DD/MM/YYYY',
22
+ LL: 'D MMMM YYYY',
23
+ LLL: 'D MMMM YYYY HH:mm',
24
+ LLLL: 'dddd D MMMM YYYY HH:mm'
25
+ },
26
+ calendar: {
27
+ sameDay: '[اليوم على الساعة] LT',
28
+ nextDay: '[غدا على الساعة] LT',
29
+ nextWeek: 'dddd [على الساعة] LT',
30
+ lastDay: '[أمس على الساعة] LT',
31
+ lastWeek: 'dddd [على الساعة] LT',
32
+ sameElse: 'L'
33
+ },
34
+ relativeTime: {
35
+ future: 'في %s',
36
+ past: 'منذ %s',
37
+ s: 'ثوان',
38
+ ss : '%d ثانية',
39
+ m: 'دقيقة',
40
+ mm: '%d دقائق',
41
+ h: 'ساعة',
42
+ hh: '%d ساعات',
43
+ d: 'يوم',
44
+ dd: '%d أيام',
45
+ M: 'شهر',
46
+ MM: '%d أشهر',
47
+ y: 'سنة',
48
+ yy: '%d سنوات'
49
+ },
50
+ week: {
51
+ dow: 1, // Monday is the first day of the week.
52
+ doy: 4 // The week that contains Jan 4th is the first week of the year.
53
+ }
54
+ });
55
+
56
+ return arTn;
57
+
58
+ })));
@@ -0,0 +1,134 @@
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 symbolMap = {
12
+ '1': '١',
13
+ '2': '٢',
14
+ '3': '٣',
15
+ '4': '٤',
16
+ '5': '٥',
17
+ '6': '٦',
18
+ '7': '٧',
19
+ '8': '٨',
20
+ '9': '٩',
21
+ '0': '٠'
22
+ }, numberMap = {
23
+ '١': '1',
24
+ '٢': '2',
25
+ '٣': '3',
26
+ '٤': '4',
27
+ '٥': '5',
28
+ '٦': '6',
29
+ '٧': '7',
30
+ '٨': '8',
31
+ '٩': '9',
32
+ '٠': '0'
33
+ }, pluralForm = function (n) {
34
+ return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
35
+ }, plurals = {
36
+ s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
37
+ m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
38
+ h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
39
+ d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
40
+ M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
41
+ y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
42
+ }, pluralize = function (u) {
43
+ return function (number, withoutSuffix, string, isFuture) {
44
+ var f = pluralForm(number),
45
+ str = plurals[u][pluralForm(number)];
46
+ if (f === 2) {
47
+ str = str[withoutSuffix ? 0 : 1];
48
+ }
49
+ return str.replace(/%d/i, number);
50
+ };
51
+ }, months = [
52
+ 'يناير',
53
+ 'فبراير',
54
+ 'مارس',
55
+ 'أبريل',
56
+ 'مايو',
57
+ 'يونيو',
58
+ 'يوليو',
59
+ 'أغسطس',
60
+ 'سبتمبر',
61
+ 'أكتوبر',
62
+ 'نوفمبر',
63
+ 'ديسمبر'
64
+ ];
65
+
66
+ var ar = moment.defineLocale('ar', {
67
+ months : months,
68
+ monthsShort : months,
69
+ weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
70
+ weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
71
+ weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
72
+ weekdaysParseExact : true,
73
+ longDateFormat : {
74
+ LT : 'HH:mm',
75
+ LTS : 'HH:mm:ss',
76
+ L : 'D/\u200FM/\u200FYYYY',
77
+ LL : 'D MMMM YYYY',
78
+ LLL : 'D MMMM YYYY HH:mm',
79
+ LLLL : 'dddd D MMMM YYYY HH:mm'
80
+ },
81
+ meridiemParse: /ص|م/,
82
+ isPM : function (input) {
83
+ return 'م' === input;
84
+ },
85
+ meridiem : function (hour, minute, isLower) {
86
+ if (hour < 12) {
87
+ return 'ص';
88
+ } else {
89
+ return 'م';
90
+ }
91
+ },
92
+ calendar : {
93
+ sameDay: '[اليوم عند الساعة] LT',
94
+ nextDay: '[غدًا عند الساعة] LT',
95
+ nextWeek: 'dddd [عند الساعة] LT',
96
+ lastDay: '[أمس عند الساعة] LT',
97
+ lastWeek: 'dddd [عند الساعة] LT',
98
+ sameElse: 'L'
99
+ },
100
+ relativeTime : {
101
+ future : 'بعد %s',
102
+ past : 'منذ %s',
103
+ s : pluralize('s'),
104
+ ss : pluralize('s'),
105
+ m : pluralize('m'),
106
+ mm : pluralize('m'),
107
+ h : pluralize('h'),
108
+ hh : pluralize('h'),
109
+ d : pluralize('d'),
110
+ dd : pluralize('d'),
111
+ M : pluralize('M'),
112
+ MM : pluralize('M'),
113
+ y : pluralize('y'),
114
+ yy : pluralize('y')
115
+ },
116
+ preparse: function (string) {
117
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
118
+ return numberMap[match];
119
+ }).replace(/،/g, ',');
120
+ },
121
+ postformat: function (string) {
122
+ return string.replace(/\d/g, function (match) {
123
+ return symbolMap[match];
124
+ }).replace(/,/g, '،');
125
+ },
126
+ week : {
127
+ dow : 6, // Saturday is the first day of the week.
128
+ doy : 12 // The week that contains Jan 12th is the first week of the year.
129
+ }
130
+ });
131
+
132
+ return ar;
133
+
134
+ })));
@@ -0,0 +1,104 @@
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 suffixes = {
12
+ 1: '-inci',
13
+ 5: '-inci',
14
+ 8: '-inci',
15
+ 70: '-inci',
16
+ 80: '-inci',
17
+ 2: '-nci',
18
+ 7: '-nci',
19
+ 20: '-nci',
20
+ 50: '-nci',
21
+ 3: '-üncü',
22
+ 4: '-üncü',
23
+ 100: '-üncü',
24
+ 6: '-ncı',
25
+ 9: '-uncu',
26
+ 10: '-uncu',
27
+ 30: '-uncu',
28
+ 60: '-ıncı',
29
+ 90: '-ıncı'
30
+ };
31
+
32
+ var az = moment.defineLocale('az', {
33
+ months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
34
+ monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
35
+ weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
36
+ weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
37
+ weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
38
+ weekdaysParseExact : true,
39
+ longDateFormat : {
40
+ LT : 'HH:mm',
41
+ LTS : 'HH:mm:ss',
42
+ L : 'DD.MM.YYYY',
43
+ LL : 'D MMMM YYYY',
44
+ LLL : 'D MMMM YYYY HH:mm',
45
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
46
+ },
47
+ calendar : {
48
+ sameDay : '[bugün saat] LT',
49
+ nextDay : '[sabah saat] LT',
50
+ nextWeek : '[gələn həftə] dddd [saat] LT',
51
+ lastDay : '[dünən] LT',
52
+ lastWeek : '[keçən həftə] dddd [saat] LT',
53
+ sameElse : 'L'
54
+ },
55
+ relativeTime : {
56
+ future : '%s sonra',
57
+ past : '%s əvvəl',
58
+ s : 'birneçə saniyə',
59
+ ss : '%d saniyə',
60
+ m : 'bir dəqiqə',
61
+ mm : '%d dəqiqə',
62
+ h : 'bir saat',
63
+ hh : '%d saat',
64
+ d : 'bir gün',
65
+ dd : '%d gün',
66
+ M : 'bir ay',
67
+ MM : '%d ay',
68
+ y : 'bir il',
69
+ yy : '%d il'
70
+ },
71
+ meridiemParse: /gecə|səhər|gündüz|axşam/,
72
+ isPM : function (input) {
73
+ return /^(gündüz|axşam)$/.test(input);
74
+ },
75
+ meridiem : function (hour, minute, isLower) {
76
+ if (hour < 4) {
77
+ return 'gecə';
78
+ } else if (hour < 12) {
79
+ return 'səhər';
80
+ } else if (hour < 17) {
81
+ return 'gündüz';
82
+ } else {
83
+ return 'axşam';
84
+ }
85
+ },
86
+ dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
87
+ ordinal : function (number) {
88
+ if (number === 0) { // special case for zero
89
+ return number + '-ıncı';
90
+ }
91
+ var a = number % 10,
92
+ b = number % 100 - a,
93
+ c = number >= 100 ? 100 : null;
94
+ return number + (suffixes[a] || suffixes[b] || suffixes[c]);
95
+ },
96
+ week : {
97
+ dow : 1, // Monday is the first day of the week.
98
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
99
+ }
100
+ });
101
+
102
+ return az;
103
+
104
+ })));
@@ -0,0 +1,131 @@
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
+
35
+ var be = moment.defineLocale('be', {
36
+ months : {
37
+ format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
38
+ standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
39
+ },
40
+ monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
41
+ weekdays : {
42
+ format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
43
+ standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
44
+ isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
45
+ },
46
+ weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
47
+ weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
48
+ longDateFormat : {
49
+ LT : 'HH:mm',
50
+ LTS : 'HH:mm:ss',
51
+ L : 'DD.MM.YYYY',
52
+ LL : 'D MMMM YYYY г.',
53
+ LLL : 'D MMMM YYYY г., HH:mm',
54
+ LLLL : 'dddd, D MMMM YYYY г., HH:mm'
55
+ },
56
+ calendar : {
57
+ sameDay: '[Сёння ў] LT',
58
+ nextDay: '[Заўтра ў] LT',
59
+ lastDay: '[Учора ў] LT',
60
+ nextWeek: function () {
61
+ return '[У] dddd [ў] LT';
62
+ },
63
+ lastWeek: function () {
64
+ switch (this.day()) {
65
+ case 0:
66
+ case 3:
67
+ case 5:
68
+ case 6:
69
+ return '[У мінулую] dddd [ў] LT';
70
+ case 1:
71
+ case 2:
72
+ case 4:
73
+ return '[У мінулы] dddd [ў] LT';
74
+ }
75
+ },
76
+ sameElse: 'L'
77
+ },
78
+ relativeTime : {
79
+ future : 'праз %s',
80
+ past : '%s таму',
81
+ s : 'некалькі секунд',
82
+ m : relativeTimeWithPlural,
83
+ mm : relativeTimeWithPlural,
84
+ h : relativeTimeWithPlural,
85
+ hh : relativeTimeWithPlural,
86
+ d : 'дзень',
87
+ dd : relativeTimeWithPlural,
88
+ M : 'месяц',
89
+ MM : relativeTimeWithPlural,
90
+ y : 'год',
91
+ yy : relativeTimeWithPlural
92
+ },
93
+ meridiemParse: /ночы|раніцы|дня|вечара/,
94
+ isPM : function (input) {
95
+ return /^(дня|вечара)$/.test(input);
96
+ },
97
+ meridiem : function (hour, minute, isLower) {
98
+ if (hour < 4) {
99
+ return 'ночы';
100
+ } else if (hour < 12) {
101
+ return 'раніцы';
102
+ } else if (hour < 17) {
103
+ return 'дня';
104
+ } else {
105
+ return 'вечара';
106
+ }
107
+ },
108
+ dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
109
+ ordinal: function (number, period) {
110
+ switch (period) {
111
+ case 'M':
112
+ case 'd':
113
+ case 'DDD':
114
+ case 'w':
115
+ case 'W':
116
+ return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
117
+ case 'D':
118
+ return number + '-га';
119
+ default:
120
+ return number;
121
+ }
122
+ },
123
+ week : {
124
+ dow : 1, // Monday is the first day of the week.
125
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
126
+ }
127
+ });
128
+
129
+ return be;
130
+
131
+ })));
@@ -0,0 +1,89 @@
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 bg = moment.defineLocale('bg', {
12
+ months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
13
+ monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
14
+ weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
15
+ weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
16
+ weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'H:mm',
19
+ LTS : 'H:mm:ss',
20
+ L : 'D.MM.YYYY',
21
+ LL : 'D MMMM YYYY',
22
+ LLL : 'D MMMM YYYY H:mm',
23
+ LLLL : 'dddd, D MMMM YYYY H:mm'
24
+ },
25
+ calendar : {
26
+ sameDay : '[Днес в] LT',
27
+ nextDay : '[Утре в] LT',
28
+ nextWeek : 'dddd [в] LT',
29
+ lastDay : '[Вчера в] LT',
30
+ lastWeek : function () {
31
+ switch (this.day()) {
32
+ case 0:
33
+ case 3:
34
+ case 6:
35
+ return '[В изминалата] dddd [в] LT';
36
+ case 1:
37
+ case 2:
38
+ case 4:
39
+ case 5:
40
+ return '[В изминалия] dddd [в] LT';
41
+ }
42
+ },
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : 'след %s',
47
+ past : 'преди %s',
48
+ s : 'няколко секунди',
49
+ ss : '%d секунди',
50
+ m : 'минута',
51
+ mm : '%d минути',
52
+ h : 'час',
53
+ hh : '%d часа',
54
+ d : 'ден',
55
+ dd : '%d дни',
56
+ M : 'месец',
57
+ MM : '%d месеца',
58
+ y : 'година',
59
+ yy : '%d години'
60
+ },
61
+ dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
62
+ ordinal : function (number) {
63
+ var lastDigit = number % 10,
64
+ last2Digits = number % 100;
65
+ if (number === 0) {
66
+ return number + '-ев';
67
+ } else if (last2Digits === 0) {
68
+ return number + '-ен';
69
+ } else if (last2Digits > 10 && last2Digits < 20) {
70
+ return number + '-ти';
71
+ } else if (lastDigit === 1) {
72
+ return number + '-ви';
73
+ } else if (lastDigit === 2) {
74
+ return number + '-ри';
75
+ } else if (lastDigit === 7 || lastDigit === 8) {
76
+ return number + '-ми';
77
+ } else {
78
+ return number + '-ти';
79
+ }
80
+ },
81
+ week : {
82
+ dow : 1, // Monday is the first day of the week.
83
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
84
+ }
85
+ });
86
+
87
+ return bg;
88
+
89
+ })));