From f5f2d0bfbd937fb653c653ff7d4f617261bfbd08 Mon Sep 17 00:00:00 2001 From: Alexander Karelas Date: Thu, 24 Apr 2014 16:23:37 +0000 Subject: [PATCH] reverted the 'min' directory to its original state --- min/langs.js | 13 +------------ min/moment-with-langs.js | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/min/langs.js b/min/langs.js index e70f91d88..c0b3c6b43 100644 --- a/min/langs.js +++ b/min/langs.js @@ -983,24 +983,13 @@ nextDay : '[Αύριο {}] LT', nextWeek : 'dddd [{}] LT', lastDay : '[Χθες {}] LT', - lastWeek : function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, + lastWeek : '[την προηγούμενη] dddd [{}] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendarEl[key], hours = mom && mom.hours(); - if (typeof output === 'function') { - output = output.apply(mom); - } - return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); }, relativeTime : { diff --git a/min/moment-with-langs.js b/min/moment-with-langs.js index 553554200..72687db99 100644 --- a/min/moment-with-langs.js +++ b/min/moment-with-langs.js @@ -3349,24 +3349,13 @@ nextDay : '[Αύριο {}] LT', nextWeek : 'dddd [{}] LT', lastDay : '[Χθες {}] LT', - lastWeek : function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, + lastWeek : '[την προηγούμενη] dddd [{}] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendarEl[key], hours = mom && mom.hours(); - if (typeof output === 'function') { - output = output.apply(mom); - } - return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); }, relativeTime : { -- 2.47.2