mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Update moment locales as well.
This commit is contained in:
120
lib/javascripts/moment_locale/sl.js
Executable file → Normal file
120
lib/javascripts/moment_locale/sl.js
Executable file → Normal file
@ -1,18 +1,18 @@
|
||||
//! moment.js locale configuration
|
||||
//! locale : slovenian (sl)
|
||||
//! locale : Slovenian [sl]
|
||||
//! author : Robert Sedovšek : https://github.com/sedovsek
|
||||
|
||||
;(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';
|
||||
|
||||
|
||||
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
||||
var result = number + ' ';
|
||||
switch (key) {
|
||||
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
||||
var result = number + ' ';
|
||||
switch (key) {
|
||||
case 's':
|
||||
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
|
||||
case 'm':
|
||||
@ -78,31 +78,31 @@
|
||||
result += withoutSuffix || isFuture ? 'let' : 'leti';
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var sl = moment.defineLocale('sl', {
|
||||
months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
|
||||
monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
|
||||
monthsParseExact: true,
|
||||
weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
||||
weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
|
||||
weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
|
||||
weekdaysParseExact : true,
|
||||
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 : '[danes ob] LT',
|
||||
nextDay : '[jutri ob] LT',
|
||||
var sl = moment.defineLocale('sl', {
|
||||
months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
|
||||
monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
|
||||
monthsParseExact: true,
|
||||
weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
||||
weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
|
||||
weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
|
||||
weekdaysParseExact : true,
|
||||
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 : '[danes ob] LT',
|
||||
nextDay : '[jutri ob] LT',
|
||||
|
||||
nextWeek : function () {
|
||||
switch (this.day()) {
|
||||
nextWeek : function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[v] [nedeljo] [ob] LT';
|
||||
case 3:
|
||||
@ -114,11 +114,11 @@
|
||||
case 4:
|
||||
case 5:
|
||||
return '[v] dddd [ob] LT';
|
||||
}
|
||||
},
|
||||
lastDay : '[včeraj ob] LT',
|
||||
lastWeek : function () {
|
||||
switch (this.day()) {
|
||||
}
|
||||
},
|
||||
lastDay : '[včeraj ob] LT',
|
||||
lastWeek : function () {
|
||||
switch (this.day()) {
|
||||
case 0:
|
||||
return '[prejšnjo] [nedeljo] [ob] LT';
|
||||
case 3:
|
||||
@ -130,33 +130,33 @@
|
||||
case 4:
|
||||
case 5:
|
||||
return '[prejšnji] dddd [ob] LT';
|
||||
}
|
||||
},
|
||||
sameElse : 'L'
|
||||
}
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'čez %s',
|
||||
past : 'pred %s',
|
||||
s : processRelativeTime,
|
||||
m : processRelativeTime,
|
||||
mm : processRelativeTime,
|
||||
h : processRelativeTime,
|
||||
hh : processRelativeTime,
|
||||
d : processRelativeTime,
|
||||
dd : processRelativeTime,
|
||||
M : processRelativeTime,
|
||||
MM : processRelativeTime,
|
||||
y : processRelativeTime,
|
||||
yy : processRelativeTime
|
||||
},
|
||||
ordinalParse: /\d{1,2}\./,
|
||||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
}
|
||||
});
|
||||
sameElse : 'L'
|
||||
},
|
||||
relativeTime : {
|
||||
future : 'čez %s',
|
||||
past : 'pred %s',
|
||||
s : processRelativeTime,
|
||||
m : processRelativeTime,
|
||||
mm : processRelativeTime,
|
||||
h : processRelativeTime,
|
||||
hh : processRelativeTime,
|
||||
d : processRelativeTime,
|
||||
dd : processRelativeTime,
|
||||
M : processRelativeTime,
|
||||
MM : processRelativeTime,
|
||||
y : processRelativeTime,
|
||||
yy : processRelativeTime
|
||||
},
|
||||
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
||||
ordinal : '%d.',
|
||||
week : {
|
||||
dow : 1, // Monday is the first day of the week.
|
||||
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
||||
}
|
||||
});
|
||||
|
||||
return sl;
|
||||
return sl;
|
||||
|
||||
}));
|
||||
})));
|
||||
|
Reference in New Issue
Block a user