nn.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // moment.js language configuration
  2. // language : norwegian nynorsk (nn)
  3. // author : https://github.com/mechuwind
  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('nn', {
  14. months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
  15. monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
  16. weekdays : "sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),
  17. weekdaysShort : "sun_mån_tys_ons_tor_fre_lau".split("_"),
  18. weekdaysMin : "su_må_ty_on_to_fr_lø".split("_"),
  19. longDateFormat : {
  20. LT : "HH:mm",
  21. L : "DD.MM.YYYY",
  22. LL : "D MMMM YYYY",
  23. LLL : "D MMMM YYYY LT",
  24. LLLL : "dddd D MMMM YYYY LT"
  25. },
  26. calendar : {
  27. sameDay: '[I dag klokka] LT',
  28. nextDay: '[I morgon klokka] LT',
  29. nextWeek: 'dddd [klokka] LT',
  30. lastDay: '[I går klokka] LT',
  31. lastWeek: '[Føregåande] dddd [klokka] LT',
  32. sameElse: 'L'
  33. },
  34. relativeTime : {
  35. future : "om %s",
  36. past : "for %s sidan",
  37. s : "nokre sekund",
  38. m : "eit minutt",
  39. mm : "%d minutt",
  40. h : "ein time",
  41. hh : "%d timar",
  42. d : "ein dag",
  43. dd : "%d dagar",
  44. M : "ein månad",
  45. MM : "%d månader",
  46. y : "eit år",
  47. yy : "%d år"
  48. },
  49. ordinal : '%d.',
  50. week : {
  51. dow : 1, // Monday is the first day of the week.
  52. doy : 4 // The week that contains Jan 4th is the first week of the year.
  53. }
  54. });
  55. }));