1 // moment.js locale configuration
2 // locale : swedish (sv)
3 // author : Jens Alm : https://github.com/ulmus
6 if (typeof define
=== 'function' && define
.amd
) {
7 define(['moment'], factory
); // AMD
8 } else if (typeof exports
=== 'object') {
9 module
.exports
= factory(require('../moment')); // Node
11 factory((typeof global
!== 'undefined' ? global
: this).moment
); // node or other global
14 return moment
.defineLocale('sv', {
15 months
: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
16 monthsShort
: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
17 weekdays
: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
18 weekdaysShort
: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
19 weekdaysMin
: 'sö_må_ti_on_to_fr_lö'.split('_'),
25 LLL
: 'D MMMM YYYY LT',
26 LLLL
: 'dddd D MMMM YYYY LT'
30 nextDay
: '[Imorgon] LT',
33 lastWeek
: '[Förra] dddd[en] LT',
38 past
: 'för %s sedan',
51 ordinalParse
: /\d{1,2}(e|a)/,
52 ordinal : function (number
) {
54 output
= (~~(number
% 100 / 10) === 1) ? 'e' :
57 (b
=== 3) ? 'e' : 'e';
58 return number
+ output
;
61 dow
: 1, // Monday is the first day of the week.
62 doy
: 4 // The week that contains Jan 4th is the first week of the year.