UNPKG

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