nn.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:
  17. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  18. monthsParseExact: true,
  19. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  20. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  21. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  22. weekdaysParseExact: true,
  23. longDateFormat: {
  24. LT: 'HH:mm',
  25. LTS: 'HH:mm:ss',
  26. L: 'DD.MM.YYYY',
  27. LL: 'D. MMMM YYYY',
  28. LLL: 'D. MMMM YYYY [kl.] H:mm',
  29. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  30. },
  31. calendar: {
  32. sameDay: '[I dag klokka] LT',
  33. nextDay: '[I morgon klokka] LT',
  34. nextWeek: 'dddd [klokka] LT',
  35. lastDay: '[I går klokka] LT',
  36. lastWeek: '[Føregåande] dddd [klokka] LT',
  37. sameElse: 'L',
  38. },
  39. relativeTime: {
  40. future: 'om %s',
  41. past: '%s sidan',
  42. s: 'nokre sekund',
  43. ss: '%d sekund',
  44. m: 'eit minutt',
  45. mm: '%d minutt',
  46. h: 'ein time',
  47. hh: '%d timar',
  48. d: 'ein dag',
  49. dd: '%d dagar',
  50. w: 'ei veke',
  51. ww: '%d veker',
  52. M: 'ein månad',
  53. MM: '%d månader',
  54. y: 'eit år',
  55. yy: '%d år',
  56. },
  57. dayOfMonthOrdinalParse: /\d{1,2}\./,
  58. ordinal: '%d.',
  59. week: {
  60. dow: 1, // Monday is the first day of the week.
  61. doy: 4, // The week that contains Jan 4th is the first week of the year.
  62. },
  63. });
  64. return nn;
  65. })));