Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

el.js 3.6KB

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