| 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 |
import moment from '../moment'; |
| 8 |
|
| 9 |
export default moment.defineLocale('nb', { |
| 10 |
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( |
| 11 |
'_' |
| 12 |
), |
| 13 |
monthsShort: |
| 14 |
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), |
| 15 |
monthsParseExact: true, |
| 16 |
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), |
| 17 |
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), |
| 18 |
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), |
| 19 |
weekdaysParseExact: true, |
| 20 |
longDateFormat: { |
| 21 |
LT: 'HH:mm', |
| 22 |
LTS: 'HH:mm:ss', |
| 23 |
L: 'DD.MM.YYYY', |
| 24 |
LL: 'D. MMMM YYYY', |
| 25 |
LLL: 'D. MMMM YYYY [kl.] HH:mm', |
| 26 |
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', |
| 27 |
}, |
| 28 |
calendar: { |
| 29 |
sameDay: '[i dag kl.] LT', |
| 30 |
nextDay: '[i morgen kl.] LT', |
| 31 |
nextWeek: 'dddd [kl.] LT', |
| 32 |
lastDay: '[i går kl.] LT', |
| 33 |
lastWeek: '[forrige] dddd [kl.] LT', |
| 34 |
sameElse: 'L', |
| 35 |
}, |
| 36 |
relativeTime: { |
| 37 |
future: 'om %s', |
| 38 |
past: '%s siden', |
| 39 |
s: 'noen sekunder', |
| 40 |
ss: '%d sekunder', |
| 41 |
m: 'ett minutt', |
| 42 |
mm: '%d minutter', |
| 43 |
h: 'én time', |
| 44 |
hh: '%d timer', |
| 45 |
d: 'én dag', |
| 46 |
dd: '%d dager', |
| 47 |
w: 'én uke', |
| 48 |
ww: '%d uker', |
| 49 |
M: 'én måned', |
| 50 |
MM: '%d måneder', |
| 51 |
y: 'ett år', |
| 52 |
yy: '%d år', |
| 53 |
}, |
| 54 |
dayOfMonthOrdinalParse: /\d{1,2}\./, |
| 55 |
ordinal: '%d.', |
| 56 |
week: { |
| 57 |
dow: 1, // Monday is the first day of the week. |
| 58 |
doy: 4, // The week that contains Jan 4th is the first week of the year. |
| 59 |
}, |
| 60 |
}); |