UNPKG

2.66 kBJavaScriptView Raw
1//! moment.js locale configuration
2//! locale : Swedish [sv]
3//! author : Jens Alm : https://github.com/ulmus
4
5;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10}(this, (function (moment) { 'use strict';
11
12 //! moment.js locale configuration
13
14 var sv = moment.defineLocale('sv', {
15 months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
16 '_'
17 ),
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('_'),
22 longDateFormat: {
23 LT: 'HH:mm',
24 LTS: 'HH:mm:ss',
25 L: 'YYYY-MM-DD',
26 LL: 'D MMMM YYYY',
27 LLL: 'D MMMM YYYY [kl.] HH:mm',
28 LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
29 lll: 'D MMM YYYY HH:mm',
30 llll: 'ddd D MMM YYYY HH:mm',
31 },
32 calendar: {
33 sameDay: '[Idag] LT',
34 nextDay: '[Imorgon] LT',
35 lastDay: '[Igår] LT',
36 nextWeek: '[På] dddd LT',
37 lastWeek: '[I] dddd[s] LT',
38 sameElse: 'L',
39 },
40 relativeTime: {
41 future: 'om %s',
42 past: 'för %s sedan',
43 s: 'några sekunder',
44 ss: '%d sekunder',
45 m: 'en minut',
46 mm: '%d minuter',
47 h: 'en timme',
48 hh: '%d timmar',
49 d: 'en dag',
50 dd: '%d dagar',
51 M: 'en månad',
52 MM: '%d månader',
53 y: 'ett år',
54 yy: '%d år',
55 },
56 dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
57 ordinal: function (number) {
58 var b = number % 10,
59 output =
60 ~~((number % 100) / 10) === 1
61 ? ':e'
62 : b === 1
63 ? ':a'
64 : b === 2
65 ? ':a'
66 : b === 3
67 ? ':e'
68 : ':e';
69 return number + output;
70 },
71 week: {
72 dow: 1, // Monday is the first day of the week.
73 doy: 4, // The week that contains Jan 4th is the first week of the year.
74 },
75 });
76
77 return sv;
78
79})));