|
1
|
|
|
//! moment.js locale configuration |
|
2
|
|
|
//! locale : Esperanto [eo] |
|
3
|
|
|
//! author : Colin Dean : https://github.com/colindean |
|
4
|
|
|
//! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. |
|
5
|
|
|
//! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! |
|
6
|
|
|
|
|
7
|
|
|
;(function (global, factory) { |
|
8
|
|
|
typeof exports === 'object' && typeof module !== 'undefined' |
|
9
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) : |
|
10
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) : |
|
11
|
|
|
factory(global.moment) |
|
12
|
|
|
}(this, function (moment) { 'use strict'; |
|
13
|
|
|
|
|
14
|
|
|
|
|
15
|
|
|
var eo = moment.defineLocale('eo', { |
|
16
|
|
|
months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), |
|
17
|
|
|
monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), |
|
18
|
|
|
weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'), |
|
19
|
|
|
weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'), |
|
20
|
|
|
weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'), |
|
21
|
|
|
longDateFormat : { |
|
22
|
|
|
LT : 'HH:mm', |
|
23
|
|
|
LTS : 'HH:mm:ss', |
|
24
|
|
|
L : 'YYYY-MM-DD', |
|
25
|
|
|
LL : 'D[-an de] MMMM, YYYY', |
|
26
|
|
|
LLL : 'D[-an de] MMMM, YYYY HH:mm', |
|
27
|
|
|
LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm' |
|
28
|
|
|
}, |
|
29
|
|
|
meridiemParse: /[ap]\.t\.m/i, |
|
30
|
|
|
isPM: function (input) { |
|
31
|
|
|
return input.charAt(0).toLowerCase() === 'p'; |
|
32
|
|
|
}, |
|
33
|
|
|
meridiem : function (hours, minutes, isLower) { |
|
34
|
|
|
if (hours > 11) { |
|
35
|
|
|
return isLower ? 'p.t.m.' : 'P.T.M.'; |
|
36
|
|
|
} else { |
|
37
|
|
|
return isLower ? 'a.t.m.' : 'A.T.M.'; |
|
38
|
|
|
} |
|
39
|
|
|
}, |
|
40
|
|
|
calendar : { |
|
41
|
|
|
sameDay : '[Hodiaŭ je] LT', |
|
42
|
|
|
nextDay : '[Morgaŭ je] LT', |
|
43
|
|
|
nextWeek : 'dddd [je] LT', |
|
44
|
|
|
lastDay : '[Hieraŭ je] LT', |
|
45
|
|
|
lastWeek : '[pasinta] dddd [je] LT', |
|
46
|
|
|
sameElse : 'L' |
|
47
|
|
|
}, |
|
48
|
|
|
relativeTime : { |
|
49
|
|
|
future : 'je %s', |
|
50
|
|
|
past : 'antaŭ %s', |
|
51
|
|
|
s : 'sekundoj', |
|
52
|
|
|
m : 'minuto', |
|
53
|
|
|
mm : '%d minutoj', |
|
54
|
|
|
h : 'horo', |
|
55
|
|
|
hh : '%d horoj', |
|
56
|
|
|
d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo |
|
57
|
|
|
dd : '%d tagoj', |
|
58
|
|
|
M : 'monato', |
|
59
|
|
|
MM : '%d monatoj', |
|
60
|
|
|
y : 'jaro', |
|
61
|
|
|
yy : '%d jaroj' |
|
62
|
|
|
}, |
|
63
|
|
|
ordinalParse: /\d{1,2}a/, |
|
64
|
|
|
ordinal : '%da', |
|
65
|
|
|
week : { |
|
66
|
|
|
dow : 1, // Monday is the first day of the week. |
|
67
|
|
|
doy : 7 // The week that contains Jan 1st is the first week of the year. |
|
68
|
|
|
} |
|
69
|
|
|
}); |
|
70
|
|
|
|
|
71
|
|
|
return eo; |
|
72
|
|
|
|
|
73
|
|
|
})); |