export default moment.defineLocale('eo', {
months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
- weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
- weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
- weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
+ weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
+ weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
+ weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
longDateFormat : {
LT : 'HH:mm',
LTS : 'HH:mm:ss',
L : 'YYYY-MM-DD',
- LL : 'D[-an de] MMMM, YYYY',
- LLL : 'D[-an de] MMMM, YYYY HH:mm',
- LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
+ LL : 'D[-a de] MMMM, YYYY',
+ LLL : 'D[-a de] MMMM, YYYY HH:mm',
+ LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
},
meridiemParse: /[ap]\.t\.m/i,
isPM: function (input) {
sameElse : 'L'
},
relativeTime : {
- future : 'je %s',
+ future : 'post %s',
past : 'antaŭ %s',
s : 'sekundoj',
m : 'minuto',
test('format', function (assert) {
var a = [
- ['dddd, MMMM Do YYYY, h:mm:ss a', 'Dimanĉo, februaro 14a 2010, 3:25:50 p.t.m.'],
- ['ddd, hA', 'Dim, 3P.T.M.'],
+ ['dddd, MMMM Do YYYY, h:mm:ss a', 'dimanĉo, februaro 14a 2010, 3:25:50 p.t.m.'],
+ ['ddd, hA', 'dim, 3P.T.M.'],
['M Mo MM MMMM MMM', '2 2a 02 februaro feb'],
['YYYY YY', '2010 10'],
['D Do DD', '14 14a 14'],
- ['d do dddd ddd dd', '0 0a Dimanĉo Dim Di'],
+ ['d do dddd ddd dd', '0 0a dimanĉo dim di'],
['DDD DDDo DDDD', '45 45a 045'],
['w wo ww', '7 7a 07'],
['h hh', '3 03'],
['[la] DDDo [tago] [de] [la] [jaro]', 'la 45a tago de la jaro'],
['LTS', '15:25:50'],
['L', '2010-02-14'],
- ['LL', '14-an de februaro, 2010'],
- ['LLL', '14-an de februaro, 2010 15:25'],
- ['LLLL', 'Dimanĉo, la 14-an de februaro, 2010 15:25'],
+ ['LL', '14-a de februaro, 2010'],
+ ['LLL', '14-a de februaro, 2010 15:25'],
+ ['LLLL', 'dimanĉo, la 14-a de februaro, 2010 15:25'],
['l', '2010-2-14'],
- ['ll', '14-an de feb, 2010'],
- ['lll', '14-an de feb, 2010 15:25'],
- ['llll', 'Dim, la 14-an de feb, 2010 15:25']
+ ['ll', '14-a de feb, 2010'],
+ ['lll', '14-a de feb, 2010 15:25'],
+ ['llll', 'dim, la 14-a de feb, 2010 15:25']
],
b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
i;
});
test('format week', function (assert) {
- var expected = 'Dimanĉo Dim Di_Lundo Lun Lu_Mardo Mard Ma_Merkredo Merk Me_Ĵaŭdo Ĵaŭ Ĵa_Vendredo Ven Ve_Sabato Sab Sa'.split('_'), i;
+ var expected = 'dimanĉo dim di_lundo lun lu_mardo mard ma_merkredo merk me_ĵaŭdo ĵaŭ ĵa_vendredo ven ve_sabato sab sa'.split('_'), i;
for (i = 0; i < expected.length; i++) {
assert.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]);
}
});
test('suffix', function (assert) {
- assert.equal(moment(30000).from(0), 'je sekundoj', 'je prefix');
+ assert.equal(moment(30000).from(0), 'post sekundoj', 'post prefix');
assert.equal(moment(0).from(30000), 'antaŭ sekundoj', 'antaŭ prefix');
});
});
test('fromNow', function (assert) {
- assert.equal(moment().add({s: 30}).fromNow(), 'je sekundoj', 'je sekundoj');
- assert.equal(moment().add({d: 5}).fromNow(), 'je 5 tagoj', 'je 5 tagoj');
+ assert.equal(moment().add({s: 30}).fromNow(), 'post sekundoj', 'post sekundoj');
+ assert.equal(moment().add({d: 5}).fromNow(), 'post 5 tagoj', 'post 5 tagoj');
});
test('calendar day', function (assert) {