momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -9,70 +9,70 @@
9
9
  && typeof require === 'function' ? factory(require('../moment')) :
10
10
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11
11
  factory(global.moment)
12
- }(this, function (moment) { 'use strict';
12
+ }(this, (function (moment) { 'use strict';
13
13
 
14
14
 
15
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
- var format = {
17
- 'm': ['eine Minute', 'einer Minute'],
18
- 'h': ['eine Stunde', 'einer Stunde'],
19
- 'd': ['ein Tag', 'einem Tag'],
20
- 'dd': [number + ' Tage', number + ' Tagen'],
21
- 'M': ['ein Monat', 'einem Monat'],
22
- 'MM': [number + ' Monate', number + ' Monaten'],
23
- 'y': ['ein Jahr', 'einem Jahr'],
24
- 'yy': [number + ' Jahre', number + ' Jahren']
25
- };
26
- return withoutSuffix ? format[key][0] : format[key][1];
27
- }
15
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
+ var format = {
17
+ 'm': ['eine Minute', 'einer Minute'],
18
+ 'h': ['eine Stunde', 'einer Stunde'],
19
+ 'd': ['ein Tag', 'einem Tag'],
20
+ 'dd': [number + ' Tage', number + ' Tagen'],
21
+ 'M': ['ein Monat', 'einem Monat'],
22
+ 'MM': [number + ' Monate', number + ' Monaten'],
23
+ 'y': ['ein Jahr', 'einem Jahr'],
24
+ 'yy': [number + ' Jahre', number + ' Jahren']
25
+ };
26
+ return withoutSuffix ? format[key][0] : format[key][1];
27
+ }
28
28
 
29
- var de = moment.defineLocale('de', {
30
- months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
31
- monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
32
- monthsParseExact : true,
33
- weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
34
- weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
35
- weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
36
- weekdaysParseExact : true,
37
- longDateFormat : {
38
- LT: 'HH:mm',
39
- LTS: 'HH:mm:ss',
40
- L : 'DD.MM.YYYY',
41
- LL : 'D. MMMM YYYY',
42
- LLL : 'D. MMMM YYYY HH:mm',
43
- LLLL : 'dddd, D. MMMM YYYY HH:mm'
44
- },
45
- calendar : {
46
- sameDay: '[heute um] LT [Uhr]',
47
- sameElse: 'L',
48
- nextDay: '[morgen um] LT [Uhr]',
49
- nextWeek: 'dddd [um] LT [Uhr]',
50
- lastDay: '[gestern um] LT [Uhr]',
51
- lastWeek: '[letzten] dddd [um] LT [Uhr]'
52
- },
53
- relativeTime : {
54
- future : 'in %s',
55
- past : 'vor %s',
56
- s : 'ein paar Sekunden',
57
- m : processRelativeTime,
58
- mm : '%d Minuten',
59
- h : processRelativeTime,
60
- hh : '%d Stunden',
61
- d : processRelativeTime,
62
- dd : processRelativeTime,
63
- M : processRelativeTime,
64
- MM : processRelativeTime,
65
- y : processRelativeTime,
66
- yy : processRelativeTime
67
- },
68
- ordinalParse: /\d{1,2}\./,
69
- ordinal : '%d.',
70
- week : {
71
- dow : 1, // Monday is the first day of the week.
72
- doy : 4 // The week that contains Jan 4th is the first week of the year.
73
- }
74
- });
29
+ var de = moment.defineLocale('de', {
30
+ months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
31
+ monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
32
+ monthsParseExact : true,
33
+ weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
34
+ weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
35
+ weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
36
+ weekdaysParseExact : true,
37
+ longDateFormat : {
38
+ LT: 'HH:mm',
39
+ LTS: 'HH:mm:ss',
40
+ L : 'DD.MM.YYYY',
41
+ LL : 'D. MMMM YYYY',
42
+ LLL : 'D. MMMM YYYY HH:mm',
43
+ LLLL : 'dddd, D. MMMM YYYY HH:mm'
44
+ },
45
+ calendar : {
46
+ sameDay: '[heute um] LT [Uhr]',
47
+ sameElse: 'L',
48
+ nextDay: '[morgen um] LT [Uhr]',
49
+ nextWeek: 'dddd [um] LT [Uhr]',
50
+ lastDay: '[gestern um] LT [Uhr]',
51
+ lastWeek: '[letzten] dddd [um] LT [Uhr]'
52
+ },
53
+ relativeTime : {
54
+ future : 'in %s',
55
+ past : 'vor %s',
56
+ s : 'ein paar Sekunden',
57
+ m : processRelativeTime,
58
+ mm : '%d Minuten',
59
+ h : processRelativeTime,
60
+ hh : '%d Stunden',
61
+ d : processRelativeTime,
62
+ dd : processRelativeTime,
63
+ M : processRelativeTime,
64
+ MM : processRelativeTime,
65
+ y : processRelativeTime,
66
+ yy : processRelativeTime
67
+ },
68
+ ordinalParse: /\d{1,2}\./,
69
+ ordinal : '%d.',
70
+ week : {
71
+ dow : 1, // Monday is the first day of the week.
72
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
73
+ }
74
+ });
75
75
 
76
- return de;
76
+ return de;
77
77
 
78
- }));
78
+ })));
@@ -7,93 +7,94 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var months = [
14
- 'ޖެނުއަރީ',
15
- 'ފެބްރުއަރީ',
16
- 'މާރިޗު',
17
- 'އޭޕްރީލު',
18
- 'މޭ',
19
- 'ޖޫން',
20
- 'ޖުލައި',
21
- 'އޯގަސްޓު',
22
- 'ސެޕްޓެމްބަރު',
23
- 'އޮކްޓޯބަރު',
24
- 'ނޮވެމްބަރު',
25
- 'ޑިސެމްބަރު'
26
- ], weekdays = [
27
- 'އާދިއްތަ',
28
- 'ހޯމަ',
29
- 'އަންގާރަ',
30
- 'ބުދަ',
31
- 'ބުރާސްފަތި',
32
- 'ހުކުރު',
33
- 'ހޮނިހިރު'
34
- ];
13
+ var months = [
14
+ 'ޖެނުއަރީ',
15
+ 'ފެބްރުއަރީ',
16
+ 'މާރިޗު',
17
+ 'އޭޕްރީލު',
18
+ 'މޭ',
19
+ 'ޖޫން',
20
+ 'ޖުލައި',
21
+ 'އޯގަސްޓު',
22
+ 'ސެޕްޓެމްބަރު',
23
+ 'އޮކްޓޯބަރު',
24
+ 'ނޮވެމްބަރު',
25
+ 'ޑިސެމްބަރު'
26
+ ];
27
+ var weekdays = [
28
+ 'އާދިއްތަ',
29
+ 'ހޯމަ',
30
+ 'އަންގާރަ',
31
+ 'ބުދަ',
32
+ 'ބުރާސްފަތި',
33
+ 'ހުކުރު',
34
+ 'ހޮނިހިރު'
35
+ ];
35
36
 
