nn.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //! moment.js locale configuration
  2. //! locale : Nynorsk [nn]
  3. //! authors : https://github.com/mechuwind
  4. //! Stephen Ramthun : https://github.com/stephenramthun
  5. ;(function (global, factory) {
  6. typeof exports === 'object' && typeof module !== 'undefined'
  7. && typeof require === 'function' ? factory(require('../moment')) :
  8. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  9. factory(global.moment)
  10. }(this, (function (moment) { 'use strict';
  11. //! moment.js locale configuration
  12. var nn = moment.defineLocale('nn', {
  13. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  14. '_'
  15. ),
  16. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  17. '_'
  18. ),
  19. monthsParseExact: true,
  20. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  21. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  22. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  23. weekdaysParseExact: true,
  24. longDateFormat: {
  25. LT: 'HH:mm',
  26. LTS: 'HH:mm:ss',
  27. L: 'DD.MM.YYYY',
  28. LL: 'D. MMMM YYYY',
  29. LLL: 'D. MMMM YYYY [kl.] H:mm',
  30. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  31. },
  32. calendar: {
  33. sameDay: '[I dag klokka] LT',
  34. nextDay: '[I morgon klokka] LT',
  35. nextWeek: 'dddd [klokka] LT',
  36. lastDay: '[I går klokka] LT',
  37. lastWeek: '[Føregåande] dddd [klokka] LT',
  38. sameElse: 'L',
  39. },
  40. relativeTime: {
  41. future: 'om %s',
  42. past: '%s sidan',
  43. s: 'nokre sekund',
  44. ss: '%d sekund',
  45. m: 'eit minutt',
  46. mm: '%d minutt',
  47. h: 'ein time',
  48. hh: '%d timar',
  49. d: 'ein dag',
  50. dd: '%d dagar',
  51. w: 'ei veke',
  52. ww: '%d veker',
  53. M: 'ein månad',
  54. MM: '%d månader',
  55. y: 'eit år',
  56. yy: '%d år',
  57. },
  58. dayOfMonthOrdinalParse: /\d{1,2}\./,
  59. ordinal: '%d.',
  60. week: {
  61. dow: 1, // Monday is the first day of the week.
  62. doy: 4, // The week that contains Jan 4th is the first week of the year.
  63. },
  64. });
  65. return nn;
  66. })));