ember-rails-i18n 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/LICENSE.txt +339 -0
- data/README.md +64 -0
- data/Rakefile +1 -0
- data/ember-rails-i18n.gemspec +26 -0
- data/lib/ember-rails-i18n.rb +15 -0
- data/lib/ember-rails-i18n/helper.rb +29 -0
- data/lib/ember-rails-i18n/version.rb +3 -0
- data/lib/javascripts/moment.js +2489 -0
- data/lib/javascripts/moment_locale/ar-ma.js +56 -0
- data/lib/javascripts/moment_locale/ar.js +56 -0
- data/lib/javascripts/moment_locale/bg.js +86 -0
- data/lib/javascripts/moment_locale/br.js +107 -0
- data/lib/javascripts/moment_locale/bs.js +139 -0
- data/lib/javascripts/moment_locale/ca.js +66 -0
- data/lib/javascripts/moment_locale/cs.js +155 -0
- data/lib/javascripts/moment_locale/cv.js +59 -0
- data/lib/javascripts/moment_locale/cy.js +77 -0
- data/lib/javascripts/moment_locale/da.js +56 -0
- data/lib/javascripts/moment_locale/de.js +71 -0
- data/lib/javascripts/moment_locale/el.js +79 -0
- data/lib/javascripts/moment_locale/en-au.js +62 -0
- data/lib/javascripts/moment_locale/en-ca.js +59 -0
- data/lib/javascripts/moment_locale/en-gb.js +63 -0
- data/lib/javascripts/moment_locale/eo.js +65 -0
- data/lib/javascripts/moment_locale/es.js +75 -0
- data/lib/javascripts/moment_locale/et.js +76 -0
- data/lib/javascripts/moment_locale/eu.js +60 -0
- data/lib/javascripts/moment_locale/fa.js +97 -0
- data/lib/javascripts/moment_locale/fi.js +103 -0
- data/lib/javascripts/moment_locale/fo.js +56 -0
- data/lib/javascripts/moment_locale/fr-ca.js +54 -0
- data/lib/javascripts/moment_locale/fr.js +58 -0
- data/lib/javascripts/moment_locale/gl.js +71 -0
- data/lib/javascripts/moment_locale/he.js +77 -0
- data/lib/javascripts/moment_locale/hi.js +105 -0
- data/lib/javascripts/moment_locale/hr.js +140 -0
- data/lib/javascripts/moment_locale/hu.js +105 -0
- data/lib/javascripts/moment_locale/hy-am.js +113 -0
- data/lib/javascripts/moment_locale/id.js +67 -0
- data/lib/javascripts/moment_locale/is.js +124 -0
- data/lib/javascripts/moment_locale/it.js +59 -0
- data/lib/javascripts/moment_locale/ja.js +58 -0
- data/lib/javascripts/moment_locale/ka.js +108 -0
- data/lib/javascripts/moment_locale/km.js +55 -0
- data/lib/javascripts/moment_locale/ko.js +63 -0
- data/lib/javascripts/moment_locale/lb.js +160 -0
- data/lib/javascripts/moment_locale/lt.js +118 -0
- data/lib/javascripts/moment_locale/lv.js +77 -0
- data/lib/javascripts/moment_locale/mk.js +86 -0
- data/lib/javascripts/moment_locale/ml.js +64 -0
- data/lib/javascripts/moment_locale/mr.js +104 -0
- data/lib/javascripts/moment_locale/ms-my.js +66 -0
- data/lib/javascripts/moment_locale/nb.js +57 -0
- data/lib/javascripts/moment_locale/ne.js +105 -0
- data/lib/javascripts/moment_locale/nl.js +67 -0
- data/lib/javascripts/moment_locale/nn.js +56 -0
- data/lib/javascripts/moment_locale/pl.js +98 -0
- data/lib/javascripts/moment_locale/pt-br.js +56 -0
- data/lib/javascripts/moment_locale/pt.js +60 -0
- data/lib/javascripts/moment_locale/ro.js +72 -0
- data/lib/javascripts/moment_locale/ru.js +163 -0
- data/lib/javascripts/moment_locale/sk.js +156 -0
- data/lib/javascripts/moment_locale/sl.js +144 -0
- data/lib/javascripts/moment_locale/sq.js +61 -0
- data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
- data/lib/javascripts/moment_locale/sr.js +106 -0
- data/lib/javascripts/moment_locale/sv.js +63 -0
- data/lib/javascripts/moment_locale/ta.js +112 -0
- data/lib/javascripts/moment_locale/th.js +58 -0
- data/lib/javascripts/moment_locale/tl-ph.js +58 -0
- data/lib/javascripts/moment_locale/tr.js +93 -0
- data/lib/javascripts/moment_locale/tzm-la.js +55 -0
- data/lib/javascripts/moment_locale/tzm.js +55 -0
- data/lib/javascripts/moment_locale/uk.js +157 -0
- data/lib/javascripts/moment_locale/uz.js +55 -0
- data/lib/javascripts/moment_locale/vi.js +62 -0
- data/lib/javascripts/moment_locale/zh-cn.js +108 -0
- data/lib/javascripts/moment_locale/zh-tw.js +84 -0
- data/vendor/assets/javascripts/locales/i18n.js +598 -0
- data/vendor/assets/javascripts/locales/test.js.erb +3 -0
- metadata +182 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Moroccan Arabic (ar-ma)
|
3
|
+
// author : ElFadili Yassine : https://github.com/ElFadiliY
|
4
|
+
// author : Abdel Said : https://github.com/abdelsaid
|
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
|
+
return moment.lang('ar-ma', {
|
16
|
+
months : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
|
17
|
+
monthsShort : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
|
18
|
+
weekdays : "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
19
|
+
weekdaysShort : "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
|
20
|
+
weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"),
|
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: "[اليوم على الساعة] LT",
|
30
|
+
nextDay: '[غدا على الساعة] LT',
|
31
|
+
nextWeek: 'dddd [على الساعة] LT',
|
32
|
+
lastDay: '[أمس على الساعة] LT',
|
33
|
+
lastWeek: 'dddd [على الساعة] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : "في %s",
|
38
|
+
past : "منذ %s",
|
39
|
+
s : "ثوان",
|
40
|
+
m : "دقيقة",
|
41
|
+
mm : "%d دقائق",
|
42
|
+
h : "ساعة",
|
43
|
+
hh : "%d ساعات",
|
44
|
+
d : "يوم",
|
45
|
+
dd : "%d أيام",
|
46
|
+
M : "شهر",
|
47
|
+
MM : "%d أشهر",
|
48
|
+
y : "سنة",
|
49
|
+
yy : "%d سنوات"
|
50
|
+
},
|
51
|
+
week : {
|
52
|
+
dow : 6, // Saturday is the first day of the week.
|
53
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
54
|
+
}
|
55
|
+
});
|
56
|
+
}));
|
@@ -0,0 +1,56 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Arabic (ar)
|
3
|
+
// author : Abdel Said : https://github.com/abdelsaid
|
4
|
+
// changes in months, weekdays : Ahmed Elkhatib
|
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
|
+
return moment.lang('ar', {
|
16
|
+
months : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
|
17
|
+
monthsShort : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
|
18
|
+
weekdays : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
19
|
+
weekdaysShort : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
20
|
+
weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"),
|
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: "[اليوم على الساعة] LT",
|
30
|
+
nextDay: '[غدا على الساعة] LT',
|
31
|
+
nextWeek: 'dddd [على الساعة] LT',
|
32
|
+
lastDay: '[أمس على الساعة] LT',
|
33
|
+
lastWeek: 'dddd [على الساعة] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : "في %s",
|
38
|
+
past : "منذ %s",
|
39
|
+
s : "ثوان",
|
40
|
+
m : "دقيقة",
|
41
|
+
mm : "%d دقائق",
|
42
|
+
h : "ساعة",
|
43
|
+
hh : "%d ساعات",
|
44
|
+
d : "يوم",
|
45
|
+
dd : "%d أيام",
|
46
|
+
M : "شهر",
|
47
|
+
MM : "%d أشهر",
|
48
|
+
y : "سنة",
|
49
|
+
yy : "%d سنوات"
|
50
|
+
},
|
51
|
+
week : {
|
52
|
+
dow : 6, // Saturday is the first day of the week.
|
53
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
54
|
+
}
|
55
|
+
});
|
56
|
+
}));
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : bulgarian (bg)
|
3
|
+
// author : Krasen Borisov : https://github.com/kraz
|
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('bg', {
|
15
|
+
months : "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),
|
16
|
+
monthsShort : "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),
|
17
|
+
weekdays : "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),
|
18
|
+
weekdaysShort : "нед_пон_вто_сря_чет_пет_съб".split("_"),
|
19
|
+
weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "H:mm",
|
22
|
+
L : "D.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 : '[Днес в] LT',
|
29
|
+
nextDay : '[Утре в] LT',
|
30
|
+
nextWeek : 'dddd [в] LT',
|
31
|
+
lastDay : '[Вчера в] LT',
|
32
|
+
lastWeek : function () {
|
33
|
+
switch (this.day()) {
|
34
|
+
case 0:
|
35
|
+
case 3:
|
36
|
+
case 6:
|
37
|
+
return '[В изминалата] dddd [в] LT';
|
38
|
+
case 1:
|
39
|
+
case 2:
|
40
|
+
case 4:
|
41
|
+
case 5:
|
42
|
+
return '[В изминалия] dddd [в] LT';
|
43
|
+
}
|
44
|
+
},
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : "след %s",
|
49
|
+
past : "преди %s",
|
50
|
+
s : "няколко секунди",
|
51
|
+
m : "минута",
|
52
|
+
mm : "%d минути",
|
53
|
+
h : "час",
|
54
|
+
hh : "%d часа",
|
55
|
+
d : "ден",
|
56
|
+
dd : "%d дни",
|
57
|
+
M : "месец",
|
58
|
+
MM : "%d месеца",
|
59
|
+
y : "година",
|
60
|
+
yy : "%d години"
|
61
|
+
},
|
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 1st is the first week of the year.
|
84
|
+
}
|
85
|
+
});
|
86
|
+
}));
|
@@ -0,0 +1,107 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : breton (br)
|
3
|
+
// author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
|
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
|
+
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
15
|
+
var format = {
|
16
|
+
'mm': "munutenn",
|
17
|
+
'MM': "miz",
|
18
|
+
'dd': "devezh"
|
19
|
+
};
|
20
|
+
return number + ' ' + mutation(format[key], number);
|
21
|
+
}
|
22
|
+
|
23
|
+
function specialMutationForYears(number) {
|
24
|
+
switch (lastNumber(number)) {
|
25
|
+
case 1:
|
26
|
+
case 3:
|
27
|
+
case 4:
|
28
|
+
case 5:
|
29
|
+
case 9:
|
30
|
+
return number + ' bloaz';
|
31
|
+
default:
|
32
|
+
return number + ' vloaz';
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
function lastNumber(number) {
|
37
|
+
if (number > 9) {
|
38
|
+
return lastNumber(number % 10);
|
39
|
+
}
|
40
|
+
return number;
|
41
|
+
}
|
42
|
+
|
43
|
+
function mutation(text, number) {
|
44
|
+
if (number === 2) {
|
45
|
+
return softMutation(text);
|
46
|
+
}
|
47
|
+
return text;
|
48
|
+
}
|
49
|
+
|
50
|
+
function softMutation(text) {
|
51
|
+
var mutationTable = {
|
52
|
+
'm': 'v',
|
53
|
+
'b': 'v',
|
54
|
+
'd': 'z'
|
55
|
+
};
|
56
|
+
if (mutationTable[text.charAt(0)] === undefined) {
|
57
|
+
return text;
|
58
|
+
}
|
59
|
+
return mutationTable[text.charAt(0)] + text.substring(1);
|
60
|
+
}
|
61
|
+
|
62
|
+
return moment.lang('br', {
|
63
|
+
months : "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),
|
64
|
+
monthsShort : "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),
|
65
|
+
weekdays : "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),
|
66
|
+
weekdaysShort : "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),
|
67
|
+
weekdaysMin : "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),
|
68
|
+
longDateFormat : {
|
69
|
+
LT : "h[e]mm A",
|
70
|
+
L : "DD/MM/YYYY",
|
71
|
+
LL : "D [a viz] MMMM YYYY",
|
72
|
+
LLL : "D [a viz] MMMM YYYY LT",
|
73
|
+
LLLL : "dddd, D [a viz] MMMM YYYY LT"
|
74
|
+
},
|
75
|
+
calendar : {
|
76
|
+
sameDay : '[Hiziv da] LT',
|
77
|
+
nextDay : '[Warc\'hoazh da] LT',
|
78
|
+
nextWeek : 'dddd [da] LT',
|
79
|
+
lastDay : '[Dec\'h da] LT',
|
80
|
+
lastWeek : 'dddd [paset da] LT',
|
81
|
+
sameElse : 'L'
|
82
|
+
},
|
83
|
+
relativeTime : {
|
84
|
+
future : "a-benn %s",
|
85
|
+
past : "%s 'zo",
|
86
|
+
s : "un nebeud segondennoù",
|
87
|
+
m : "ur vunutenn",
|
88
|
+
mm : relativeTimeWithMutation,
|
89
|
+
h : "un eur",
|
90
|
+
hh : "%d eur",
|
91
|
+
d : "un devezh",
|
92
|
+
dd : relativeTimeWithMutation,
|
93
|
+
M : "ur miz",
|
94
|
+
MM : relativeTimeWithMutation,
|
95
|
+
y : "ur bloaz",
|
96
|
+
yy : specialMutationForYears
|
97
|
+
},
|
98
|
+
ordinal : function (number) {
|
99
|
+
var output = (number === 1) ? 'añ' : 'vet';
|
100
|
+
return number + output;
|
101
|
+
},
|
102
|
+
week : {
|
103
|
+
dow : 1, // Monday is the first day of the week.
|
104
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
105
|
+
}
|
106
|
+
});
|
107
|
+
}));
|
@@ -0,0 +1,139 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : bosnian (bs)
|
3
|
+
// author : Nedim Cholich : https://github.com/frontyard
|
4
|
+
// based on (hr) translation by Bojan Marković
|
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
|
+
|
16
|
+
function translate(number, withoutSuffix, key) {
|
17
|
+
var result = number + " ";
|
18
|
+
switch (key) {
|
19
|
+
case 'm':
|
20
|
+
return withoutSuffix ? 'jedna minuta' : 'jedne minute';
|
21
|
+
case 'mm':
|
22
|
+
if (number === 1) {
|
23
|
+
result += 'minuta';
|
24
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
25
|
+
result += 'minute';
|
26
|
+
} else {
|
27
|
+
result += 'minuta';
|
28
|
+
}
|
29
|
+
return result;
|
30
|
+
case 'h':
|
31
|
+
return withoutSuffix ? 'jedan sat' : 'jednog sata';
|
32
|
+
case 'hh':
|
33
|
+
if (number === 1) {
|
34
|
+
result += 'sat';
|
35
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
36
|
+
result += 'sata';
|
37
|
+
} else {
|
38
|
+
result += 'sati';
|
39
|
+
}
|
40
|
+
return result;
|
41
|
+
case 'dd':
|
42
|
+
if (number === 1) {
|
43
|
+
result += 'dan';
|
44
|
+
} else {
|
45
|
+
result += 'dana';
|
46
|
+
}
|
47
|
+
return result;
|
48
|
+
case 'MM':
|
49
|
+
if (number === 1) {
|
50
|
+
result += 'mjesec';
|
51
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
52
|
+
result += 'mjeseca';
|
53
|
+
} else {
|
54
|
+
result += 'mjeseci';
|
55
|
+
}
|
56
|
+
return result;
|
57
|
+
case 'yy':
|
58
|
+
if (number === 1) {
|
59
|
+
result += 'godina';
|
60
|
+
} else if (number === 2 || number === 3 || number === 4) {
|
61
|
+
result += 'godine';
|
62
|
+
} else {
|
63
|
+
result += 'godina';
|
64
|
+
}
|
65
|
+
return result;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
return moment.lang('bs', {
|
70
|
+
months : "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"),
|
71
|
+
monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),
|
72
|
+
weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
|
73
|
+
weekdaysShort : "ned._pon._uto._sri._čet._pet._sub.".split("_"),
|
74
|
+
weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"),
|
75
|
+
longDateFormat : {
|
76
|
+
LT : "H:mm",
|
77
|
+
L : "DD. MM. YYYY",
|
78
|
+
LL : "D. MMMM YYYY",
|
79
|
+
LLL : "D. MMMM YYYY LT",
|
80
|
+
LLLL : "dddd, D. MMMM YYYY LT"
|
81
|
+
},
|
82
|
+
calendar : {
|
83
|
+
sameDay : '[danas u] LT',
|
84
|
+
nextDay : '[sutra u] LT',
|
85
|
+
|
86
|
+
nextWeek : function () {
|
87
|
+
switch (this.day()) {
|
88
|
+
case 0:
|
89
|
+
return '[u] [nedjelju] [u] LT';
|
90
|
+
case 3:
|
91
|
+
return '[u] [srijedu] [u] LT';
|
92
|
+
case 6:
|
93
|
+
return '[u] [subotu] [u] LT';
|
94
|
+
case 1:
|
95
|
+
case 2:
|
96
|
+
case 4:
|
97
|
+
case 5:
|
98
|
+
return '[u] dddd [u] LT';
|
99
|
+
}
|
100
|
+
},
|
101
|
+
lastDay : '[jučer u] LT',
|
102
|
+
lastWeek : function () {
|
103
|
+
switch (this.day()) {
|
104
|
+
case 0:
|
105
|
+
case 3:
|
106
|
+
return '[prošlu] dddd [u] LT';
|
107
|
+
case 6:
|
108
|
+
return '[prošle] [subote] [u] LT';
|
109
|
+
case 1:
|
110
|
+
case 2:
|
111
|
+
case 4:
|
112
|
+
case 5:
|
113
|
+
return '[prošli] dddd [u] LT';
|
114
|
+
}
|
115
|
+
},
|
116
|
+
sameElse : 'L'
|
117
|
+
},
|
118
|
+
relativeTime : {
|
119
|
+
future : "za %s",
|
120
|
+
past : "prije %s",
|
121
|
+
s : "par sekundi",
|
122
|
+
m : translate,
|
123
|
+
mm : translate,
|
124
|
+
h : translate,
|
125
|
+
hh : translate,
|
126
|
+
d : "dan",
|
127
|
+
dd : translate,
|
128
|
+
M : "mjesec",
|
129
|
+
MM : translate,
|
130
|
+
y : "godinu",
|
131
|
+
yy : translate
|
132
|
+
},
|
133
|
+
ordinal : '%d.',
|
134
|
+
week : {
|
135
|
+
dow : 1, // Monday is the first day of the week.
|
136
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
137
|
+
}
|
138
|
+
});
|
139
|
+
}));
|
@@ -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
|
+
}));
|