36
- var dv = moment.defineLocale('dv', {
37
- months : months,
38
- monthsShort : months,
39
- weekdays : weekdays,
40
- weekdaysShort : weekdays,
41
- weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
42
- longDateFormat : {
37
+ var dv = moment.defineLocale('dv', {
38
+ months : months,
39
+ monthsShort : months,
40
+ weekdays : weekdays,
41
+ weekdaysShort : weekdays,
42
+ weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
43
+ longDateFormat : {
43
44
 
44
- LT : 'HH:mm',
45
- LTS : 'HH:mm:ss',
46
- L : 'D/M/YYYY',
47
- LL : 'D MMMM YYYY',
48
- LLL : 'D MMMM YYYY HH:mm',
49
- LLLL : 'dddd D MMMM YYYY HH:mm'
50
- },
51
- meridiemParse: /މކ|މފ/,
52
- isPM : function (input) {
53
- return 'މފ' === input;
54
- },
55
- meridiem : function (hour, minute, isLower) {
56
- if (hour < 12) {
57
- return 'މކ';
58
- } else {
59
- return 'މފ';
60
- }
61
- },
62
- calendar : {
63
- sameDay : '[މިއަދު] LT',
64
- nextDay : '[މާދަމާ] LT',
65
- nextWeek : 'dddd LT',
66
- lastDay : '[އިއްޔެ] LT',
67
- lastWeek : '[ފާއިތުވި] dddd LT',
68
- sameElse : 'L'
69
- },
70
- relativeTime : {
71
- future : 'ތެރޭގައި %s',
72
- past : 'ކުރިން %s',
73
- s : 'ސިކުންތުކޮޅެއް',
74
- m : 'މިނިޓެއް',
75
- mm : 'މިނިޓު %d',
76
- h : 'ގަޑިއިރެއް',
77
- hh : 'ގަޑިއިރު %d',
78
- d : 'ދުވަހެއް',
79
- dd : 'ދުވަސް %d',
80
- M : 'މަހެއް',
81
- MM : 'މަސް %d',
82
- y : 'އަހަރެއް',
83
- yy : 'އަހަރު %d'
84
- },
85
- preparse: function (string) {
86
- return string.replace(/،/g, ',');
87
- },
88
- postformat: function (string) {
89
- return string.replace(/,/g, '،');
90
- },
91
- week : {
92
- dow : 7, // Sunday is the first day of the week.
93
- doy : 12 // The week that contains Jan 1st is the first week of the year.
45
+ LT : 'HH:mm',
46
+ LTS : 'HH:mm:ss',
47
+ L : 'D/M/YYYY',
48
+ LL : 'D MMMM YYYY',
49
+ LLL : 'D MMMM YYYY HH:mm',
50
+ LLLL : 'dddd D MMMM YYYY HH:mm'
51
+ },
52
+ meridiemParse: /މކ|މފ/,
53
+ isPM : function (input) {
54
+ return 'މފ' === input;
55
+ },
56
+ meridiem : function (hour, minute, isLower) {
57
+ if (hour < 12) {
58
+ return 'މކ';
59
+ } else {
60
+ return 'މފ';
94
61
  }
95
- });
62
+ },
63
+ calendar : {
64
+ sameDay : '[މިއަދު] LT',
65
+ nextDay : '[މާދަމާ] LT',
66
+ nextWeek : 'dddd LT',
67
+ lastDay : '[އިއްޔެ] LT',
68
+ lastWeek : '[ފާއިތުވި] dddd LT',
69
+ sameElse : 'L'
70
+ },
71
+ relativeTime : {
72
+ future : 'ތެރޭގައި %s',
73
+ past : 'ކުރިން %s',
74
+ s : 'ސިކުންތުކޮޅެއް',
75
+ m : 'މިނިޓެއް',
76
+ mm : 'މިނިޓު %d',
77
+ h : 'ގަޑިއިރެއް',
78
+ hh : 'ގަޑިއިރު %d',
79
+ d : 'ދުވަހެއް',
80
+ dd : 'ދުވަސް %d',
81
+ M : 'މަހެއް',
82
+ MM : 'މަސް %d',
83
+ y : 'އަހަރެއް',
84
+ yy : 'އަހަރު %d'
85
+ },
86
+ preparse: function (string) {
87
+ return string.replace(/،/g, ',');
88
+ },
89
+ postformat: function (string) {
90
+ return string.replace(/,/g, '،');
91
+ },
92
+ week : {
93
+ dow : 7, // Sunday is the first day of the week.
94
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
95
+ }
96
+ });
96
97
 
97
- return dv;
98
+ return dv;
98
99
 
99
- }));
100
+ })));
@@ -7,92 +7,92 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
- function isFunction(input) {
13
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
14
- }
12
+ function isFunction(input) {
13
+ return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
14
+ }
15
15
 
