summaryrefslogtreecommitdiffstats
path: root/js/vendor/momentjs/locale/sk.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/momentjs/locale/sk.js')
-rw-r--r--js/vendor/momentjs/locale/sk.js48
1 files changed, 20 insertions, 28 deletions
diff --git a/js/vendor/momentjs/locale/sk.js b/js/vendor/momentjs/locale/sk.js
index f9d74c5d6..52838a3a6 100644
--- a/js/vendor/momentjs/locale/sk.js
+++ b/js/vendor/momentjs/locale/sk.js
@@ -1,24 +1,21 @@
-// moment.js locale configuration
-// locale : slovak (sk)
-// author : Martin Minka : https://github.com/k2s
-// based on work of petrbela : https://github.com/petrbela
+//! moment.js locale configuration
+//! locale : slovak (sk)
+//! author : Martin Minka : https://github.com/k2s
+//! based on work of petrbela : https://github.com/petrbela
+
+;(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined'
+ && typeof require === 'function' ? factory(require('../moment')) :
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
+ factory(global.moment)
+}(this, function (moment) { 'use strict';
+
-(function (factory) {
- if (typeof define === 'function' && define.amd) {
- define(['moment'], factory); // AMD
- } else if (typeof exports === 'object') {
- module.exports = factory(require('../moment')); // Node
- } else {
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
- }
-}(function (moment) {
var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
-
function plural(n) {
return (n > 1) && (n < 5);
}
-
function translate(number, withoutSuffix, key, isFuture) {
var result = number + ' ';
switch (key) {
@@ -72,27 +69,19 @@
}
}
- return moment.defineLocale('sk', {
+ var sk = moment.defineLocale('sk', {
months : months,
monthsShort : monthsShort,
- monthsParse : (function (months, monthsShort) {
- var i, _monthsParse = [];
- for (i = 0; i < 12; i++) {
- // use custom parser to solve problem with July (červenec)
- _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
- }
- return _monthsParse;
- }(months, monthsShort)),
weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
longDateFormat : {
LT: 'H:mm',
- LTS : 'LT:ss',
+ LTS : 'H:mm:ss',
L : 'DD.MM.YYYY',
LL : 'D. MMMM YYYY',
- LLL : 'D. MMMM YYYY LT',
- LLLL : 'dddd D. MMMM YYYY LT'
+ LLL : 'D. MMMM YYYY H:mm',
+ LLLL : 'dddd D. MMMM YYYY H:mm'
},
calendar : {
sameDay: '[dnes o] LT',
@@ -155,4 +144,7 @@
doy : 4 // The week that contains Jan 4th is the first week of the year.
}
});
-}));
+
+ return sk;
+
+})); \ No newline at end of file