Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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 4.5KB

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