forked from iamkun/dayjs
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnn.js
30 lines (27 loc) · 811 Bytes
/
nn.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import dayjs from 'dayjs-ext'
const locale = {
name: 'nn',
weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
ordinal: n => `${n}.`,
relativeTime: {
future: 'om %s',
past: 'for %s sidan',
s: 'nokre sekund',
m: 'eitt minutt',
mm: '%d minutt',
h: 'ein time',
hh: '%d timar',
d: 'ein dag',
dd: '%d dagar',
M: 'ein månad',
MM: '%d månadar',
y: 'eitt år',
yy: '%d år'
}
}
dayjs.locale(locale, null, true)
export default locale