sv.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //! moment.js locale configuration
  2. //! locale : Swedish [sv]
  3. //! author : Jens Alm : https://github.com/ulmus
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. var sv = moment.defineLocale('sv', {
  11. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  12. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  13. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  15. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  16. longDateFormat : {
  17. LT : 'HH:mm',
  18. LTS : 'HH:mm:ss',
  19. L : 'YYYY-MM-DD',
  20. LL : 'D MMMM YYYY',
  21. LLL : 'D MMMM YYYY [kl.] HH:mm',
  22. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  23. lll : 'D MMM YYYY HH:mm',
  24. llll : 'ddd D MMM YYYY HH:mm'
  25. },
  26. calendar : {
  27. sameDay: '[Idag] LT',
  28. nextDay: '[Imorgon] LT',
  29. lastDay: '[Igår] LT',
  30. nextWeek: '[På] dddd LT',
  31. lastWeek: '[I] dddd[s] LT',
  32. sameElse: 'L'
  33. },
  34. relativeTime : {
  35. future : 'om %s',
  36. past : 'för %s sedan',
  37. s : 'några 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 = (~~(number % 100 / 10) === 1) ? 'e' :
  53. (b === 1) ? 'a' :
  54. (b === 2) ? 'a' :
  55. (b === 3) ? 'e' : 'e';
  56. return number + output;
  57. },
  58. week : {
  59. dow : 1, // Monday is the first day of the week.
  60. doy : 4 // The week that contains Jan 4th is the first week of the year.
  61. }
  62. });
  63. return sv;
  64. })));