2016-02-06 04:42:48 +08:00
|
|
|
//! moment.js locale configuration
|
2020-11-11 09:34:26 +08:00
|
|
|
//! locale : Swedish [sv]
|
|
|
|
//! author : Jens Alm : https://github.com/ulmus
|
2013-06-07 16:03:09 +08:00
|
|
|
|
2016-02-06 04:42:48 +08:00
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 12:24:20 +08:00
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-06 04:42:48 +08:00
|
|
|
factory(global.moment)
|
2017-04-20 12:24:20 +08:00
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2020-11-11 09:34:26 +08:00
|
|
|
//! moment.js locale configuration
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
var sv = moment.defineLocale('sv', {
|
2020-11-11 09:34:26 +08:00
|
|
|
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',
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
L: 'YYYY-MM-DD',
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
|
|
|
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
|
|
|
lll: 'D MMM YYYY HH:mm',
|
|
|
|
llll: 'ddd D MMM YYYY HH:mm',
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
calendar: {
|
2018-04-26 15:15:53 +08:00
|
|
|
sameDay: '[Idag] LT',
|
|
|
|
nextDay: '[Imorgon] LT',
|
|
|
|
lastDay: '[Igår] LT',
|
|
|
|
nextWeek: '[På] dddd LT',
|
|
|
|
lastWeek: '[I] dddd[s] LT',
|
2020-11-11 09:34:26 +08:00
|
|
|
sameElse: 'L',
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
relativeTime: {
|
|
|
|
future: 'om %s',
|
|
|
|
past: 'för %s sedan',
|
|
|
|
s: 'några sekunder',
|
|
|
|
ss: '%d 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',
|
2018-04-26 15:15:53 +08:00
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
|
|
|
ordinal: function (number) {
|
2018-04-26 15:15:53 +08:00
|
|
|
var b = number % 10,
|
2020-11-11 09:34:26 +08:00
|
|
|
output =
|
|
|
|
~~((number % 100) / 10) === 1
|
|
|
|
? ':e'
|
|
|
|
: b === 1
|
2024-03-11 10:04:51 +08:00
|
|
|
? ':a'
|
|
|
|
: b === 2
|
|
|
|
? ':a'
|
|
|
|
: b === 3
|
|
|
|
? ':e'
|
|
|
|
: ':e';
|
2018-04-26 15:15:53 +08:00
|
|
|
return number + output;
|
|
|
|
},
|
2020-11-11 09:34:26 +08:00
|
|
|
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.
|
|
|
|
},
|
2018-04-26 15:15:53 +08:00
|
|
|
});
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2018-04-26 15:15:53 +08:00
|
|
|
return sv;
|
2016-02-06 04:42:48 +08:00
|
|
|
|
2017-04-20 12:24:20 +08:00
|
|
|
})));
|