Skip to content

Commit

Permalink
Merge pull request #250 from cowai/master
Browse files Browse the repository at this point in the history
Added Norwegian Bokmål "nb" locale.
  • Loading branch information
iamkun authored Jun 22, 2018
2 parents 857e6bc + 00cbd8d commit 7f13ae1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/locale/nb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import dayjs from 'dayjs'

const locale = {
name: 'nb',
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
ordinal: n => `${n}.`,
relativeTime: {
future: 'om %s',
past: 'for %s siden',
s: 'noen sekunder',
m: 'ett minuttt',
mm: '%d minutter',
h: 'en time',
hh: '%d timer',
d: 'en dag',
dd: '%d dager',
M: 'en måned',
MM: '%d måneder',
y: 'ett år',
yy: '%d år'
}
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit 7f13ae1

Please sign in to comment.