diff options
Diffstat (limited to 'node_modules/date-fns/locale/el/_lib/formatRelative')
| -rw-r--r-- | node_modules/date-fns/locale/el/_lib/formatRelative/index.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative/index.js b/node_modules/date-fns/locale/el/_lib/formatRelative/index.js new file mode 100644 index 0000000..6e18226 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 6: + //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: 'P' +}; +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === 'function') return format(date); + return format; +}; +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default;
\ No newline at end of file |
