Sha256: 1c55a54283590965e43baeff1adfae2adf3cb8629cd1a042ff1b7911c7620cdd

Contents?: true

Size: 1.77 KB

Versions: 16

Compression:

Stored size: 1.77 KB

Contents

//! moment.js locale configuration
//! locale : swedish (sv)
//! author : Jens Alm : https://github.com/ulmus

import moment from '../moment';

export default moment.defineLocale('sv', {
    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 HH:mm',
        LLLL : 'dddd D MMMM YYYY HH:mm'
    },
    calendar : {
        sameDay: '[Idag] LT',
        nextDay: '[Imorgon] LT',
        lastDay: '[Igår] LT',
        nextWeek: '[På] dddd LT',
        lastWeek: '[I] dddd[s] LT',
        sameElse: 'L'
    },
    relativeTime : {
        future : 'om %s',
        past : 'för %s sedan',
        s : 'några 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'
    },
    ordinalParse: /\d{1,2}(e|a)/,
    ordinal : function (number) {
        var b = number % 10,
            output = (~~(number % 100 / 10) === 1) ? 'e' :
            (b === 1) ? 'a' :
            (b === 2) ? 'a' :
            (b === 3) ? 'e' : 'e';
        return number + output;
    },
    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.
    }
});

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
active_record_survey_api-0.0.19 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
active_record_survey_api-0.0.18 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
active_record_survey_api-0.0.17 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
active_record_survey_api-0.0.14 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
active_record_survey_api-0.0.12 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
locomotivecms-3.2.0.rc1 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
locomotivecms-3.1.1 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
locomotivecms-3.1.0 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
active_record_survey_api-0.0.11 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
locomotivecms-3.1.0.rc3 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
locomotivecms-3.1.0.rc2 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
locomotivecms-3.1.0.rc1 vendor/assets/components/locomotive_sources/moment/src/locale/sv.js
active_record_survey_api-0.0.7 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
active_record_survey_api-0.0.6 spec/test_app/vendor/assets/bower_components/moment/src/locale/sv.js
date_picker-0.0.8 test/dummy/vendor/assets/components/moment/src/locale/sv.js
date_picker-0.0.7 test/dummy/vendor/assets/components/moment/src/locale/sv.js