Skip to content

Commit

Permalink
fix: update Dutch [nl] locale ordinal (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
tziyang-lum committed Jun 4, 2022
1 parent 41b1405 commit 5da98f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/locale/nl.js
Expand Up @@ -8,7 +8,7 @@ const locale = {
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
monthsShort: 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
ordinal: n => `${n}.`,
ordinal: (n) => `${n}${n === 1 || n === 8 || n >= 20 ? 'ste' : 'de'}`,
weekStart: 1,
yearStart: 4,
formats: {
Expand All @@ -33,7 +33,8 @@ const locale = {
MM: '%d maanden',
y: 'een jaar',
yy: '%d jaar'
}
},

}

dayjs.locale(locale, null, true)
Expand Down

0 comments on commit 5da98f8

Please sign in to comment.