From 133a4fce8b79ec7ef8202aff938fd818a21940f8 Mon Sep 17 00:00:00 2001 From: Torgny Walin Date: Mon, 16 Aug 2021 12:57:32 +0200 Subject: [PATCH] Update nb.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Norway (Norwegian Bokmål) follows ISO 8601 weeks. So adding `yearStart: 4` should help display correct week with `weekOfYear` plugin (`.week()` function). --- src/locale/nb.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locale/nb.js b/src/locale/nb.js index e9614dcf5..80be733cc 100644 --- a/src/locale/nb.js +++ b/src/locale/nb.js @@ -10,6 +10,7 @@ const locale = { monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), ordinal: n => `${n}.`, weekStart: 1, + yearStart: 4, formats: { LT: 'HH:mm', LTS: 'HH:mm:ss',