1 // moment.js locale configuration
2 // locale : swedish (sv)
3 // author : Jens Alm : https://github.com/ulmus
6 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
16 return moment.defineLocale('sv', {
17 months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
18 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
19 weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
20 weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
21 weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
27 LLL : 'D MMMM YYYY LT',
28 LLLL : 'dddd D MMMM YYYY LT'
32 nextDay: '[Imorgon] LT',
35 lastWeek: '[Förra] dddd[en] LT',
40 past : 'för %s sedan',
53 ordinalParse: /\d{1,2}(e|a)/,
54 ordinal : function (number) {
56 output = (~~(number % 100 / 10) === 1) ? 'e' :
59 (b === 3) ? 'e' : 'e';
60 return number + output;
63 dow : 1, // Monday is the first day of the week.
64 doy : 4 // The week that contains Jan 4th is the first week of the year.