16
16
 
17
- var el = moment.defineLocale('el', {
18
- monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
19
- monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
20
- months : function (momentToFormat, format) {
21
- if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
22
- return this._monthsGenitiveEl[momentToFormat.month()];
23
- } else {
24
- return this._monthsNominativeEl[momentToFormat.month()];
25
- }
26
- },
27
- monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
28
- weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
29
- weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
30
- weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
31
- meridiem : function (hours, minutes, isLower) {
32
- if (hours > 11) {
33
- return isLower ? 'μμ' : 'ΜΜ';
34
- } else {
35
- return isLower ? 'πμ' : 'ΠΜ';
36
- }
37
- },
38
- isPM : function (input) {
39
- return ((input + '').toLowerCase()[0] === 'μ');
40
- },
41
- meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
42
- longDateFormat : {
43
- LT : 'h:mm A',
44
- LTS : 'h:mm:ss A',
45
- L : 'DD/MM/YYYY',
46
- LL : 'D MMMM YYYY',
47
- LLL : 'D MMMM YYYY h:mm A',
48
- LLLL : 'dddd, D MMMM YYYY h:mm A'
49
- },
50
- calendarEl : {
51
- sameDay : '[Σήμερα {}] LT',
52
- nextDay : '[Αύριο {}] LT',
53
- nextWeek : 'dddd [{}] LT',
54
- lastDay : '[Χθες {}] LT',
55
- lastWeek : function () {
56
- switch (this.day()) {
57
- case 6:
58
- return '[το προηγούμενο] dddd [{}] LT';
59
- default:
60
- return '[την προηγούμενη] dddd [{}] LT';
61
- }
62
- },
63
- sameElse : 'L'
64
- },
65
- calendar : function (key, mom) {
66
- var output = this._calendarEl[key],
67
- hours = mom && mom.hours();
68
- if (isFunction(output)) {
69
- output = output.apply(mom);
17
+ var el = moment.defineLocale('el', {
18
+ monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
19
+ monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
20
+ months : function (momentToFormat, format) {
21
+ if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
22
+ return this._monthsGenitiveEl[momentToFormat.month()];
23
+ } else {
24
+ return this._monthsNominativeEl[momentToFormat.month()];
25
+ }
26
+ },
27
+ monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
28
+ weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
29
+ weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
30
+ weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
31
+ meridiem : function (hours, minutes, isLower) {
32
+ if (hours > 11) {
33
+ return isLower ? 'μμ' : 'ΜΜ';
34
+ } else {
35
+ return isLower ? 'πμ' : 'ΠΜ';
36
+ }
37
+ },
38
+ isPM : function (input) {
39
+ return ((input + '').toLowerCase()[0] === 'μ');
40
+ },
41
+ meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
42
+ longDateFormat : {
43
+ LT : 'h:mm A',
44
+ LTS : 'h:mm:ss A',
45
+ L : 'DD/MM/YYYY',
46
+ LL : 'D MMMM YYYY',
47
+ LLL : 'D MMMM YYYY h:mm A',
48
+ LLLL : 'dddd, D MMMM YYYY h:mm A'
49
+ },
50
+ calendarEl : {
51
+ sameDay : '[Σήμερα {}] LT',
52
+ nextDay : '[Αύριο {}] LT',
53
+ nextWeek : 'dddd [{}] LT',
54
+ lastDay : '[Χθες {}] LT',
55
+ lastWeek : function () {
56
+ switch (this.day()) {
57
+ case 6:
58
+ return '[το προηγούμενο] dddd [{}] LT';
59
+ default:
60
+ return '[την προηγούμενη] dddd [{}] LT';
70
61
  }
71
- return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
72
- },
73
- relativeTime : {
74
- future : 'σε %s',
75
- past : '%s πριν',
76
- s : 'λίγα δευτερόλεπτα',
77
- m : 'ένα λεπτό',
78
- mm : '%d λεπτά',
79
- h : 'μία ώρα',
80
- hh : '%d ώρες',
81
- d : 'μία μέρα',
82
- dd : '%d μέρες',
83
- M : 'ένας μήνας',
84
- MM : '%d μήνες',
85
- y : 'ένας χρόνος',
86
- yy : '%d χρόνια'
87
62
  },
88
- ordinalParse: /\d{1,2}η/,
89
- ordinal: '%dη',
90
- week : {
91
- dow : 1, // Monday is the first day of the week.
92
- doy : 4 // The week that contains Jan 4st is the first week of the year.
63
+ sameElse : 'L'
64
+ },
65
+ calendar : function (key, mom) {
66
+ var output = this._calendarEl[key],
67
+ hours = mom && mom.hours();
68
+ if (isFunction(output)) {
69
+ output = output.apply(mom);
93
70
  }
94
- });
71
+ return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
72
+ },
73
+ relativeTime : {
74
+ future : 'σε %s',
75
+ past : '%s πριν',
76
+ s : 'λίγα δευτερόλεπτα',
77
+ m : 'ένα λεπτό',
78
+ mm : '%d λεπτά',
79
+ h : 'μία ώρα',
80
+ hh : '%d ώρες',
81
+ d : 'μία μέρα',
82
+ dd : '%d μέρες',
83
+ M : 'ένας μήνας',
84
+ MM : '%d μήνες',
85
+ y : 'ένας χρόνος',
86
+ yy : '%d χρόνια'
87
+ },
88
+ ordinalParse: /\d{1,2}η/,
89
+ ordinal: '%dη',
90
+ week : {
91
+ dow : 1, // Monday is the first day of the week.
92
+ doy : 4 // The week that contains Jan 4st is the first week of the year.
93
+ }
94
+ });
95
95
 
96
- return el;
96
+ return el;
97
97
 
98
- }));
98
+ })));