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.

59 lines
2.1 KiB

  1. //! moment.js locale configuration
  2. //! locale : norwegian bokmål (nb)
  3. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  4. //! Sigurd Gartmann : https://github.com/sigurdga
  5. (function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['moment'], factory) :
  8. factory(global.moment)
  9. }(this, function (moment) { 'use strict';
  10. var nb = moment.defineLocale('nb', {
  11. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  12. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  13. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  14. weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
  15. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  16. longDateFormat : {
  17. LT : 'H.mm',
  18. LTS : 'LT.ss',
  19. L : 'DD.MM.YYYY',
  20. LL : 'D. MMMM YYYY',
  21. LLL : 'D. MMMM YYYY [kl.] LT',
  22. LLLL : 'dddd D. MMMM YYYY [kl.] LT'
  23. },
  24. calendar : {
  25. sameDay: '[i dag kl.] LT',
  26. nextDay: '[i morgen kl.] LT',
  27. nextWeek: 'dddd [kl.] LT',
  28. lastDay: '[i går kl.] LT',
  29. lastWeek: '[forrige] dddd [kl.] LT',
  30. sameElse: 'L'
  31. },
  32. relativeTime : {
  33. future : 'om %s',
  34. past : 'for %s siden',
  35. s : 'noen sekunder',
  36. m : 'ett minutt',
  37. mm : '%d minutter',
  38. h : 'en time',
  39. hh : '%d timer',
  40. d : 'en dag',
  41. dd : '%d dager',
  42. M : 'en måned',
  43. MM : '%d måneder',
  44. y : 'ett år',
  45. yy : '%d år'
  46. },
  47. ordinalParse: /\d{1,2}\./,
  48. ordinal : '%d.',
  49. week : {
  50. dow : 1, // Monday is the first day of the week.
  51. doy : 4 // The week that contains Jan 4th is the first week of the year.
  52. }
  53. });
  54. return nb;
  55. }));