| 1 |
//! moment.js locale configuration |
| 2 |
//! locale : Esperanto [eo] |
| 3 |
//! author : Colin Dean : https://github.com/colindean |
| 4 |
//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia |
| 5 |
//! comment : miestasmia corrected the translation by colindean |
| 6 |
//! comment : Vivakvo corrected the translation by colindean and miestasmia |
| 7 |
|
| 8 |
import moment from '../moment'; |
| 9 |
|
| 10 |
export default moment.defineLocale('eo', { |
| 11 |
months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( |
| 12 |
'_' |
| 13 |
), |
| 14 |
monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), |
| 15 |
weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), |
| 16 |
weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), |
| 17 |
weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), |
| 18 |
longDateFormat: { |
| 19 |
LT: 'HH:mm', |
| 20 |
LTS: 'HH:mm:ss', |
| 21 |
L: 'YYYY-MM-DD', |
| 22 |
LL: '[la] D[-an de] MMMM, YYYY', |
| 23 |
LLL: '[la] D[-an de] MMMM, YYYY HH:mm', |
| 24 |
LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', |
| 25 |
llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', |
| 26 |
}, |
| 27 |
meridiemParse: /[ap]\.t\.m/i, |
| 28 |
isPM: function (input) { |
| 29 |
return input.charAt(0).toLowerCase() === 'p'; |
| 30 |
}, |
| 31 |
meridiem: function (hours, minutes, isLower) { |
| 32 |
if (hours > 11) { |
| 33 |
return isLower ? 'p.t.m.' : 'P.T.M.'; |
| 34 |
} else { |
| 35 |
return isLower ? 'a.t.m.' : 'A.T.M.'; |
| 36 |
} |
| 37 |
}, |
| 38 |
calendar: { |
| 39 |
sameDay: '[Hodiaŭ je] LT', |
| 40 |
nextDay: '[Morgaŭ je] LT', |
| 41 |
nextWeek: 'dddd[n je] LT', |
| 42 |
lastDay: '[Hieraŭ je] LT', |
| 43 |
lastWeek: '[pasintan] dddd[n je] LT', |
| 44 |
sameElse: 'L', |
| 45 |
}, |
| 46 |
relativeTime: { |
| 47 |
future: 'post %s', |
| 48 |
past: 'antaŭ %s', |
| 49 |
s: 'kelkaj sekundoj', |
| 50 |
ss: '%d sekundoj', |
| 51 |
m: 'unu minuto', |
| 52 |
mm: '%d minutoj', |
| 53 |
h: 'unu horo', |
| 54 |
hh: '%d horoj', |
| 55 |
d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo |
| 56 |
dd: '%d tagoj', |
| 57 |
M: 'unu monato', |
| 58 |
MM: '%d monatoj', |
| 59 |
y: 'unu jaro', |
| 60 |
yy: '%d jaroj', |
| 61 |
}, |
| 62 |
dayOfMonthOrdinalParse: /\d{1,2}a/, |
| 63 |
ordinal: '%da', |
| 64 |
week: { |
| 65 |
dow: 1, // Monday is the first day of the week. |
| 66 |
doy: 7, // The week that contains Jan 7th is the first week of the year. |
| 67 |
}, |
| 68 |
}); |