nn.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. })));