[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> sv.js (source)

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


Generated: Fri Feb 26 01:01:36 2021 Cross-referenced by PHPXref 0.7.1