resources: Bump moment.js from 2.15.0 to 2.19.3
[lhc/web/wiklou.git] / resources / lib / moment / locale / el.js
1 //! moment.js locale configuration
2 //! locale : Greek [el]
3 //! author : Aggelos Karalias : https://github.com/mehiel
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12 function isFunction(input) {
13 return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
14 }
15
16
17 var el = moment.defineLocale('el', {
18 monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
19 monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
20 months : function (momentToFormat, format) {
21 if (!momentToFormat) {
22 return this._monthsNominativeEl;
23 } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
24 return this._monthsGenitiveEl[momentToFormat.month()];
25 } else {
26 return this._monthsNominativeEl[momentToFormat.month()];
27 }
28 },
29 monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
30 weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
31 weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
32 weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
33 meridiem : function (hours, minutes, isLower) {
34 if (hours > 11) {
35 return isLower ? 'μμ' : 'ΜΜ';
36 } else {
37 return isLower ? 'πμ' : 'ΠΜ';
38 }
39 },
40 isPM : function (input) {
41 return ((input + '').toLowerCase()[0] === 'μ');
42 },
43 meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
44 longDateFormat : {
45 LT : 'h:mm A',
46 LTS : 'h:mm:ss A',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY h:mm A',
50 LLLL : 'dddd, D MMMM YYYY h:mm A'
51 },
52 calendarEl : {
53 sameDay : '[Σήμερα {}] LT',
54 nextDay : '[Αύριο {}] LT',
55 nextWeek : 'dddd [{}] LT',
56 lastDay : '[Χθες {}] LT',
57 lastWeek : function () {
58 switch (this.day()) {
59 case 6:
60 return '[το προηγούμενο] dddd [{}] LT';
61 default:
62 return '[την προηγούμενη] dddd [{}] LT';
63 }
64 },
65 sameElse : 'L'
66 },
67 calendar : function (key, mom) {
68 var output = this._calendarEl[key],
69 hours = mom && mom.hours();
70 if (isFunction(output)) {
71 output = output.apply(mom);
72 }
73 return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
74 },
75 relativeTime : {
76 future : 'σε %s',
77 past : '%s πριν',
78 s : 'λίγα δευτερόλεπτα',
79 m : 'ένα λεπτό',
80 mm : '%d λεπτά',
81 h : 'μία ώρα',
82 hh : '%d ώρες',
83 d : 'μία μέρα',
84 dd : '%d μέρες',
85 M : 'ένας μήνας',
86 MM : '%d μήνες',
87 y : 'ένας χρόνος',
88 yy : '%d χρόνια'
89 },
90 dayOfMonthOrdinalParse: /\d{1,2}η/,
91 ordinal: '%dη',
92 week : {
93 dow : 1, // Monday is the first day of the week.
94 doy : 4 // The week that contains Jan 4st is the first week of the year.
95 }
96 });
97
98 return el;
99
100 })));