2016-02-05 15:42:48 -05:00
|
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! locale : Greek [el]
|
|
|
|
|
//! author : Aggelos Karalias : https://github.com/mehiel
|
2014-08-20 14:41:50 -04:00
|
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! moment.js locale configuration
|
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
function isFunction(input) {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
return (
|
|
|
|
|
(typeof Function !== 'undefined' && input instanceof Function) ||
|
|
|
|
|
Object.prototype.toString.call(input) === '[object Function]'
|
|
|
|
|
);
|
2018-04-26 03:15:53 -04:00
|
|
|
|
}
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
var el = moment.defineLocale('el', {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
months: function (momentToFormat, format) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
if (!momentToFormat) {
|
|
|
|
|
return this._monthsNominativeEl;
|
2020-11-10 20:34:26 -05:00
|
|
|
|
} else if (
|
|
|
|
|
typeof format === 'string' &&
|
|
|
|
|
/D/.test(format.substring(0, format.indexOf('MMMM')))
|
|
|
|
|
) {
|
|
|
|
|
// if there is a day number before 'MMMM'
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return this._monthsGenitiveEl[momentToFormat.month()];
|
|
|
|
|
} else {
|
|
|
|
|
return this._monthsNominativeEl[momentToFormat.month()];
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
|
|
|
|
|
weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
|
|
|
|
|
weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
|
|
|
|
|
meridiem: function (hours, minutes, isLower) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
if (hours > 11) {
|
|
|
|
|
return isLower ? 'μμ' : 'ΜΜ';
|
|
|
|
|
} else {
|
|
|
|
|
return isLower ? 'πμ' : 'ΠΜ';
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
isPM: function (input) {
|
|
|
|
|
return (input + '').toLowerCase()[0] === 'μ';
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
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',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendarEl: {
|
|
|
|
|
sameDay: '[Σήμερα {}] LT',
|
|
|
|
|
nextDay: '[Αύριο {}] LT',
|
|
|
|
|
nextWeek: 'dddd [{}] LT',
|
|
|
|
|
lastDay: '[Χθες {}] LT',
|
|
|
|
|
lastWeek: function () {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
switch (this.day()) {
|
|
|
|
|
case 6:
|
|
|
|
|
return '[το προηγούμενο] dddd [{}] LT';
|
|
|
|
|
default:
|
|
|
|
|
return '[την προηγούμενη] dddd [{}] LT';
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendar: function (key, mom) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
var output = this._calendarEl[key],
|
|
|
|
|
hours = mom && mom.hours();
|
|
|
|
|
if (isFunction(output)) {
|
|
|
|
|
output = output.apply(mom);
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
2020-11-10 20:34:26 -05:00
|
|
|
|
return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: 'σε %s',
|
|
|
|
|
past: '%s πριν',
|
|
|
|
|
s: 'λίγα δευτερόλεπτα',
|
|
|
|
|
ss: '%d δευτερόλεπτα',
|
|
|
|
|
m: 'ένα λεπτό',
|
|
|
|
|
mm: '%d λεπτά',
|
|
|
|
|
h: 'μία ώρα',
|
|
|
|
|
hh: '%d ώρες',
|
|
|
|
|
d: 'μία μέρα',
|
|
|
|
|
dd: '%d μέρες',
|
|
|
|
|
M: 'ένας μήνας',
|
|
|
|
|
MM: '%d μήνες',
|
|
|
|
|
y: 'ένας χρόνος',
|
|
|
|
|
yy: '%d χρόνια',
|
2014-08-20 14:41:50 -04:00
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}η/,
|
|
|
|
|
ordinal: '%dη',
|
2020-11-10 20:34:26 -05:00
|
|
|
|
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.
|
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return el;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
|
})));
|