UNPKG

2.45 kBJavaScriptView Raw
1//! moment.js locale configuration
2//! locale : Norwegian Bokmål [nb]
3//! authors : Espen Hovlandsdal : https://github.com/rexxars
4//! Sigurd Gartmann : https://github.com/sigurdga
5//! Stephen Ramthun : https://github.com/stephenramthun
6
7;(function (global, factory) {
8 typeof exports === 'object' && typeof module !== 'undefined'
9 && typeof require === 'function' ? factory(require('../moment')) :
10 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
11 factory(global.moment)
12}(this, (function (moment) { 'use strict';
13
14 //! moment.js locale configuration
15
16 var nb = moment.defineLocale('nb', {
17 months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
18 '_'
19 ),
20 monthsShort:
21 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
22 monthsParseExact: true,
23 weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
24 weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
25 weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
26 weekdaysParseExact: true,
27 longDateFormat: {
28 LT: 'HH:mm',
29 LTS: 'HH:mm:ss',
30 L: 'DD.MM.YYYY',
31 LL: 'D. MMMM YYYY',
32 LLL: 'D. MMMM YYYY [kl.] HH:mm',
33 LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
34 },
35 calendar: {
36 sameDay: '[i dag kl.] LT',
37 nextDay: '[i morgen kl.] LT',
38 nextWeek: 'dddd [kl.] LT',
39 lastDay: '[i går kl.] LT',
40 lastWeek: '[forrige] dddd [kl.] LT',
41 sameElse: 'L',
42 },
43 relativeTime: {
44 future: 'om %s',
45 past: '%s siden',
46 s: 'noen sekunder',
47 ss: '%d sekunder',
48 m: 'ett minutt',
49 mm: '%d minutter',
50 h: 'en time',
51 hh: '%d timer',
52 d: 'en dag',
53 dd: '%d dager',
54 w: 'en uke',
55 ww: '%d uker',
56 M: 'en måned',
57 MM: '%d måneder',
58 y: 'ett år',
59 yy: '%d år',
60 },
61 dayOfMonthOrdinalParse: /\d{1,2}\./,
62 ordinal: '%d.',
63 week: {
64 dow: 1, // Monday is the first day of the week.
65 doy: 4, // The week that contains Jan 4th is the first week of the year.
66 },
67 });
68
69 return nb;
70
71})));