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.

58 lines
2.0 KiB

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