From 5da98f8085d2d2847d79e38c795082703a14f24b Mon Sep 17 00:00:00 2001 From: Tzi Yang <56020413+tziyang-lum@users.noreply.github.com> Date: Sat, 4 Jun 2022 17:04:32 +0200 Subject: [PATCH] fix: update Dutch [nl] locale ordinal (#1908) https://github.com/iamkun/dayjs/issues/1907 --- src/locale/nl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/locale/nl.js b/src/locale/nl.js index b0f15a7f6..78ff454f2 100644 --- a/src/locale/nl.js +++ b/src/locale/nl.js @@ -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: { @@ -33,7 +33,8 @@ const locale = { MM: '%d maanden', y: 'een jaar', yy: '%d jaar' - } + }, + } dayjs.locale(locale, null, true)