Skip to content

Commit

Permalink
Merge pull request #233 from marcusasplund/patch-1
Browse files Browse the repository at this point in the history
add danish locale
  • Loading branch information
iamkun authored Jun 11, 2018
2 parents 2814f2f + 0dc26b7 commit 1f962c0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/locale/da.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import dayjs from 'dayjs'

const locale = {
name: 'da',
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
ordinal: n => `${n}.`,
relativeTime: {
future: 'om %s',
past: '%s siden',
s: 'få sekunder',
m: 'et minut',
mm: '%d minutter',
h: 'en time',
hh: '%d timer',
d: 'en dag',
dd: '%d dage',
M: 'en måned',
MM: '%d måneder',
y: 'et år',
yy: '%d år'
}
}

dayjs.locale(locale, null, true)

export default locale

0 comments on commit 1f962c0

Please sign in to comment.