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,64 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : malayalam (ml)
|
3
|
+
// author : Floyd Pink : https://github.com/floydpink
|
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('ml', {
|
15
|
+
months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split("_"),
|
16
|
+
monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split("_"),
|
17
|
+
weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split("_"),
|
18
|
+
weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split("_"),
|
19
|
+
weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "A 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 : '[ഇന്ന്] 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
|
+
meridiem : function (hour, minute, isLower) {
|
51
|
+
if (hour < 4) {
|
52
|
+
return "രാത്രി";
|
53
|
+
} else if (hour < 12) {
|
54
|
+
return "രാവിലെ";
|
55
|
+
} else if (hour < 17) {
|
56
|
+
return "ഉച്ച കഴിഞ്ഞ്";
|
57
|
+
} else if (hour < 20) {
|
58
|
+
return "വൈകുന്നേരം";
|
59
|
+
} else {
|
60
|
+
return "രാത്രി";
|
61
|
+
}
|
62
|
+
}
|
63
|
+
});
|
64
|
+
}));
|
@@ -0,0 +1,104 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Marathi (mr)
|
3
|
+
// author : Harshad Kale : https://github.com/kalehv
|
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 symbolMap = {
|
15
|
+
'1': '१',
|
16
|
+
'2': '२',
|
17
|
+
'3': '३',
|
18
|
+
'4': '४',
|
19
|
+
'5': '५',
|
20
|
+
'6': '६',
|
21
|
+
'7': '७',
|
22
|
+
'8': '८',
|
23
|
+
'9': '९',
|
24
|
+
'0': '०'
|
25
|
+
},
|
26
|
+
numberMap = {
|
27
|
+
'१': '1',
|
28
|
+
'२': '2',
|
29
|
+
'३': '3',
|
30
|
+
'४': '4',
|
31
|
+
'५': '5',
|
32
|
+
'६': '6',
|
33
|
+
'७': '7',
|
34
|
+
'८': '8',
|
35
|
+
'९': '9',
|
36
|
+
'०': '0'
|
37
|
+
};
|
38
|
+
|
39
|
+
return moment.lang('mr', {
|
40
|
+
months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split("_"),
|
41
|
+
monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split("_"),
|
42
|
+
weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"),
|
43
|
+
weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split("_"),
|
44
|
+
weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split("_"),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : "A h:mm वाजता",
|
47
|
+
L : "DD/MM/YYYY",
|
48
|
+
LL : "D MMMM YYYY",
|
49
|
+
LLL : "D MMMM YYYY, LT",
|
50
|
+
LLLL : "dddd, D MMMM YYYY, LT"
|
51
|
+
},
|
52
|
+
calendar : {
|
53
|
+
sameDay : '[आज] LT',
|
54
|
+
nextDay : '[उद्या] LT',
|
55
|
+
nextWeek : 'dddd, LT',
|
56
|
+
lastDay : '[काल] LT',
|
57
|
+
lastWeek: '[मागील] dddd, LT',
|
58
|
+
sameElse : 'L'
|
59
|
+
},
|
60
|
+
relativeTime : {
|
61
|
+
future : "%s नंतर",
|
62
|
+
past : "%s पूर्वी",
|
63
|
+
s : "सेकंद",
|
64
|
+
m: "एक मिनिट",
|
65
|
+
mm: "%d मिनिटे",
|
66
|
+
h : "एक तास",
|
67
|
+
hh : "%d तास",
|
68
|
+
d : "एक दिवस",
|
69
|
+
dd : "%d दिवस",
|
70
|
+
M : "एक महिना",
|
71
|
+
MM : "%d महिने",
|
72
|
+
y : "एक वर्ष",
|
73
|
+
yy : "%d वर्षे"
|
74
|
+
},
|
75
|
+
preparse: function (string) {
|
76
|
+
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
77
|
+
return numberMap[match];
|
78
|
+
});
|
79
|
+
},
|
80
|
+
postformat: function (string) {
|
81
|
+
return string.replace(/\d/g, function (match) {
|
82
|
+
return symbolMap[match];
|
83
|
+
});
|
84
|
+
},
|
85
|
+
meridiem: function (hour, minute, isLower)
|
86
|
+
{
|
87
|
+
if (hour < 4) {
|
88
|
+
return "रात्री";
|
89
|
+
} else if (hour < 10) {
|
90
|
+
return "सकाळी";
|
91
|
+
} else if (hour < 17) {
|
92
|
+
return "दुपारी";
|
93
|
+
} else if (hour < 20) {
|
94
|
+
return "सायंकाळी";
|
95
|
+
} else {
|
96
|
+
return "रात्री";
|
97
|
+
}
|
98
|
+
},
|
99
|
+
week : {
|
100
|
+
dow : 0, // Sunday is the first day of the week.
|
101
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
102
|
+
}
|
103
|
+
});
|
104
|
+
}));
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Bahasa Malaysia (ms-MY)
|
3
|
+
// author : Weldan Jamili : https://github.com/weldan
|
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('ms-my', {
|
15
|
+
months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),
|
16
|
+
monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
|
17
|
+
weekdays : "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),
|
18
|
+
weekdaysShort : "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),
|
19
|
+
weekdaysMin : "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH.mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY [pukul] LT",
|
25
|
+
LLLL : "dddd, D MMMM YYYY [pukul] LT"
|
26
|
+
},
|
27
|
+
meridiem : function (hours, minutes, isLower) {
|
28
|
+
if (hours < 11) {
|
29
|
+
return 'pagi';
|
30
|
+
} else if (hours < 15) {
|
31
|
+
return 'tengahari';
|
32
|
+
} else if (hours < 19) {
|
33
|
+
return 'petang';
|
34
|
+
} else {
|
35
|
+
return 'malam';
|
36
|
+
}
|
37
|
+
},
|
38
|
+
calendar : {
|
39
|
+
sameDay : '[Hari ini pukul] LT',
|
40
|
+
nextDay : '[Esok pukul] LT',
|
41
|
+
nextWeek : 'dddd [pukul] LT',
|
42
|
+
lastDay : '[Kelmarin pukul] LT',
|
43
|
+
lastWeek : 'dddd [lepas pukul] LT',
|
44
|
+
sameElse : 'L'
|
45
|
+
},
|
46
|
+
relativeTime : {
|
47
|
+
future : "dalam %s",
|
48
|
+
past : "%s yang lepas",
|
49
|
+
s : "beberapa saat",
|
50
|
+
m : "seminit",
|
51
|
+
mm : "%d minit",
|
52
|
+
h : "sejam",
|
53
|
+
hh : "%d jam",
|
54
|
+
d : "sehari",
|
55
|
+
dd : "%d hari",
|
56
|
+
M : "sebulan",
|
57
|
+
MM : "%d bulan",
|
58
|
+
y : "setahun",
|
59
|
+
yy : "%d tahun"
|
60
|
+
},
|
61
|
+
week : {
|
62
|
+
dow : 1, // Monday is the first day of the week.
|
63
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
64
|
+
}
|
65
|
+
});
|
66
|
+
}));
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : norwegian bokmål (nb)
|
3
|
+
// authors : Espen Hovlandsdal : https://github.com/rexxars
|
4
|
+
// Sigurd Gartmann : https://github.com/sigurdga
|
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('nb', {
|
16
|
+
months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
|
17
|
+
monthsShort : "jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),
|
18
|
+
weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
|
19
|
+
weekdaysShort : "sø._ma._ti._on._to._fr._lø.".split("_"),
|
20
|
+
weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"),
|
21
|
+
longDateFormat : {
|
22
|
+
LT : "H.mm",
|
23
|
+
L : "DD.MM.YYYY",
|
24
|
+
LL : "D. MMMM YYYY",
|
25
|
+
LLL : "D. MMMM YYYY [kl.] LT",
|
26
|
+
LLLL : "dddd D. MMMM YYYY [kl.] LT"
|
27
|
+
},
|
28
|
+
calendar : {
|
29
|
+
sameDay: '[i dag kl.] LT',
|
30
|
+
nextDay: '[i morgen kl.] LT',
|
31
|
+
nextWeek: 'dddd [kl.] LT',
|
32
|
+
lastDay: '[i går kl.] LT',
|
33
|
+
lastWeek: '[forrige] dddd [kl.] LT',
|
34
|
+
sameElse: 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : "om %s",
|
38
|
+
past : "for %s siden",
|
39
|
+
s : "noen sekunder",
|
40
|
+
m : "ett minutt",
|
41
|
+
mm : "%d minutter",
|
42
|
+
h : "en time",
|
43
|
+
hh : "%d timer",
|
44
|
+
d : "en dag",
|
45
|
+
dd : "%d dager",
|
46
|
+
M : "en måned",
|
47
|
+
MM : "%d måneder",
|
48
|
+
y : "ett år",
|
49
|
+
yy : "%d år"
|
50
|
+
},
|
51
|
+
ordinal : '%d.',
|
52
|
+
week : {
|
53
|
+
dow : 1, // Monday is the first day of the week.
|
54
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
55
|
+
}
|
56
|
+
});
|
57
|
+
}));
|
@@ -0,0 +1,105 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : nepali/nepalese
|
3
|
+
// author : suvash : https://github.com/suvash
|
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 symbolMap = {
|
15
|
+
'1': '१',
|
16
|
+
'2': '२',
|
17
|
+
'3': '३',
|
18
|
+
'4': '४',
|
19
|
+
'5': '५',
|
20
|
+
'6': '६',
|
21
|
+
'7': '७',
|
22
|
+
'8': '८',
|
23
|
+
'9': '९',
|
24
|
+
'0': '०'
|
25
|
+
},
|
26
|
+
numberMap = {
|
27
|
+
'१': '1',
|
28
|
+
'२': '2',
|
29
|
+
'३': '3',
|
30
|
+
'४': '4',
|
31
|
+
'५': '5',
|
32
|
+
'६': '6',
|
33
|
+
'७': '7',
|
34
|
+
'८': '8',
|
35
|
+
'९': '9',
|
36
|
+
'०': '0'
|
37
|
+
};
|
38
|
+
|
39
|
+
return moment.lang('ne', {
|
40
|
+
months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split("_"),
|
41
|
+
monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split("_"),
|
42
|
+
weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split("_"),
|
43
|
+
weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split("_"),
|
44
|
+
weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split("_"),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : "Aको h:mm बजे",
|
47
|
+
L : "DD/MM/YYYY",
|
48
|
+
LL : "D MMMM YYYY",
|
49
|
+
LLL : "D MMMM YYYY, LT",
|
50
|
+
LLLL : "dddd, D MMMM YYYY, LT"
|
51
|
+
},
|
52
|
+
preparse: function (string) {
|
53
|
+
return string.replace(/[१२३४५६७८९०]/g, function (match) {
|
54
|
+
return numberMap[match];
|
55
|
+
});
|
56
|
+
},
|
57
|
+
postformat: function (string) {
|
58
|
+
return string.replace(/\d/g, function (match) {
|
59
|
+
return symbolMap[match];
|
60
|
+
});
|
61
|
+
},
|
62
|
+
meridiem : function (hour, minute, isLower) {
|
63
|
+
if (hour < 3) {
|
64
|
+
return "राती";
|
65
|
+
} else if (hour < 10) {
|
66
|
+
return "बिहान";
|
67
|
+
} else if (hour < 15) {
|
68
|
+
return "दिउँसो";
|
69
|
+
} else if (hour < 18) {
|
70
|
+
return "बेलुका";
|
71
|
+
} else if (hour < 20) {
|
72
|
+
return "साँझ";
|
73
|
+
} else {
|
74
|
+
return "राती";
|
75
|
+
}
|
76
|
+
},
|
77
|
+
calendar : {
|
78
|
+
sameDay : '[आज] LT',
|
79
|
+
nextDay : '[भोली] LT',
|
80
|
+
nextWeek : '[आउँदो] dddd[,] LT',
|
81
|
+
lastDay : '[हिजो] LT',
|
82
|
+
lastWeek : '[गएको] dddd[,] LT',
|
83
|
+
sameElse : 'L'
|
84
|
+
},
|
85
|
+
relativeTime : {
|
86
|
+
future : "%sमा",
|
87
|
+
past : "%s अगाडी",
|
88
|
+
s : "केही समय",
|
89
|
+
m : "एक मिनेट",
|
90
|
+
mm : "%d मिनेट",
|
91
|
+
h : "एक घण्टा",
|
92
|
+
hh : "%d घण्टा",
|
93
|
+
d : "एक दिन",
|
94
|
+
dd : "%d दिन",
|
95
|
+
M : "एक महिना",
|
96
|
+
MM : "%d महिना",
|
97
|
+
y : "एक बर्ष",
|
98
|
+
yy : "%d बर्ष"
|
99
|
+
},
|
100
|
+
week : {
|
101
|
+
dow : 1, // Monday is the first day of the week.
|
102
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
103
|
+
}
|
104
|
+
});
|
105
|
+
}));
|
@@ -0,0 +1,67 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : dutch (nl)
|
3
|
+
// author : Joris Röling : https://github.com/jjupiter
|
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 monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),
|
15
|
+
monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");
|
16
|
+
|
17
|
+
return moment.lang('nl', {
|
18
|
+
months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),
|
19
|
+
monthsShort : function (m, format) {
|
20
|
+
if (/-MMM-/.test(format)) {
|
21
|
+
return monthsShortWithoutDots[m.month()];
|
22
|
+
} else {
|
23
|
+
return monthsShortWithDots[m.month()];
|
24
|
+
}
|
25
|
+
},
|
26
|
+
weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
|
27
|
+
weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"),
|
28
|
+
weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),
|
29
|
+
longDateFormat : {
|
30
|
+
LT : "HH:mm",
|
31
|
+
L : "DD-MM-YYYY",
|
32
|
+
LL : "D MMMM YYYY",
|
33
|
+
LLL : "D MMMM YYYY LT",
|
34
|
+
LLLL : "dddd D MMMM YYYY LT"
|
35
|
+
},
|
36
|
+
calendar : {
|
37
|
+
sameDay: '[vandaag om] LT',
|
38
|
+
nextDay: '[morgen om] LT',
|
39
|
+
nextWeek: 'dddd [om] LT',
|
40
|
+
lastDay: '[gisteren om] LT',
|
41
|
+
lastWeek: '[afgelopen] dddd [om] LT',
|
42
|
+
sameElse: 'L'
|
43
|
+
},
|
44
|
+
relativeTime : {
|
45
|
+
future : "over %s",
|
46
|
+
past : "%s geleden",
|
47
|
+
s : "een paar seconden",
|
48
|
+
m : "één minuut",
|
49
|
+
mm : "%d minuten",
|
50
|
+
h : "één uur",
|
51
|
+
hh : "%d uur",
|
52
|
+
d : "één dag",
|
53
|
+
dd : "%d dagen",
|
54
|
+
M : "één maand",
|
55
|
+
MM : "%d maanden",
|
56
|
+
y : "één jaar",
|
57
|
+
yy : "%d jaar"
|
58
|
+
},
|
59
|
+
ordinal : function (number) {
|
60
|
+
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
|
61
|
+
},
|
62
|
+
week : {
|
63
|
+
dow : 1, // Monday is the first day of the week.
|
64
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
65
|
+
}
|
66
|
+
});
|
67
|
+
}));
|