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