cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

sv.js (2090B)


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