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,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 bm = moment.defineLocale('bm', {
12
+ months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
13
+ monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
14
+ weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
15
+ weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
16
+ weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
17
+ longDateFormat : {
18
+ LT : 'HH:mm',
19
+ LTS : 'HH:mm:ss',
20
+ L : 'DD/MM/YYYY',
21
+ LL : 'MMMM [tile] D [san] YYYY',
22
+ LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
23
+ LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay : '[Bi lɛrɛ] LT',
27
+ nextDay : '[Sini lɛrɛ] LT',
28
+ nextWeek : 'dddd [don lɛrɛ] LT',
29
+ lastDay : '[Kunu lɛrɛ] LT',
30
+ lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
31
+ sameElse : 'L'
32
+ },
33
+ relativeTime : {
34
+ future : '%s kɔnɔ',
35
+ past : 'a bɛ %s bɔ',
36
+ s : 'sanga dama dama',
37
+ ss : 'sekondi %d',
38
+ m : 'miniti kelen',
39
+ mm : 'miniti %d',
40
+ h : 'lɛrɛ kelen',
41
+ hh : 'lɛrɛ %d',
42
+ d : 'tile kelen',
43
+ dd : 'tile %d',
44
+ M : 'kalo kelen',
45
+ MM : 'kalo %d',
46
+ y : 'san kelen',
47
+ yy : 'san %d'
48
+ },
49
+ week : {
50
+ dow : 1, // Monday is the first day of the week.
51
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
52
+ }
53
+ });
54
+
55
+ return bm;
56
+
57
+ })));
@@ -0,0 +1,118 @@
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
+ },
23
+ numberMap = {
24
+ '১': '1',
25
+ '২': '2',
26
+ '৩': '3',
27
+ '৪': '4',
28
+ '৫': '5',
29
+ '৬': '6',
30
+ '৭': '7',
31
+ '৮': '8',
32
+ '৯': '9',
33
+ '০': '0'
34
+ };
35
+
36
+ var bn = moment.defineLocale('bn', {
37
+ months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
38
+ monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
39
+ weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
40
+ weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
41
+ weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
42
+ longDateFormat : {
43
+ LT : 'A h:mm সময়',
44
+ LTS : 'A h:mm:ss সময়',
45
+ L : 'DD/MM/YYYY',
46
+ LL : 'D MMMM YYYY',
47
+ LLL : 'D MMMM YYYY, A h:mm সময়',
48
+ LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
49
+ },
50
+ calendar : {
51
+ sameDay : '[আজ] LT',
52
+ nextDay : '[আগামীকাল] LT',
53
+ nextWeek : 'dddd, LT',
54
+ lastDay : '[গতকাল] LT',
55
+ lastWeek : '[গত] dddd, LT',
56
+ sameElse : 'L'
57
+ },
58
+ relativeTime : {
59
+ future : '%s পরে',
60
+ past : '%s আগে',
61
+ s : 'কয়েক সেকেন্ড',
62
+ ss : '%d সেকেন্ড',
63
+ m : 'এক মিনিট',
64
+ mm : '%d মিনিট',
65
+ h : 'এক ঘন্টা',
66
+ hh : '%d ঘন্টা',
67
+ d : 'এক দিন',
68
+ dd : '%d দিন',
69
+ M : 'এক মাস',
70
+ MM : '%d মাস',
71
+ y : 'এক বছর',
72
+ yy : '%d বছর'
73
+ },
74
+ preparse: function (string) {
75
+ return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
76
+ return numberMap[match];
77
+ });
78
+ },
79
+ postformat: function (string) {
80
+ return string.replace(/\d/g, function (match) {
81
+ return symbolMap[match];
82
+ });
83
+ },
84
+ meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
85
+ meridiemHour : function (hour, meridiem) {
86
+ if (hour === 12) {
87
+ hour = 0;
88
+ }
89
+ if ((meridiem === 'রাত' && hour >= 4) ||
90
+ (meridiem === 'দুপুর' && hour < 5) ||
91
+ meridiem === 'বিকাল') {
92
+ return hour + 12;
93
+ } else {
94
+ return hour;
95
+ }
96
+ },
97
+ meridiem : function (hour, minute, isLower) {
98
+ if (hour < 4) {
99
+ return 'রাত';
100
+ } else if (hour < 10) {
101
+ return 'সকাল';
102
+ } else if (hour < 17) {
103
+ return 'দুপুর';
104
+ } else if (hour < 20) {
105
+ return 'বিকাল';
106
+ } else {
107
+ return 'রাত';
108
+ }
109
+ },
110
+ week : {
111
+ dow : 0, // Sunday is the first day of the week.
112
+ doy : 6 // The week that contains Jan 6th is the first week of the year.
113
+ }
114
+ });
115
+
116
+ return bn;
117
+
118
+ })));
@@ -0,0 +1,118 @@
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
+ },
23
+ numberMap = {
24
+ '༡': '1',
25
+ '༢': '2',
26
+ '༣': '3',
27
+ '༤': '4',
28
+ '༥': '5',
29
+ '༦': '6',
30
+ '༧': '7',
31
+ '༨': '8',
32
+ '༩': '9',
33
+ '༠': '0'
34
+ };
35
+
36
+ var bo = moment.defineLocale('bo', {
37
+ months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
38
+ monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
39
+ weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
40
+ weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
41
+ weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
42
+ longDateFormat : {
43
+ LT : 'A h:mm',
44
+ LTS : 'A h:mm:ss',
45
+ L : 'DD/MM/YYYY',
46
+ LL : 'D MMMM YYYY',
47
+ LLL : 'D MMMM YYYY, A h:mm',
48
+ LLLL : 'dddd, D MMMM YYYY, A h:mm'
49
+ },
50
+ calendar : {
51
+ sameDay : '[དི་རིང] LT',
52
+ nextDay : '[སང་ཉིན] LT',
53
+ nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
54
+ lastDay : '[ཁ་སང] LT',
55
+ lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
56
+ sameElse : 'L'
57
+ },
58
+ relativeTime : {
59
+ future : '%s ལ་',
60
+ past : '%s སྔན་ལ',
61
+ s : 'ལམ་སང',
62
+ ss : '%d སྐར་ཆ།',
63
+ m : 'སྐར་མ་གཅིག',
64
+ mm : '%d སྐར་མ',
65
+ h : 'ཆུ་ཚོད་གཅིག',
66
+ hh : '%d ཆུ་ཚོད',
67
+ d : 'ཉིན་གཅིག',
68
+ dd : '%d ཉིན་',
69
+ M : 'ཟླ་བ་གཅིག',
70
+ MM : '%d ཟླ་བ',
71
+ y : 'ལོ་གཅིག',
72
+ yy : '%d ལོ'
73
+ },
74
+ preparse: function (string) {
75
+ return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
76
+ return numberMap[match];
77
+ });
78
+ },
79
+ postformat: function (string) {
80
+ return string.replace(/\d/g, function (match) {
81
+ return symbolMap[match];
82
+ });
83
+ },
84
+ meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
85
+ meridiemHour : function (hour, meridiem) {
86
+ if (hour === 12) {
87
+ hour = 0;
88
+ }
89
+ if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
90
+ (meridiem === 'ཉིན་གུང' && hour < 5) ||
91
+ meridiem === 'དགོང་དག') {
92
+ return hour + 12;
93
+ } else {
94
+ return hour;
95
+ }
96
+ },
97
+ meridiem : function (hour, minute, isLower) {
98
+ if (hour < 4) {
99
+ return 'མཚན་མོ';
100
+ } else if (hour < 10) {
101
+ return 'ཞོགས་ཀས';
102
+ } else if (hour < 17) {
103
+ return 'ཉིན་གུང';
104
+ } else if (hour < 20) {
105
+ return 'དགོང་དག';
106
+ } else {
107
+ return 'མཚན་མོ';
108
+ }
109
+ },
110
+ week : {
111
+ dow : 0, // Sunday is the first day of the week.
112
+ doy : 6 // The week that contains Jan 6th is the first week of the year.
113
+ }
114
+ });
115
+
116
+ return bo;
117
+
118
+ })));
@@ -0,0 +1,107 @@
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 relativeTimeWithMutation(number, withoutSuffix, key) {
12
+ var format = {
13
+ 'mm': 'munutenn',
14
+ 'MM': 'miz',
15
+ 'dd': 'devezh'
16
+ };
17
+ return number + ' ' + mutation(format[key], number);
18
+ }
19
+ function specialMutationForYears(number) {
20
+ switch (lastNumber(number)) {
21
+ case 1:
22
+ case 3:
23
+ case 4:
24
+ case 5:
25
+ case 9:
26
+ return number + ' bloaz';
27
+ default:
28
+ return number + ' vloaz';
29
+ }
30
+ }
31
+ function lastNumber(number) {
32
+ if (number > 9) {
33
+ return lastNumber(number % 10);
34
+ }
35
+ return number;
36
+ }
37
+ function mutation(text, number) {
38
+ if (number === 2) {
39
+ return softMutation(text);
40
+ }
41
+ return text;
42
+ }
43
+ function softMutation(text) {
44
+ var mutationTable = {
45
+ 'm': 'v',
46
+ 'b': 'v',
47
+ 'd': 'z'
48
+ };
49
+ if (mutationTable[text.charAt(0)] === undefined) {
50
+ return text;
51
+ }
52
+ return mutationTable[text.charAt(0)] + text.substring(1);
53
+ }
54
+
55
+ var br = moment.defineLocale('br', {
56
+ months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
57
+ monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
58
+ weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
59
+ weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
60
+ weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
61
+ weekdaysParseExact : true,
62
+ longDateFormat : {
63
+ LT : 'h[e]mm A',
64
+ LTS : 'h[e]mm:ss A',
65
+ L : 'DD/MM/YYYY',
66
+ LL : 'D [a viz] MMMM YYYY',
67
+ LLL : 'D [a viz] MMMM YYYY h[e]mm A',
68
+ LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
69
+ },
70
+ calendar : {
71
+ sameDay : '[Hiziv da] LT',
72
+ nextDay : '[Warc\'hoazh da] LT',
73
+ nextWeek : 'dddd [da] LT',
74
+ lastDay : '[Dec\'h da] LT',
75
+ lastWeek : 'dddd [paset da] LT',
76
+ sameElse : 'L'
77
+ },
78
+ relativeTime : {
79
+ future : 'a-benn %s',
80
+ past : '%s \'zo',
81
+ s : 'un nebeud segondennoù',
82
+ ss : '%d eilenn',
83
+ m : 'ur vunutenn',
84
+ mm : relativeTimeWithMutation,
85
+ h : 'un eur',
86
+ hh : '%d eur',
87
+ d : 'un devezh',
88
+ dd : relativeTimeWithMutation,
89
+ M : 'ur miz',
90
+ MM : relativeTimeWithMutation,
91
+ y : 'ur bloaz',
92
+ yy : specialMutationForYears
93
+ },
94
+ dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
95
+ ordinal : function (number) {
96
+ var output = (number === 1) ? 'añ' : 'vet';
97
+ return number + output;
98
+ },
99
+ week : {
100
+ dow : 1, // Monday is the first day of the week.
101
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
102
+ }
103
+ });
104
+
105
+ return br;
106
+
107
+ })));
@@ -0,0 +1,150 @@
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 translate(number, withoutSuffix, key) {
12
+ var result = number + ' ';
13
+ switch (key) {
14
+ case 'ss':
15
+ if (number === 1) {
16
+ result += 'sekunda';
17
+ } else if (number === 2 || number === 3 || number === 4) {
18
+ result += 'sekunde';
19
+ } else {
20
+ result += 'sekundi';
21
+ }
22
+ return result;
23
+ case 'm':
24
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
25
+ case 'mm':
26
+ if (number === 1) {
27
+ result += 'minuta';
28
+ } else if (number === 2 || number === 3 || number === 4) {
29
+ result += 'minute';
30
+ } else {
31
+ result += 'minuta';
32
+ }
33
+ return result;
34
+ case 'h':
35
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
36
+ case 'hh':
37
+ if (number === 1) {
38
+ result += 'sat';
39
+ } else if (number === 2 || number === 3 || number === 4) {
40
+ result += 'sata';
41
+ } else {
42
+ result += 'sati';
43
+ }
44
+ return result;
45
+ case 'dd':
46
+ if (number === 1) {
47
+ result += 'dan';
48
+ } else {
49
+ result += 'dana';
50
+ }
51
+ return result;
52
+ case 'MM':
53
+ if (number === 1) {
54
+ result += 'mjesec';
55
+ } else if (number === 2 || number === 3 || number === 4) {
56
+ result += 'mjeseca';
57
+ } else {
58
+ result += 'mjeseci';
59
+ }
60
+ return result;
61
+ case 'yy':
62
+ if (number === 1) {
63
+ result += 'godina';
64
+ } else if (number === 2 || number === 3 || number === 4) {
65
+ result += 'godine';
66
+ } else {
67
+ result += 'godina';
68
+ }
69
+ return result;
70
+ }
71
+ }
72
+
73
+ var bs = moment.defineLocale('bs', {
74
+ months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
75
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
76
+ monthsParseExact: true,
77
+ weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
78
+ weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
79
+ weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
80
+ weekdaysParseExact : true,
81
+ longDateFormat : {
82
+ LT : 'H:mm',
83
+ LTS : 'H:mm:ss',
84
+ L : 'DD.MM.YYYY',
85
+ LL : 'D. MMMM YYYY',
86
+ LLL : 'D. MMMM YYYY H:mm',
87
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
88
+ },
89
+ calendar : {
90
+ sameDay : '[danas u] LT',
91
+ nextDay : '[sutra u] LT',
92
+ nextWeek : function () {
93
+ switch (this.day()) {
94
+ case 0:
95
+ return '[u] [nedjelju] [u] LT';
96
+ case 3:
97
+ return '[u] [srijedu] [u] LT';
98
+ case 6:
99
+ return '[u] [subotu] [u] LT';
100
+ case 1:
101
+ case 2:
102
+ case 4:
103
+ case 5:
104
+ return '[u] dddd [u] LT';
105
+ }
106
+ },
107
+ lastDay : '[jučer u] LT',
108
+ lastWeek : function () {
109
+ switch (this.day()) {
110
+ case 0:
111
+ case 3:
112
+ return '[prošlu] dddd [u] LT';
113
+ case 6:
114
+ return '[prošle] [subote] [u] LT';
115
+ case 1:
116
+ case 2:
117
+ case 4:
118
+ case 5:
119
+ return '[prošli] dddd [u] LT';
120
+ }
121
+ },
122
+ sameElse : 'L'
123
+ },
124
+ relativeTime : {
125
+ future : 'za %s',
126
+ past : 'prije %s',
127
+ s : 'par sekundi',
128
+ ss : translate,
129
+ m : translate,
130
+ mm : translate,
131
+ h : translate,
132
+ hh : translate,
133
+ d : 'dan',
134
+ dd : translate,
135
+ M : 'mjesec',
136
+ MM : translate,
137
+ y : 'godinu',
138
+ yy : translate
139
+ },
140
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
141
+ ordinal : '%d.',
142
+ week : {
143
+ dow : 1, // Monday is the first day of the week.
144
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
145
+ }
146
+ });
147
+
148
+ return bs;
149
+
150
+ })));