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,67 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Bahasa Indonesia (id)
|
3
|
+
// author : Mohammad Satrio Utomo : https://github.com/tyok
|
4
|
+
// reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
|
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('id', {
|
16
|
+
months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
|
17
|
+
monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),
|
18
|
+
weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
|
19
|
+
weekdaysShort : "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
|
20
|
+
weekdaysMin : "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),
|
21
|
+
longDateFormat : {
|
22
|
+
LT : "HH.mm",
|
23
|
+
L : "DD/MM/YYYY",
|
24
|
+
LL : "D MMMM YYYY",
|
25
|
+
LLL : "D MMMM YYYY [pukul] LT",
|
26
|
+
LLLL : "dddd, D MMMM YYYY [pukul] LT"
|
27
|
+
},
|
28
|
+
meridiem : function (hours, minutes, isLower) {
|
29
|
+
if (hours < 11) {
|
30
|
+
return 'pagi';
|
31
|
+
} else if (hours < 15) {
|
32
|
+
return 'siang';
|
33
|
+
} else if (hours < 19) {
|
34
|
+
return 'sore';
|
35
|
+
} else {
|
36
|
+
return 'malam';
|
37
|
+
}
|
38
|
+
},
|
39
|
+
calendar : {
|
40
|
+
sameDay : '[Hari ini pukul] LT',
|
41
|
+
nextDay : '[Besok pukul] LT',
|
42
|
+
nextWeek : 'dddd [pukul] LT',
|
43
|
+
lastDay : '[Kemarin pukul] LT',
|
44
|
+
lastWeek : 'dddd [lalu pukul] LT',
|
45
|
+
sameElse : 'L'
|
46
|
+
},
|
47
|
+
relativeTime : {
|
48
|
+
future : "dalam %s",
|
49
|
+
past : "%s yang lalu",
|
50
|
+
s : "beberapa detik",
|
51
|
+
m : "semenit",
|
52
|
+
mm : "%d menit",
|
53
|
+
h : "sejam",
|
54
|
+
hh : "%d jam",
|
55
|
+
d : "sehari",
|
56
|
+
dd : "%d hari",
|
57
|
+
M : "sebulan",
|
58
|
+
MM : "%d bulan",
|
59
|
+
y : "setahun",
|
60
|
+
yy : "%d tahun"
|
61
|
+
},
|
62
|
+
week : {
|
63
|
+
dow : 1, // Monday is the first day of the week.
|
64
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
65
|
+
}
|
66
|
+
});
|
67
|
+
}));
|
@@ -0,0 +1,124 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : icelandic (is)
|
3
|
+
// author : Hinrik Örn Sigurðsson : https://github.com/hinrik
|
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 plural(n) {
|
15
|
+
if (n % 100 === 11) {
|
16
|
+
return true;
|
17
|
+
} else if (n % 10 === 1) {
|
18
|
+
return false;
|
19
|
+
}
|
20
|
+
return true;
|
21
|
+
}
|
22
|
+
|
23
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
24
|
+
var result = number + " ";
|
25
|
+
switch (key) {
|
26
|
+
case 's':
|
27
|
+
return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
|
28
|
+
case 'm':
|
29
|
+
return withoutSuffix ? 'mínúta' : 'mínútu';
|
30
|
+
case 'mm':
|
31
|
+
if (plural(number)) {
|
32
|
+
return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
|
33
|
+
} else if (withoutSuffix) {
|
34
|
+
return result + 'mínúta';
|
35
|
+
}
|
36
|
+
return result + 'mínútu';
|
37
|
+
case 'hh':
|
38
|
+
if (plural(number)) {
|
39
|
+
return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
|
40
|
+
}
|
41
|
+
return result + 'klukkustund';
|
42
|
+
case 'd':
|
43
|
+
if (withoutSuffix) {
|
44
|
+
return 'dagur';
|
45
|
+
}
|
46
|
+
return isFuture ? 'dag' : 'degi';
|
47
|
+
case 'dd':
|
48
|
+
if (plural(number)) {
|
49
|
+
if (withoutSuffix) {
|
50
|
+
return result + 'dagar';
|
51
|
+
}
|
52
|
+
return result + (isFuture ? 'daga' : 'dögum');
|
53
|
+
} else if (withoutSuffix) {
|
54
|
+
return result + 'dagur';
|
55
|
+
}
|
56
|
+
return result + (isFuture ? 'dag' : 'degi');
|
57
|
+
case 'M':
|
58
|
+
if (withoutSuffix) {
|
59
|
+
return 'mánuður';
|
60
|
+
}
|
61
|
+
return isFuture ? 'mánuð' : 'mánuði';
|
62
|
+
case 'MM':
|
63
|
+
if (plural(number)) {
|
64
|
+
if (withoutSuffix) {
|
65
|
+
return result + 'mánuðir';
|
66
|
+
}
|
67
|
+
return result + (isFuture ? 'mánuði' : 'mánuðum');
|
68
|
+
} else if (withoutSuffix) {
|
69
|
+
return result + 'mánuður';
|
70
|
+
}
|
71
|
+
return result + (isFuture ? 'mánuð' : 'mánuði');
|
72
|
+
case 'y':
|
73
|
+
return withoutSuffix || isFuture ? 'ár' : 'ári';
|
74
|
+
case 'yy':
|
75
|
+
if (plural(number)) {
|
76
|
+
return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
|
77
|
+
}
|
78
|
+
return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
return moment.lang('is', {
|
83
|
+
months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),
|
84
|
+
monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
|
85
|
+
weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
|
86
|
+
weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"),
|
87
|
+
weekdaysMin : "Su_Má_Þr_Mi_Fi_Fö_La".split("_"),
|
88
|
+
longDateFormat : {
|
89
|
+
LT : "H:mm",
|
90
|
+
L : "DD/MM/YYYY",
|
91
|
+
LL : "D. MMMM YYYY",
|
92
|
+
LLL : "D. MMMM YYYY [kl.] LT",
|
93
|
+
LLLL : "dddd, D. MMMM YYYY [kl.] LT"
|
94
|
+
},
|
95
|
+
calendar : {
|
96
|
+
sameDay : '[í dag kl.] LT',
|
97
|
+
nextDay : '[á morgun kl.] LT',
|
98
|
+
nextWeek : 'dddd [kl.] LT',
|
99
|
+
lastDay : '[í gær kl.] LT',
|
100
|
+
lastWeek : '[síðasta] dddd [kl.] LT',
|
101
|
+
sameElse : 'L'
|
102
|
+
},
|
103
|
+
relativeTime : {
|
104
|
+
future : "eftir %s",
|
105
|
+
past : "fyrir %s síðan",
|
106
|
+
s : translate,
|
107
|
+
m : translate,
|
108
|
+
mm : translate,
|
109
|
+
h : "klukkustund",
|
110
|
+
hh : translate,
|
111
|
+
d : translate,
|
112
|
+
dd : translate,
|
113
|
+
M : translate,
|
114
|
+
MM : translate,
|
115
|
+
y : translate,
|
116
|
+
yy : translate
|
117
|
+
},
|
118
|
+
ordinal : '%d.',
|
119
|
+
week : {
|
120
|
+
dow : 1, // Monday is the first day of the week.
|
121
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
122
|
+
}
|
123
|
+
});
|
124
|
+
}));
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : italian (it)
|
3
|
+
// author : Lorenzo : https://github.com/aliem
|
4
|
+
// author: Mattia Larentis: https://github.com/nostalgiaz
|
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('it', {
|
16
|
+
months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settembre_Ottobre_Novembre_Dicembre".split("_"),
|
17
|
+
monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
|
18
|
+
weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
|
19
|
+
weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
|
20
|
+
weekdaysMin : "D_L_Ma_Me_G_V_S".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: '[Oggi alle] LT',
|
30
|
+
nextDay: '[Domani alle] LT',
|
31
|
+
nextWeek: 'dddd [alle] LT',
|
32
|
+
lastDay: '[Ieri alle] LT',
|
33
|
+
lastWeek: '[lo scorso] dddd [alle] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : function (s) {
|
38
|
+
return ((/^[0-9].+$/).test(s) ? "tra" : "in") + " " + s;
|
39
|
+
},
|
40
|
+
past : "%s fa",
|
41
|
+
s : "alcuni secondi",
|
42
|
+
m : "un minuto",
|
43
|
+
mm : "%d minuti",
|
44
|
+
h : "un'ora",
|
45
|
+
hh : "%d ore",
|
46
|
+
d : "un giorno",
|
47
|
+
dd : "%d giorni",
|
48
|
+
M : "un mese",
|
49
|
+
MM : "%d mesi",
|
50
|
+
y : "un anno",
|
51
|
+
yy : "%d anni"
|
52
|
+
},
|
53
|
+
ordinal: '%dº',
|
54
|
+
week : {
|
55
|
+
dow : 1, // Monday is the first day of the week.
|
56
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
57
|
+
}
|
58
|
+
});
|
59
|
+
}));
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : japanese (ja)
|
3
|
+
// author : LI Long : https://github.com/baryon
|
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('ja', {
|
15
|
+
months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
16
|
+
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
17
|
+
weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
|
18
|
+
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
|
19
|
+
weekdaysMin : "日_月_火_水_木_金_土".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "Ah時m分",
|
22
|
+
L : "YYYY/MM/DD",
|
23
|
+
LL : "YYYY年M月D日",
|
24
|
+
LLL : "YYYY年M月D日LT",
|
25
|
+
LLLL : "YYYY年M月D日LT dddd"
|
26
|
+
},
|
27
|
+
meridiem : function (hour, minute, isLower) {
|
28
|
+
if (hour < 12) {
|
29
|
+
return "午前";
|
30
|
+
} else {
|
31
|
+
return "午後";
|
32
|
+
}
|
33
|
+
},
|
34
|
+
calendar : {
|
35
|
+
sameDay : '[今日] LT',
|
36
|
+
nextDay : '[明日] LT',
|
37
|
+
nextWeek : '[来週]dddd LT',
|
38
|
+
lastDay : '[昨日] LT',
|
39
|
+
lastWeek : '[前週]dddd LT',
|
40
|
+
sameElse : 'L'
|
41
|
+
},
|
42
|
+
relativeTime : {
|
43
|
+
future : "%s後",
|
44
|
+
past : "%s前",
|
45
|
+
s : "数秒",
|
46
|
+
m : "1分",
|
47
|
+
mm : "%d分",
|
48
|
+
h : "1時間",
|
49
|
+
hh : "%d時間",
|
50
|
+
d : "1日",
|
51
|
+
dd : "%d日",
|
52
|
+
M : "1ヶ月",
|
53
|
+
MM : "%dヶ月",
|
54
|
+
y : "1年",
|
55
|
+
yy : "%d年"
|
56
|
+
}
|
57
|
+
});
|
58
|
+
}));
|
@@ -0,0 +1,108 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Georgian (ka)
|
3
|
+
// author : Irakli Janiashvili : https://github.com/irakli-janiashvili
|
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
|
+
|
15
|
+
function monthsCaseReplace(m, format) {
|
16
|
+
var months = {
|
17
|
+
'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
|
18
|
+
'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
|
19
|
+
},
|
20
|
+
|
21
|
+
nounCase = (/D[oD] *MMMM?/).test(format) ?
|
22
|
+
'accusative' :
|
23
|
+
'nominative';
|
24
|
+
|
25
|
+
return months[nounCase][m.month()];
|
26
|
+
}
|
27
|
+
|
28
|
+
function weekdaysCaseReplace(m, format) {
|
29
|
+
var weekdays = {
|
30
|
+
'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
|
31
|
+
'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_')
|
32
|
+
},
|
33
|
+
|
34
|
+
nounCase = (/(წინა|შემდეგ)/).test(format) ?
|
35
|
+
'accusative' :
|
36
|
+
'nominative';
|
37
|
+
|
38
|
+
return weekdays[nounCase][m.day()];
|
39
|
+
}
|
40
|
+
|
41
|
+
return moment.lang('ka', {
|
42
|
+
months : monthsCaseReplace,
|
43
|
+
monthsShort : "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),
|
44
|
+
weekdays : weekdaysCaseReplace,
|
45
|
+
weekdaysShort : "კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),
|
46
|
+
weekdaysMin : "კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),
|
47
|
+
longDateFormat : {
|
48
|
+
LT : "h:mm A",
|
49
|
+
L : "DD/MM/YYYY",
|
50
|
+
LL : "D MMMM YYYY",
|
51
|
+
LLL : "D MMMM YYYY LT",
|
52
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
53
|
+
},
|
54
|
+
calendar : {
|
55
|
+
sameDay : '[დღეს] LT[-ზე]',
|
56
|
+
nextDay : '[ხვალ] LT[-ზე]',
|
57
|
+
lastDay : '[გუშინ] LT[-ზე]',
|
58
|
+
nextWeek : '[შემდეგ] dddd LT[-ზე]',
|
59
|
+
lastWeek : '[წინა] dddd LT-ზე',
|
60
|
+
sameElse : 'L'
|
61
|
+
},
|
62
|
+
relativeTime : {
|
63
|
+
future : function (s) {
|
64
|
+
return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
|
65
|
+
s.replace(/ი$/, "ში") :
|
66
|
+
s + "ში";
|
67
|
+
},
|
68
|
+
past : function (s) {
|
69
|
+
if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
|
70
|
+
return s.replace(/(ი|ე)$/, "ის წინ");
|
71
|
+
}
|
72
|
+
if ((/წელი/).test(s)) {
|
73
|
+
return s.replace(/წელი$/, "წლის წინ");
|
74
|
+
}
|
75
|
+
},
|
76
|
+
s : "რამდენიმე წამი",
|
77
|
+
m : "წუთი",
|
78
|
+
mm : "%d წუთი",
|
79
|
+
h : "საათი",
|
80
|
+
hh : "%d საათი",
|
81
|
+
d : "დღე",
|
82
|
+
dd : "%d დღე",
|
83
|
+
M : "თვე",
|
84
|
+
MM : "%d თვე",
|
85
|
+
y : "წელი",
|
86
|
+
yy : "%d წელი"
|
87
|
+
},
|
88
|
+
ordinal : function (number) {
|
89
|
+
if (number === 0) {
|
90
|
+
return number;
|
91
|
+
}
|
92
|
+
|
93
|
+
if (number === 1) {
|
94
|
+
return number + "-ლი";
|
95
|
+
}
|
96
|
+
|
97
|
+
if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
|
98
|
+
return "მე-" + number;
|
99
|
+
}
|
100
|
+
|
101
|
+
return number + "-ე";
|
102
|
+
},
|
103
|
+
week : {
|
104
|
+
dow : 1,
|
105
|
+
doy : 7
|
106
|
+
}
|
107
|
+
});
|
108
|
+
}));
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : khmer (km)
|
3
|
+
// author : Kruy Vanna : https://github.com/kruyvanna
|
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('km', {
|
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: "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: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime: {
|
36
|
+
future: "%sទៀត",
|
37
|
+
past: "%sមុន",
|
38
|
+
s: "ប៉ុន្មានវិនាទី",
|
39
|
+
m: "មួយនាទី",
|
40
|
+
mm: "%d នាទី",
|
41
|
+
h: "មួយម៉ោង",
|
42
|
+
hh: "%d ម៉ោង",
|
43
|
+
d: "មួយថ្ងៃ",
|
44
|
+
dd: "%d ថ្ងៃ",
|
45
|
+
M: "មួយខែ",
|
46
|
+
MM: "%d ខែ",
|
47
|
+
y: "មួយឆ្នាំ",
|
48
|
+
yy: "%d ឆ្នាំ"
|
49
|
+
},
|
50
|
+
week: {
|
51
|
+
dow: 1, // Monday is the first day of the week.
|
52
|
+
doy: 4 // The week that contains Jan 4th is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}));
|