mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
Update moment locales as well.
This commit is contained in:
126
lib/javascripts/moment_locale/sk.js
Executable file → Normal file
126
lib/javascripts/moment_locale/sk.js
Executable file → Normal file
@ -1,24 +1,24 @@
|
||||
//! moment.js locale configuration
|
||||
//! locale : slovak (sk)
|
||||
//! 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) :
|
||||
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
||||
factory(global.moment)
|
||||
}(this, function (moment) { 'use strict';
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
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) {
|
||||
var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
|
||||
var 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) {
|
||||
case 's': // a few seconds / in a few seconds / a few seconds ago
|
||||
return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
|
||||
case 'm': // a minute / in a minute / a minute ago
|
||||
@ -66,28 +66,28 @@
|
||||
return result + 'rokmi';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var sk = moment.defineLocale('sk', {
|
||||
months : months,
|
||||
monthsShort : 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 : 'H:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D. MMMM YYYY',
|
||||
LLL : 'D. MMMM YYYY H:mm',
|
||||
LLLL : 'dddd D. MMMM YYYY H:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[dnes o] LT',
|
||||
nextDay: '[zajtra o] LT',
|
||||
nextWeek: function () {
|
||||
switch (this.day()) {
|
||||
var sk = moment.defineLocale('sk', {
|
||||
months : months,
|
||||
monthsShort : 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 : 'H:mm:ss',
|
||||
L : 'DD.MM.YYYY',
|
||||
LL : 'D. MMMM YYYY',
|
||||
LLL : 'D. MMMM YYYY H:mm',
|
||||
LLLL : 'dddd D. MMMM YYYY H:mm'
|
||||
},
|
||||
calendar : {
|
||||
sameDay: '[dnes o] LT',
|
||||
nextDay: '[zajtra o] LT',
|
||||
nextWeek: function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[v nedeľu o] LT';
|
||||
case 1:
|
||||
@ -101,11 +101,11 @@
|
||||
return '[v piatok o] LT';
|
||||
case 6:
|
||||
return '[v sobotu o] LT';
|
||||
}
|
||||
},
|
||||
lastDay: '[včera o] LT',
|
||||
lastWeek: function () {
|
||||
switch (this.day()) {
|
||||
}
|
||||
},
|
||||
lastDay: '[včera o] LT',
|
||||
lastWeek: function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[minulú nedeľu o] LT';
|
||||
case 1:
|
||||
@ -118,33 +118,33 @@
|
||||
return '[minulý] dddd [o] LT';
|
||||
case 6:
|
||||
return '[minulú sobotu o] LT';
|
||||
}
|
||||
},
|
||||
sameElse: 'L'
|
||||
}
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'za %s',
|
||||
past : 'pred %s',
|
||||
s : translate,
|
||||
m : translate,
|
||||
mm : translate,
|
||||
h : translate,
|
||||
hh : translate,
|
||||
d : translate,
|
||||
dd : translate,
|
||||
M : translate,
|
||||
MM : translate,
|
||||
y : translate,
|
||||
yy : translate
|
||||
},
|
||||
ordinalParse: /\d{1,2}\./,
|
||||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
sameElse: 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'za %s',
|
||||
past : 'pred %s',
|
||||
s : translate,
|
||||
m : translate,
|
||||
mm : translate,
|
||||
h : translate,
|
||||
hh : translate,
|
||||
d : translate,
|
||||
dd : translate,
|
||||
M : translate,
|
||||
MM : translate,
|
||||
y : translate,
|
||||
yy : translate
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
||||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return sk;
|
||||
return sk;
|
||||
|
||||
}));
|
||||
})));
|
||||
|
Reference in New Issue
Block a user