mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-05 04:58:13 +00:00
64 lines
2.2 KiB
JavaScript
64 lines
2.2 KiB
JavaScript
|
// moment.js language configuration
|
||
|
// language : swedish (sv)
|
||
|
// author : Jens Alm : https://github.com/ulmus
|
||
|
|
||
|
(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(window.moment); // Browser global
|
||
|
}
|
||
|
}(function (moment) {
|
||
|
return moment.lang('sv', {
|
||
|
months : "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),
|
||
|
monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
|
||
|
weekdays : "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
|
||
|
weekdaysShort : "sön_mån_tis_ons_tor_fre_lör".split("_"),
|
||
|
weekdaysMin : "sö_må_ti_on_to_fr_lö".split("_"),
|
||
|
longDateFormat : {
|
||
|
LT : "HH:mm",
|
||
|
L : "YYYY-MM-DD",
|
||
|
LL : "D MMMM YYYY",
|
||
|
LLL : "D MMMM YYYY LT",
|
||
|
LLLL : "dddd D MMMM YYYY LT"
|
||
|
},
|
||
|
calendar : {
|
||
|
sameDay: '[Idag] LT',
|
||
|
nextDay: '[Imorgon] LT',
|
||
|
lastDay: '[Igår] LT',
|
||
|
nextWeek: 'dddd LT',
|
||
|
lastWeek: '[Förra] dddd[en] LT',
|
||
|
sameElse: 'L'
|
||
|
},
|
||
|
relativeTime : {
|
||
|
future : "om %s",
|
||
|
past : "för %s sedan",
|
||
|
s : "några sekunder",
|
||
|
m : "en minut",
|
||
|
mm : "%d minuter",
|
||
|
h : "en timme",
|
||
|
hh : "%d timmar",
|
||
|
d : "en dag",
|
||
|
dd : "%d dagar",
|
||
|
M : "en månad",
|
||
|
MM : "%d månader",
|
||
|
y : "ett år",
|
||
|
yy : "%d år"
|
||
|
},
|
||
|
ordinal : function (number) {
|
||
|
var b = number % 10,
|
||
|
output = (~~ (number % 100 / 10) === 1) ? 'e' :
|
||
|
(b === 1) ? 'a' :
|
||
|
(b === 2) ? 'a' :
|
||
|
(b === 3) ? 'e' : 'e';
|
||
|
return number + output;
|
||
|
},
|
||
|
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.
|
||
|
}
|
||
|
});
|
||
|
}));
|