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