logster 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +18 -0
- data/assets/javascript/app.js +377 -0
- data/assets/javascript/external/ember.js +44267 -0
- data/assets/javascript/external/ember.min.js +19 -0
- data/assets/javascript/external/handlebars.min.js +28 -0
- data/assets/javascript/external/jquery.min.js +5 -0
- data/assets/javascript/external/lodash.min.js +56 -0
- data/assets/javascript/external/moment.min.js +6 -0
- data/assets/javascript/templates/application.handlebars +1 -0
- data/assets/javascript/templates/index.handlebars +48 -0
- data/assets/javascript/templates/message.handlebars +7 -0
- data/assets/stylesheets/app.css +188 -0
- data/bower_components/ember/.bower.json +22 -0
- data/bower_components/ember/.gitignore +5 -0
- data/bower_components/ember/Makefile +9 -0
- data/bower_components/ember/README.md +12 -0
- data/bower_components/ember/bower.json +11 -0
- data/bower_components/ember/component.json +13 -0
- data/bower_components/ember/composer.json +27 -0
- data/bower_components/ember/ember-template-compiler.js +320 -0
- data/bower_components/ember/ember.js +44267 -0
- data/bower_components/ember/ember.min.js +19 -0
- data/bower_components/ember/ember.prod.js +42649 -0
- data/bower_components/ember/package.json +11 -0
- data/bower_components/handlebars/.bower.json +16 -0
- data/bower_components/handlebars/.gitignore +2 -0
- data/bower_components/handlebars/README.md +11 -0
- data/bower_components/handlebars/bower.json +6 -0
- data/bower_components/handlebars/component.json +9 -0
- data/bower_components/handlebars/composer.json +35 -0
- data/bower_components/handlebars/handlebars-source.gemspec +21 -0
- data/bower_components/handlebars/handlebars.amd.js +2719 -0
- data/bower_components/handlebars/handlebars.amd.min.js +28 -0
- data/bower_components/handlebars/handlebars.js +2746 -0
- data/bower_components/handlebars/handlebars.js.nuspec +17 -0
- data/bower_components/handlebars/handlebars.min.js +28 -0
- data/bower_components/handlebars/handlebars.runtime.amd.js +515 -0
- data/bower_components/handlebars/handlebars.runtime.amd.min.js +27 -0
- data/bower_components/handlebars/handlebars.runtime.js +530 -0
- data/bower_components/handlebars/handlebars.runtime.min.js +27 -0
- data/bower_components/handlebars/lib/handlebars/source.rb +11 -0
- data/bower_components/jquery/.bower.json +37 -0
- data/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/bower_components/jquery/bower.json +27 -0
- data/bower_components/jquery/dist/jquery.js +9111 -0
- data/bower_components/jquery/dist/jquery.min.js +5 -0
- data/bower_components/jquery/dist/jquery.min.map +1 -0
- data/bower_components/jquery/src/ajax.js +806 -0
- data/bower_components/jquery/src/ajax/jsonp.js +89 -0
- data/bower_components/jquery/src/ajax/load.js +75 -0
- data/bower_components/jquery/src/ajax/parseJSON.js +13 -0
- data/bower_components/jquery/src/ajax/parseXML.js +28 -0
- data/bower_components/jquery/src/ajax/script.js +64 -0
- data/bower_components/jquery/src/ajax/var/nonce.js +5 -0
- data/bower_components/jquery/src/ajax/var/rquery.js +3 -0
- data/bower_components/jquery/src/ajax/xhr.js +130 -0
- data/bower_components/jquery/src/attributes.js +11 -0
- data/bower_components/jquery/src/attributes/attr.js +143 -0
- data/bower_components/jquery/src/attributes/classes.js +158 -0
- data/bower_components/jquery/src/attributes/prop.js +96 -0
- data/bower_components/jquery/src/attributes/support.js +35 -0
- data/bower_components/jquery/src/attributes/val.js +153 -0
- data/bower_components/jquery/src/callbacks.js +205 -0
- data/bower_components/jquery/src/core.js +500 -0
- data/bower_components/jquery/src/core/access.js +60 -0
- data/bower_components/jquery/src/core/init.js +123 -0
- data/bower_components/jquery/src/core/parseHTML.js +39 -0
- data/bower_components/jquery/src/core/ready.js +96 -0
- data/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
- data/bower_components/jquery/src/css.js +455 -0
- data/bower_components/jquery/src/css/addGetHookIf.js +24 -0
- data/bower_components/jquery/src/css/curCSS.js +57 -0
- data/bower_components/jquery/src/css/defaultDisplay.js +69 -0
- data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/bower_components/jquery/src/css/support.js +83 -0
- data/bower_components/jquery/src/css/swap.js +28 -0
- data/bower_components/jquery/src/css/var/cssExpand.js +3 -0
- data/bower_components/jquery/src/css/var/getStyles.js +5 -0
- data/bower_components/jquery/src/css/var/isHidden.js +13 -0
- data/bower_components/jquery/src/css/var/rmargin.js +3 -0
- data/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/bower_components/jquery/src/data.js +175 -0
- data/bower_components/jquery/src/data/Data.js +181 -0
- data/bower_components/jquery/src/data/accepts.js +20 -0
- data/bower_components/jquery/src/data/var/data_priv.js +5 -0
- data/bower_components/jquery/src/data/var/data_user.js +5 -0
- data/bower_components/jquery/src/deferred.js +149 -0
- data/bower_components/jquery/src/deprecated.js +13 -0
- data/bower_components/jquery/src/dimensions.js +50 -0
- data/bower_components/jquery/src/effects.js +642 -0
- data/bower_components/jquery/src/effects/Tween.js +114 -0
- data/bower_components/jquery/src/effects/animatedSelector.js +13 -0
- data/bower_components/jquery/src/event.js +859 -0
- data/bower_components/jquery/src/event/alias.js +39 -0
- data/bower_components/jquery/src/event/support.js +9 -0
- data/bower_components/jquery/src/exports/amd.js +18 -0
- data/bower_components/jquery/src/exports/global.js +32 -0
- data/bower_components/jquery/src/intro.js +44 -0
- data/bower_components/jquery/src/jquery.js +36 -0
- data/bower_components/jquery/src/manipulation.js +583 -0
- data/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/bower_components/jquery/src/manipulation/support.js +24 -0
- data/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/bower_components/jquery/src/offset.js +204 -0
- data/bower_components/jquery/src/outro.js +1 -0
- data/bower_components/jquery/src/queue.js +142 -0
- data/bower_components/jquery/src/queue/delay.js +22 -0
- data/bower_components/jquery/src/selector-native.js +171 -0
- data/bower_components/jquery/src/selector-sizzle.js +14 -0
- data/bower_components/jquery/src/selector.js +1 -0
- data/bower_components/jquery/src/serialize.js +111 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.js +2015 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/bower_components/jquery/src/traversing.js +200 -0
- data/bower_components/jquery/src/traversing/findFilter.js +100 -0
- data/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/bower_components/jquery/src/var/arr.js +3 -0
- data/bower_components/jquery/src/var/class2type.js +4 -0
- data/bower_components/jquery/src/var/concat.js +5 -0
- data/bower_components/jquery/src/var/hasOwn.js +5 -0
- data/bower_components/jquery/src/var/indexOf.js +5 -0
- data/bower_components/jquery/src/var/pnum.js +3 -0
- data/bower_components/jquery/src/var/push.js +5 -0
- data/bower_components/jquery/src/var/rnotwhite.js +3 -0
- data/bower_components/jquery/src/var/slice.js +5 -0
- data/bower_components/jquery/src/var/strundefined.js +3 -0
- data/bower_components/jquery/src/var/support.js +4 -0
- data/bower_components/jquery/src/var/toString.js +5 -0
- data/bower_components/jquery/src/var/trim.js +3 -0
- data/bower_components/jquery/src/wrap.js +78 -0
- data/bower_components/lodash/.bower.json +34 -0
- data/bower_components/lodash/LICENSE.txt +22 -0
- data/bower_components/lodash/bower.json +23 -0
- data/bower_components/lodash/dist/lodash.compat.js +7157 -0
- data/bower_components/lodash/dist/lodash.compat.min.js +61 -0
- data/bower_components/lodash/dist/lodash.js +6785 -0
- data/bower_components/lodash/dist/lodash.min.js +56 -0
- data/bower_components/lodash/dist/lodash.underscore.js +4979 -0
- data/bower_components/lodash/dist/lodash.underscore.min.js +39 -0
- data/bower_components/moment/.bower.json +31 -0
- data/bower_components/moment/LICENSE +22 -0
- data/bower_components/moment/bower.json +20 -0
- data/bower_components/moment/lang/ar-ma.js +56 -0
- data/bower_components/moment/lang/ar.js +56 -0
- data/bower_components/moment/lang/bg.js +86 -0
- data/bower_components/moment/lang/br.js +107 -0
- data/bower_components/moment/lang/bs.js +139 -0
- data/bower_components/moment/lang/ca.js +66 -0
- data/bower_components/moment/lang/cs.js +155 -0
- data/bower_components/moment/lang/cv.js +59 -0
- data/bower_components/moment/lang/cy.js +77 -0
- data/bower_components/moment/lang/da.js +56 -0
- data/bower_components/moment/lang/de.js +71 -0
- data/bower_components/moment/lang/el.js +79 -0
- data/bower_components/moment/lang/en-au.js +62 -0
- data/bower_components/moment/lang/en-ca.js +59 -0
- data/bower_components/moment/lang/en-gb.js +63 -0
- data/bower_components/moment/lang/eo.js +65 -0
- data/bower_components/moment/lang/es.js +75 -0
- data/bower_components/moment/lang/et.js +76 -0
- data/bower_components/moment/lang/eu.js +60 -0
- data/bower_components/moment/lang/fa.js +97 -0
- data/bower_components/moment/lang/fi.js +103 -0
- data/bower_components/moment/lang/fo.js +56 -0
- data/bower_components/moment/lang/fr-ca.js +54 -0
- data/bower_components/moment/lang/fr.js +58 -0
- data/bower_components/moment/lang/gl.js +71 -0
- data/bower_components/moment/lang/he.js +77 -0
- data/bower_components/moment/lang/hi.js +105 -0
- data/bower_components/moment/lang/hr.js +140 -0
- data/bower_components/moment/lang/hu.js +105 -0
- data/bower_components/moment/lang/hy-am.js +113 -0
- data/bower_components/moment/lang/id.js +67 -0
- data/bower_components/moment/lang/is.js +124 -0
- data/bower_components/moment/lang/it.js +59 -0
- data/bower_components/moment/lang/ja.js +58 -0
- data/bower_components/moment/lang/ka.js +108 -0
- data/bower_components/moment/lang/km.js +55 -0
- data/bower_components/moment/lang/ko.js +63 -0
- data/bower_components/moment/lang/lb.js +160 -0
- data/bower_components/moment/lang/lt.js +118 -0
- data/bower_components/moment/lang/lv.js +77 -0
- data/bower_components/moment/lang/mk.js +86 -0
- data/bower_components/moment/lang/ml.js +64 -0
- data/bower_components/moment/lang/mr.js +104 -0
- data/bower_components/moment/lang/ms-my.js +66 -0
- data/bower_components/moment/lang/nb.js +57 -0
- data/bower_components/moment/lang/ne.js +105 -0
- data/bower_components/moment/lang/nl.js +67 -0
- data/bower_components/moment/lang/nn.js +56 -0
- data/bower_components/moment/lang/pl.js +98 -0
- data/bower_components/moment/lang/pt-br.js +56 -0
- data/bower_components/moment/lang/pt.js +60 -0
- data/bower_components/moment/lang/ro.js +72 -0
- data/bower_components/moment/lang/ru.js +163 -0
- data/bower_components/moment/lang/sk.js +156 -0
- data/bower_components/moment/lang/sl.js +144 -0
- data/bower_components/moment/lang/sq.js +61 -0
- data/bower_components/moment/lang/sr-cyr.js +106 -0
- data/bower_components/moment/lang/sr.js +106 -0
- data/bower_components/moment/lang/sv.js +63 -0
- data/bower_components/moment/lang/ta.js +112 -0
- data/bower_components/moment/lang/th.js +58 -0
- data/bower_components/moment/lang/tl-ph.js +58 -0
- data/bower_components/moment/lang/tr.js +93 -0
- data/bower_components/moment/lang/tzm-la.js +55 -0
- data/bower_components/moment/lang/tzm.js +55 -0
- data/bower_components/moment/lang/uk.js +157 -0
- data/bower_components/moment/lang/uz.js +55 -0
- data/bower_components/moment/lang/vi.js +62 -0
- data/bower_components/moment/lang/zh-cn.js +108 -0
- data/bower_components/moment/lang/zh-tw.js +84 -0
- data/bower_components/moment/min/langs.js +5991 -0
- data/bower_components/moment/min/langs.min.js +3 -0
- data/bower_components/moment/min/moment-with-langs.js +7993 -0
- data/bower_components/moment/min/moment-with-langs.min.js +9 -0
- data/bower_components/moment/min/moment.min.js +6 -0
- data/bower_components/moment/moment.js +2489 -0
- data/bower_components/moment/readme.md +368 -0
- data/lib/logster.rb +9 -0
- data/lib/logster/logger.rb +31 -0
- data/lib/logster/message.rb +42 -0
- data/lib/logster/middleware/reporter.rb +13 -0
- data/lib/logster/middleware/viewer.rb +122 -0
- data/lib/logster/rails/railtie.rb +39 -0
- data/lib/logster/redis_store.rb +124 -0
- data/lib/logster/version.rb +3 -0
- data/logster.gemspec +30 -0
- data/test/logster/middleware/test_viewer.rb +34 -0
- data/test/logster/test_redis_store.rb +112 -0
- data/test/test_helper.rb +6 -0
- data/website/Gemfile +6 -0
- data/website/config.ru +2 -0
- data/website/data/data.json +1 -0
- data/website/docker_container/logster.yml +95 -0
- data/website/sample.rb +85 -0
- data/website/scripts/persist_logs.rb +13 -0
- metadata +375 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : catalan (ca)
|
3
|
+
// author : Juan G. Hurtado : https://github.com/juanghurtado
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
return moment.lang('ca', {
|
15
|
+
months : "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),
|
16
|
+
monthsShort : "gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),
|
17
|
+
weekdays : "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),
|
18
|
+
weekdaysShort : "dg._dl._dt._dc._dj._dv._ds.".split("_"),
|
19
|
+
weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "H:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY LT",
|
25
|
+
LLLL : "dddd D MMMM YYYY LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : function () {
|
29
|
+
return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
30
|
+
},
|
31
|
+
nextDay : function () {
|
32
|
+
return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
33
|
+
},
|
34
|
+
nextWeek : function () {
|
35
|
+
return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
36
|
+
},
|
37
|
+
lastDay : function () {
|
38
|
+
return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
39
|
+
},
|
40
|
+
lastWeek : function () {
|
41
|
+
return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
|
42
|
+
},
|
43
|
+
sameElse : 'L'
|
44
|
+
},
|
45
|
+
relativeTime : {
|
46
|
+
future : "en %s",
|
47
|
+
past : "fa %s",
|
48
|
+
s : "uns segons",
|
49
|
+
m : "un minut",
|
50
|
+
mm : "%d minuts",
|
51
|
+
h : "una hora",
|
52
|
+
hh : "%d hores",
|
53
|
+
d : "un dia",
|
54
|
+
dd : "%d dies",
|
55
|
+
M : "un mes",
|
56
|
+
MM : "%d mesos",
|
57
|
+
y : "un any",
|
58
|
+
yy : "%d anys"
|
59
|
+
},
|
60
|
+
ordinal : '%dº',
|
61
|
+
week : {
|
62
|
+
dow : 1, // Monday is the first day of the week.
|
63
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
64
|
+
}
|
65
|
+
});
|
66
|
+
}));
|
@@ -0,0 +1,155 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : czech (cs)
|
3
|
+
// author : petrbela : https://github.com/petrbela
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
var months = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),
|
15
|
+
monthsShort = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");
|
16
|
+
|
17
|
+
function plural(n) {
|
18
|
+
return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
|
19
|
+
}
|
20
|
+
|
21
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
22
|
+
var result = number + " ";
|
23
|
+
switch (key) {
|
24
|
+
case 's': // a few seconds / in a few seconds / a few seconds ago
|
25
|
+
return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
|
26
|
+
case 'm': // a minute / in a minute / a minute ago
|
27
|
+
return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
|
28
|
+
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
29
|
+
if (withoutSuffix || isFuture) {
|
30
|
+
return result + (plural(number) ? 'minuty' : 'minut');
|
31
|
+
} else {
|
32
|
+
return result + 'minutami';
|
33
|
+
}
|
34
|
+
break;
|
35
|
+
case 'h': // an hour / in an hour / an hour ago
|
36
|
+
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
37
|
+
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
38
|
+
if (withoutSuffix || isFuture) {
|
39
|
+
return result + (plural(number) ? 'hodiny' : 'hodin');
|
40
|
+
} else {
|
41
|
+
return result + 'hodinami';
|
42
|
+
}
|
43
|
+
break;
|
44
|
+
case 'd': // a day / in a day / a day ago
|
45
|
+
return (withoutSuffix || isFuture) ? 'den' : 'dnem';
|
46
|
+
case 'dd': // 9 days / in 9 days / 9 days ago
|
47
|
+
if (withoutSuffix || isFuture) {
|
48
|
+
return result + (plural(number) ? 'dny' : 'dní');
|
49
|
+
} else {
|
50
|
+
return result + 'dny';
|
51
|
+
}
|
52
|
+
break;
|
53
|
+
case 'M': // a month / in a month / a month ago
|
54
|
+
return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
|
55
|
+
case 'MM': // 9 months / in 9 months / 9 months ago
|
56
|
+
if (withoutSuffix || isFuture) {
|
57
|
+
return result + (plural(number) ? 'měsíce' : 'měsíců');
|
58
|
+
} else {
|
59
|
+
return result + 'měsíci';
|
60
|
+
}
|
61
|
+
break;
|
62
|
+
case 'y': // a year / in a year / a year ago
|
63
|
+
return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
|
64
|
+
case 'yy': // 9 years / in 9 years / 9 years ago
|
65
|
+
if (withoutSuffix || isFuture) {
|
66
|
+
return result + (plural(number) ? 'roky' : 'let');
|
67
|
+
} else {
|
68
|
+
return result + 'lety';
|
69
|
+
}
|
70
|
+
break;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
return moment.lang('cs', {
|
75
|
+
months : months,
|
76
|
+
monthsShort : monthsShort,
|
77
|
+
monthsParse : (function (months, monthsShort) {
|
78
|
+
var i, _monthsParse = [];
|
79
|
+
for (i = 0; i < 12; i++) {
|
80
|
+
// use custom parser to solve problem with July (červenec)
|
81
|
+
_monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
|
82
|
+
}
|
83
|
+
return _monthsParse;
|
84
|
+
}(months, monthsShort)),
|
85
|
+
weekdays : "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),
|
86
|
+
weekdaysShort : "ne_po_út_st_čt_pá_so".split("_"),
|
87
|
+
weekdaysMin : "ne_po_út_st_čt_pá_so".split("_"),
|
88
|
+
longDateFormat : {
|
89
|
+
LT: "H.mm",
|
90
|
+
L : "DD. MM. YYYY",
|
91
|
+
LL : "D. MMMM YYYY",
|
92
|
+
LLL : "D. MMMM YYYY LT",
|
93
|
+
LLLL : "dddd D. MMMM YYYY LT"
|
94
|
+
},
|
95
|
+
calendar : {
|
96
|
+
sameDay: "[dnes v] LT",
|
97
|
+
nextDay: '[zítra v] LT',
|
98
|
+
nextWeek: function () {
|
99
|
+
switch (this.day()) {
|
100
|
+
case 0:
|
101
|
+
return '[v neděli v] LT';
|
102
|
+
case 1:
|
103
|
+
case 2:
|
104
|
+
return '[v] dddd [v] LT';
|
105
|
+
case 3:
|
106
|
+
return '[ve středu v] LT';
|
107
|
+
case 4:
|
108
|
+
return '[ve čtvrtek v] LT';
|
109
|
+
case 5:
|
110
|
+
return '[v pátek v] LT';
|
111
|
+
case 6:
|
112
|
+
return '[v sobotu v] LT';
|
113
|
+
}
|
114
|
+
},
|
115
|
+
lastDay: '[včera v] LT',
|
116
|
+
lastWeek: function () {
|
117
|
+
switch (this.day()) {
|
118
|
+
case 0:
|
119
|
+
return '[minulou neděli v] LT';
|
120
|
+
case 1:
|
121
|
+
case 2:
|
122
|
+
return '[minulé] dddd [v] LT';
|
123
|
+
case 3:
|
124
|
+
return '[minulou středu v] LT';
|
125
|
+
case 4:
|
126
|
+
case 5:
|
127
|
+
return '[minulý] dddd [v] LT';
|
128
|
+
case 6:
|
129
|
+
return '[minulou sobotu v] LT';
|
130
|
+
}
|
131
|
+
},
|
132
|
+
sameElse: "L"
|
133
|
+
},
|
134
|
+
relativeTime : {
|
135
|
+
future : "za %s",
|
136
|
+
past : "před %s",
|
137
|
+
s : translate,
|
138
|
+
m : translate,
|
139
|
+
mm : translate,
|
140
|
+
h : translate,
|
141
|
+
hh : translate,
|
142
|
+
d : translate,
|
143
|
+
dd : translate,
|
144
|
+
M : translate,
|
145
|
+
MM : translate,
|
146
|
+
y : translate,
|
147
|
+
yy : translate
|
148
|
+
},
|
149
|
+
ordinal : '%d.',
|
150
|
+
week : {
|
151
|
+
dow : 1, // Monday is the first day of the week.
|
152
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
153
|
+
}
|
154
|
+
});
|
155
|
+
}));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : chuvash (cv)
|
3
|
+
// author : Anatoly Mironov : https://github.com/mirontoli
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
return moment.lang('cv', {
|
15
|
+
months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
|
16
|
+
monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
|
17
|
+
weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
|
18
|
+
weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
|
19
|
+
weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD-MM-YYYY",
|
23
|
+
LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",
|
24
|
+
LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",
|
25
|
+
LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay: '[Паян] LT [сехетре]',
|
29
|
+
nextDay: '[Ыран] LT [сехетре]',
|
30
|
+
lastDay: '[Ĕнер] LT [сехетре]',
|
31
|
+
nextWeek: '[Çитес] dddd LT [сехетре]',
|
32
|
+
lastWeek: '[Иртнĕ] dddd LT [сехетре]',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : function (output) {
|
37
|
+
var affix = /сехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран";
|
38
|
+
return output + affix;
|
39
|
+
},
|
40
|
+
past : "%s каялла",
|
41
|
+
s : "пĕр-ик çеккунт",
|
42
|
+
m : "пĕр минут",
|
43
|
+
mm : "%d минут",
|
44
|
+
h : "пĕр сехет",
|
45
|
+
hh : "%d сехет",
|
46
|
+
d : "пĕр кун",
|
47
|
+
dd : "%d кун",
|
48
|
+
M : "пĕр уйăх",
|
49
|
+
MM : "%d уйăх",
|
50
|
+
y : "пĕр çул",
|
51
|
+
yy : "%d çул"
|
52
|
+
},
|
53
|
+
ordinal : '%d-мĕш',
|
54
|
+
week : {
|
55
|
+
dow : 1, // Monday is the first day of the week.
|
56
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
57
|
+
}
|
58
|
+
});
|
59
|
+
}));
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Welsh (cy)
|
3
|
+
// author : Robert Allen
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
return moment.lang("cy", {
|
15
|
+
months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),
|
16
|
+
monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),
|
17
|
+
weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),
|
18
|
+
weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),
|
19
|
+
weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),
|
20
|
+
// time formats are the same as en-gb
|
21
|
+
longDateFormat: {
|
22
|
+
LT: "HH:mm",
|
23
|
+
L: "DD/MM/YYYY",
|
24
|
+
LL: "D MMMM YYYY",
|
25
|
+
LLL: "D MMMM YYYY LT",
|
26
|
+
LLLL: "dddd, D MMMM YYYY LT"
|
27
|
+
},
|
28
|
+
calendar: {
|
29
|
+
sameDay: '[Heddiw am] LT',
|
30
|
+
nextDay: '[Yfory am] LT',
|
31
|
+
nextWeek: 'dddd [am] LT',
|
32
|
+
lastDay: '[Ddoe am] LT',
|
33
|
+
lastWeek: 'dddd [diwethaf am] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime: {
|
37
|
+
future: "mewn %s",
|
38
|
+
past: "%s yn àl",
|
39
|
+
s: "ychydig eiliadau",
|
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
|
+
// traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
|
52
|
+
ordinal: function (number) {
|
53
|
+
var b = number,
|
54
|
+
output = '',
|
55
|
+
lookup = [
|
56
|
+
'', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
|
57
|
+
'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
|
58
|
+
];
|
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
|
+
|
70
|
+
return number + output;
|
71
|
+
},
|
72
|
+
week : {
|
73
|
+
dow : 1, // Monday is the first day of the week.
|
74
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
75
|
+
}
|
76
|
+
});
|
77
|
+
}));
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : danish (da)
|
3
|
+
// author : Ulrik Nielsen : https://github.com/mrbase
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
return moment.lang('da', {
|
15
|
+
months : "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),
|
16
|
+
monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
|
17
|
+
weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
|
18
|
+
weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"),
|
19
|
+
weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY LT",
|
25
|
+
LLLL : "dddd D. MMMM, YYYY LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[I dag kl.] LT',
|
29
|
+
nextDay : '[I morgen kl.] LT',
|
30
|
+
nextWeek : 'dddd [kl.] LT',
|
31
|
+
lastDay : '[I går kl.] LT',
|
32
|
+
lastWeek : '[sidste] dddd [kl] LT',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "om %s",
|
37
|
+
past : "%s siden",
|
38
|
+
s : "få sekunder",
|
39
|
+
m : "et minut",
|
40
|
+
mm : "%d minutter",
|
41
|
+
h : "en time",
|
42
|
+
hh : "%d timer",
|
43
|
+
d : "en dag",
|
44
|
+
dd : "%d dage",
|
45
|
+
M : "en måned",
|
46
|
+
MM : "%d måneder",
|
47
|
+
y : "et år",
|
48
|
+
yy : "%d år"
|
49
|
+
},
|
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
|
+
}));
|
@@ -0,0 +1,71 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : german (de)
|
3
|
+
// author : lluchs : https://github.com/lluchs
|
4
|
+
// author: Menelion Elensúle: https://github.com/Oire
|
5
|
+
|
6
|
+
(function (factory) {
|
7
|
+
if (typeof define === 'function' && define.amd) {
|
8
|
+
define(['moment'], factory); // AMD
|
9
|
+
} else if (typeof exports === 'object') {
|
10
|
+
module.exports = factory(require('../moment')); // Node
|
11
|
+
} else {
|
12
|
+
factory(window.moment); // Browser global
|
13
|
+
}
|
14
|
+
}(function (moment) {
|
15
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
16
|
+
var format = {
|
17
|
+
'm': ['eine Minute', 'einer Minute'],
|
18
|
+
'h': ['eine Stunde', 'einer Stunde'],
|
19
|
+
'd': ['ein Tag', 'einem Tag'],
|
20
|
+
'dd': [number + ' Tage', number + ' Tagen'],
|
21
|
+
'M': ['ein Monat', 'einem Monat'],
|
22
|
+
'MM': [number + ' Monate', number + ' Monaten'],
|
23
|
+
'y': ['ein Jahr', 'einem Jahr'],
|
24
|
+
'yy': [number + ' Jahre', number + ' Jahren']
|
25
|
+
};
|
26
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
27
|
+
}
|
28
|
+
|
29
|
+
return moment.lang('de', {
|
30
|
+
months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
31
|
+
monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
|
32
|
+
weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
33
|
+
weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
34
|
+
weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
35
|
+
longDateFormat : {
|
36
|
+
LT: "HH:mm [Uhr]",
|
37
|
+
L : "DD.MM.YYYY",
|
38
|
+
LL : "D. MMMM YYYY",
|
39
|
+
LLL : "D. MMMM YYYY LT",
|
40
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
41
|
+
},
|
42
|
+
calendar : {
|
43
|
+
sameDay: "[Heute um] LT",
|
44
|
+
sameElse: "L",
|
45
|
+
nextDay: '[Morgen um] LT',
|
46
|
+
nextWeek: 'dddd [um] LT',
|
47
|
+
lastDay: '[Gestern um] LT',
|
48
|
+
lastWeek: '[letzten] dddd [um] LT'
|
49
|
+
},
|
50
|
+
relativeTime : {
|
51
|
+
future : "in %s",
|
52
|
+
past : "vor %s",
|
53
|
+
s : "ein paar Sekunden",
|
54
|
+
m : processRelativeTime,
|
55
|
+
mm : "%d Minuten",
|
56
|
+
h : processRelativeTime,
|
57
|
+
hh : "%d Stunden",
|
58
|
+
d : processRelativeTime,
|
59
|
+
dd : processRelativeTime,
|
60
|
+
M : processRelativeTime,
|
61
|
+
MM : processRelativeTime,
|
62
|
+
y : processRelativeTime,
|
63
|
+
yy : processRelativeTime
|
64
|
+
},
|
65
|
+
ordinal : '%d.',
|
66
|
+
week : {
|
67
|
+
dow : 1, // Monday is the first day of the week.
|
68
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
69
|
+
}
|
70
|
+
});
|
71
|
+
}));
|