sv.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // moment.js language configuration
  2. // language : swedish (sv)
  3. // author : Jens Alm : https://github.com/ulmus
  4. (function (factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['moment'], factory); // AMD
  7. } else if (typeof exports === 'object') {
  8. module.exports = factory(require('../moment')); // Node
  9. } else {
  10. factory(window.moment); // Browser global
  11. }
  12. }(function (moment) {
  13. return moment.lang('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. L : "YYYY-MM-DD",
  22. LL : "D MMMM YYYY",
  23. LLL : "D MMMM YYYY LT",
  24. LLLL : "dddd D MMMM YYYY LT"
  25. },
  26. calendar : {
  27. sameDay: '[Idag] LT',
  28. nextDay: '[Imorgon] LT',
  29. lastDay: '[Igår] LT',
  30. nextWeek: 'dddd LT',
  31. lastWeek: '[Förra] dddd[en] 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. ordinal : function (number) {
  50. var b = number % 10,
  51. output = (~~ (number % 100 / 10) === 1) ? 'e' :
  52. (b === 1) ? 'a' :
  53. (b === 2) ? 'a' :
  54. (b === 3) ? 'e' : 'e';
  55. return number + output;
  56. },
  57. week : {
  58. dow : 1, // Monday is the first day of the week.
  59. doy : 4 // The week that contains Jan 4th is the first week of the year.
  60. }
  61. });
  62. }));