//! moment.js locale configuration
//! locale : modern greek (el)
//! author : Aggelos Karalias : https://github.com/mehiel
import moment from '../moment';
import isFunction from '../lib/utils/is-function';
export default moment.defineLocale('el', {
monthsNominativeEl : '??????????_???????????_???????_????????_?????_???????_???????_?????????_???????????_?????????_?????????_??????????'.split('_'),
monthsGenitiveEl : '??????????_???????????_???????_????????_?????_???????_???????_?????????_???????????_?????????_?????????_??????????'.split('_'),
months : function (momentToFormat, format) {
if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
return this._monthsGenitiveEl[momentToFormat.month()];
} else {
return this._monthsNominativeEl[momentToFormat.month()];
}
},
monthsShort : '???_???_???_???_???_????_????_???_???_???_???_???'.split('_'),
weekdays : '???????_???????_?????_???????_??????_?????????_???????'.split('_'),
weekdaysShort : '???_???_???_???_???_???_???'.split('_'),
weekdaysMin : '??_??_??_??_??_??_??'.split('_'),
meridiem : function (hours, minutes, isLower) {
if (hours > 11) {
return isLower ? '??' : '??';
} else {
return isLower ? '??' : '??';
}
},
isPM : function (input) {
return ((input + '').toLowerCase()[0] === '?');
},
meridiemParse : /[??]\.???\.?/i,
longDateFormat : {
LT : 'h:mm A',
LTS : 'h:mm:ss A',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY h:mm A',
LLLL : 'dddd, D MMMM YYYY h:mm A'
},
calendarEl : {
sameDay : '[?????? {}] LT',
nextDay : '[????? {}] LT',
nextWeek : 'dddd [{}] LT',
lastDay : '[???? {}] LT',
lastWeek : function () {
switch (this.day()) {
case 6:
return '[?? ???????????] dddd [{}] LT';
default:
return '[??? ???????????] dddd [{}] LT';
}
},
sameElse : 'L'
},
calendar : function (key, mom) {
var output = this._calendarEl[key],
hours = mom && mom.hours();
if (isFunction(output)) {
output = output.apply(mom);
}
return output.replace('{}', (hours % 12 === 1 ? '???' : '????'));
},
relativeTime : {
future : '?? %s',
past : '%s ????',
s : '???? ????????????',
m : '??? ?????',
mm : '%d ?????',
h : '??? ???',
hh : '%d ????',
d : '??? ????',
dd : '%d ?????',
M : '???? ?????',
MM : '%d ?????',
y : '???? ??????',
yy : '%d ??????'
},
ordinalParse: /\d{1,2}?/,
ordinal: '%d?',
week : {
dow : 1, // Monday is the first day of the week.
doy : 4 // The week that contains Jan 4st is the first week of the year.
}
});
|