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,87 @@
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 ca = moment.defineLocale('ca', {
12
+ months : {
13
+ standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
14
+ format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
15
+ isFormat: /D[oD]?(\s)+MMMM/
16
+ },
17
+ monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
18
+ monthsParseExact : true,
19
+ weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
20
+ weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
21
+ weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
22
+ weekdaysParseExact : true,
23
+ longDateFormat : {
24
+ LT : 'H:mm',
25
+ LTS : 'H:mm:ss',
26
+ L : 'DD/MM/YYYY',
27
+ LL : 'D MMMM [de] YYYY',
28
+ ll : 'D MMM YYYY',
29
+ LLL : 'D MMMM [de] YYYY [a les] H:mm',
30
+ lll : 'D MMM YYYY, H:mm',
31
+ LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
32
+ llll : 'ddd D MMM YYYY, H:mm'
33
+ },
34
+ calendar : {
35
+ sameDay : function () {
36
+ return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
37
+ },
38
+ nextDay : function () {
39
+ return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
40
+ },
41
+ nextWeek : function () {
42
+ return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
43
+ },
44
+ lastDay : function () {
45
+ return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
46
+ },
47
+ lastWeek : function () {
48
+ return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
49
+ },
50
+ sameElse : 'L'
51
+ },
52
+ relativeTime : {
53
+ future : 'd\'aquí %s',
54
+ past : 'fa %s',
55
+ s : 'uns segons',
56
+ ss : '%d segons',
57
+ m : 'un minut',
58
+ mm : '%d minuts',
59
+ h : 'una hora',
60
+ hh : '%d hores',
61
+ d : 'un dia',
62
+ dd : '%d dies',
63
+ M : 'un mes',
64
+ MM : '%d mesos',
65
+ y : 'un any',
66
+ yy : '%d anys'
67
+ },
68
+ dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
69
+ ordinal : function (number, period) {
70
+ var output = (number === 1) ? 'r' :
71
+ (number === 2) ? 'n' :
72
+ (number === 3) ? 'r' :
73
+ (number === 4) ? 't' : 'è';
74
+ if (period === 'w' || period === 'W') {
75
+ output = 'a';
76
+ }
77
+ return number + output;
78
+ },
79
+ week : {
80
+ dow : 1, // Monday is the first day of the week.
81
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
82
+ }
83
+ });
84
+
85
+ return ca;
86
+
87
+ })));
@@ -0,0 +1,171 @@
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 months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
12
+ monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
13
+
14
+ var monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i];
15
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
16
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
17
+ var monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
18
+
19
+ function plural(n) {
20
+ return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
21
+ }
22
+ function translate(number, withoutSuffix, key, isFuture) {
23
+ var result = number + ' ';
24
+ switch (key) {
25
+ case 's': // a few seconds / in a few seconds / a few seconds ago
26
+ return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
27
+ case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
28
+ if (withoutSuffix || isFuture) {
29
+ return result + (plural(number) ? 'sekundy' : 'sekund');
30
+ } else {
31
+ return result + 'sekundami';
32
+ }
33
+ break;
34
+ case 'm': // a minute / in a minute / a minute ago
35
+ return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
36
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
37
+ if (withoutSuffix || isFuture) {
38
+ return result + (plural(number) ? 'minuty' : 'minut');
39
+ } else {
40
+ return result + 'minutami';
41
+ }
42
+ break;
43
+ case 'h': // an hour / in an hour / an hour ago
44
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
45
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
46
+ if (withoutSuffix || isFuture) {
47
+ return result + (plural(number) ? 'hodiny' : 'hodin');
48
+ } else {
49
+ return result + 'hodinami';
50
+ }
51
+ break;
52
+ case 'd': // a day / in a day / a day ago
53
+ return (withoutSuffix || isFuture) ? 'den' : 'dnem';
54
+ case 'dd': // 9 days / in 9 days / 9 days ago
55
+ if (withoutSuffix || isFuture) {
56
+ return result + (plural(number) ? 'dny' : 'dní');
57
+ } else {
58
+ return result + 'dny';
59
+ }
60
+ break;
61
+ case 'M': // a month / in a month / a month ago
62
+ return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
63
+ case 'MM': // 9 months / in 9 months / 9 months ago
64
+ if (withoutSuffix || isFuture) {
65
+ return result + (plural(number) ? 'měsíce' : 'měsíců');
66
+ } else {
67
+ return result + 'měsíci';
68
+ }
69
+ break;
70
+ case 'y': // a year / in a year / a year ago
71
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
72
+ case 'yy': // 9 years / in 9 years / 9 years ago
73
+ if (withoutSuffix || isFuture) {
74
+ return result + (plural(number) ? 'roky' : 'let');
75
+ } else {
76
+ return result + 'lety';
77
+ }
78
+ break;
79
+ }
80
+ }
81
+
82
+ var cs = moment.defineLocale('cs', {
83
+ months : months,
84
+ monthsShort : monthsShort,
85
+ monthsRegex : monthsRegex,
86
+ monthsShortRegex : monthsRegex,
87
+ // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
88
+ // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
89
+ monthsStrictRegex : /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
90
+ monthsShortStrictRegex : /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
91
+ monthsParse : monthsParse,
92
+ longMonthsParse : monthsParse,
93
+ shortMonthsParse : monthsParse,
94
+ weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
95
+ weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
96
+ weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
97
+ longDateFormat : {
98
+ LT: 'H:mm',
99
+ LTS : 'H:mm:ss',
100
+ L : 'DD.MM.YYYY',
101
+ LL : 'D. MMMM YYYY',
102
+ LLL : 'D. MMMM YYYY H:mm',
103
+ LLLL : 'dddd D. MMMM YYYY H:mm',
104
+ l : 'D. M. YYYY'
105
+ },
106
+ calendar : {
107
+ sameDay: '[dnes v] LT',
108
+ nextDay: '[zítra v] LT',
109
+ nextWeek: function () {
110
+ switch (this.day()) {
111
+ case 0:
112
+ return '[v neděli v] LT';
113
+ case 1:
114
+ case 2:
115
+ return '[v] dddd [v] LT';
116
+ case 3:
117
+ return '[ve středu v] LT';
118
+ case 4:
119
+ return '[ve čtvrtek v] LT';
120
+ case 5:
121
+ return '[v pátek v] LT';
122
+ case 6:
123
+ return '[v sobotu v] LT';
124
+ }
125
+ },
126
+ lastDay: '[včera v] LT',
127
+ lastWeek: function () {
128
+ switch (this.day()) {
129
+ case 0:
130
+ return '[minulou neděli v] LT';
131
+ case 1:
132
+ case 2:
133
+ return '[minulé] dddd [v] LT';
134
+ case 3:
135
+ return '[minulou středu v] LT';
136
+ case 4:
137
+ case 5:
138
+ return '[minulý] dddd [v] LT';
139
+ case 6:
140
+ return '[minulou sobotu v] LT';
141
+ }
142
+ },
143
+ sameElse: 'L'
144
+ },
145
+ relativeTime : {
146
+ future : 'za %s',
147
+ past : 'před %s',
148
+ s : translate,
149
+ ss : translate,
150
+ m : translate,
151
+ mm : translate,
152
+ h : translate,
153
+ hh : translate,
154
+ d : translate,
155
+ dd : translate,
156
+ M : translate,
157
+ MM : translate,
158
+ y : translate,
159
+ yy : translate
160
+ },
161
+ dayOfMonthOrdinalParse : /\d{1,2}\./,
162
+ ordinal : '%d.',
163
+ week : {
164
+ dow : 1, // Monday is the first day of the week.
165
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
166
+ }
167
+ });
168
+
169
+ return cs;
170
+
171
+ })));
@@ -0,0 +1,62 @@
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 cv = moment.defineLocale('cv', {
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 : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
22
+ LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
23
+ LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay: '[Паян] LT [сехетре]',
27
+ nextDay: '[Ыран] LT [сехетре]',
28
+ lastDay: '[Ӗнер] LT [сехетре]',
29
+ nextWeek: '[Ҫитес] dddd LT [сехетре]',
30
+ lastWeek: '[Иртнӗ] dddd LT [сехетре]',
31
+ sameElse: 'L'
32
+ },
33
+ relativeTime : {
34
+ future : function (output) {
35
+ var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
36
+ return output + affix;
37
+ },
38
+ past : '%s каялла',
39
+ s : 'пӗр-ик ҫеккунт',
40
+ ss : '%d ҫеккунт',
41
+ m : 'пӗр минут',
42
+ mm : '%d минут',
43
+ h : 'пӗр сехет',
44
+ hh : '%d сехет',
45
+ d : 'пӗр кун',
46
+ dd : '%d кун',
47
+ M : 'пӗр уйӑх',
48
+ MM : '%d уйӑх',
49
+ y : 'пӗр ҫул',
50
+ yy : '%d ҫул'
51
+ },
52
+ dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
53
+ ordinal : '%d-мӗш',
54
+ week : {
55
+ dow : 1, // Monday is the first day of the week.
56
+ doy : 7 // The week that contains Jan 7th is the first week of the year.
57
+ }
58
+ });
59
+
60
+ return cv;
61
+
62
+ })));
@@ -0,0 +1,79 @@
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 cy = moment.defineLocale('cy', {
12
+ months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
13
+ monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
14
+ weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
15
+ weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
16
+ weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
17
+ weekdaysParseExact : true,
18
+ // time formats are the same as en-gb
19
+ longDateFormat: {
20
+ LT: 'HH:mm',
21
+ LTS : 'HH:mm:ss',
22
+ L: 'DD/MM/YYYY',
23
+ LL: 'D MMMM YYYY',
24
+ LLL: 'D MMMM YYYY HH:mm',
25
+ LLLL: 'dddd, D MMMM YYYY HH:mm'
26
+ },
27
+ calendar: {
28
+ sameDay: '[Heddiw am] LT',
29
+ nextDay: '[Yfory am] LT',
30
+ nextWeek: 'dddd [am] LT',
31
+ lastDay: '[Ddoe am] LT',
32
+ lastWeek: 'dddd [diwethaf am] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime: {
36
+ future: 'mewn %s',
37
+ past: '%s yn ôl',
38
+ s: 'ychydig eiliadau',
39
+ ss: '%d eiliad',
40
+ m: 'munud',
41
+ mm: '%d munud',
42
+ h: 'awr',
43
+ hh: '%d awr',
44
+ d: 'diwrnod',
45
+ dd: '%d diwrnod',
46
+ M: 'mis',
47
+ MM: '%d mis',
48
+ y: 'blwyddyn',
49
+ yy: '%d flynedd'
50
+ },
51
+ dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
52
+ // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
53
+ ordinal: function (number) {
54
+ var b = number,
55
+ output = '',
56
+ lookup = [
57
+ '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
58
+ 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
59
+ ];
60
+ if (b > 20) {
61
+ if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
62
+ output = 'fed'; // not 30ain, 70ain or 90ain
63
+ } else {
64
+ output = 'ain';
65
+ }
66
+ } else if (b > 0) {
67
+ output = lookup[b];
68
+ }
69
+ return number + output;
70
+ },
71
+ week : {
72
+ dow : 1, // Monday is the first day of the week.
73
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
74
+ }
75
+ });
76
+
77
+ return cy;
78
+
79
+ })));
@@ -0,0 +1,59 @@
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 da = moment.defineLocale('da', {
12
+ months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
13
+ monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
14
+ weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
15
+ weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
16
+ weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.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.] D. MMMM YYYY [kl.] HH:mm'
24
+ },
25
+ calendar : {
26
+ sameDay : '[i dag kl.] LT',
27
+ nextDay : '[i morgen kl.] LT',
28
+ nextWeek : 'på dddd [kl.] LT',
29
+ lastDay : '[i går kl.] LT',
30
+ lastWeek : '[i] dddd[s kl.] LT',
31
+ sameElse : 'L'
32
+ },
33
+ relativeTime : {
34
+ future : 'om %s',
35
+ past : '%s siden',
36
+ s : 'få sekunder',
37
+ ss : '%d sekunder',
38
+ m : 'et minut',
39
+ mm : '%d minutter',
40
+ h : 'en time',
41
+ hh : '%d timer',
42
+ d : 'en dag',
43
+ dd : '%d dage',
44
+ M : 'en måned',
45
+ MM : '%d måneder',
46
+ y : 'et år',
47
+ yy : '%d år'
48
+ },
49
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return da;
58
+
59
+ })));