You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB

  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' ? factory(require('../moment')) :
  6. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  7. factory(global.moment)
  8. }(this, function (moment) { 'use strict';
  9. var sv = moment.defineLocale('sv', {
  10. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  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 : 'LT:ss',
  18. L : 'YYYY-MM-DD',
  19. LL : 'D MMMM YYYY',
  20. LLL : 'D MMMM YYYY LT',
  21. LLLL : 'dddd D MMMM YYYY LT'
  22. },
  23. calendar : {
  24. sameDay: '[Idag] LT',
  25. nextDay: '[Imorgon] LT',
  26. lastDay: '[Igår] LT',
  27. nextWeek: 'dddd LT',
  28. lastWeek: '[Förra] dddd[en] LT',
  29. sameElse: 'L'
  30. },
  31. relativeTime : {
  32. future : 'om %s',
  33. past : 'för %s sedan',
  34. s : 'några sekunder',
  35. m : 'en minut',
  36. mm : '%d minuter',
  37. h : 'en timme',
  38. hh : '%d timmar',
  39. d : 'en dag',
  40. dd : '%d dagar',
  41. M : 'en månad',
  42. MM : '%d månader',
  43. y : 'ett år',
  44. yy : '%d år'
  45. },
  46. ordinalParse: /\d{1,2}(e|a)/,
  47. ordinal : function (number) {
  48. var b = number % 10,
  49. output = (~~(number % 100 / 10) === 1) ? 'e' :
  50. (b === 1) ? 'a' :
  51. (b === 2) ? 'a' :
  52. (b === 3) ? 'e' : 'e';
  53. return number + output;
  54. },
  55. week : {
  56. dow : 1, // Monday is the first day of the week.
  57. doy : 4 // The week that contains Jan 4th is the first week of the year.
  58. }
  59. });
  60. return sv;
  61. }));