fix: display modify dates for already guaranteed changeable rates
This commit is contained in:
committed by
Michael Zetterberg
parent
b8a976db22
commit
2abd4c5c12
@@ -4,6 +4,7 @@ import "dayjs/locale/fi"
|
||||
import "dayjs/locale/sv"
|
||||
|
||||
import d from "dayjs"
|
||||
import nb from "dayjs/locale/nb"
|
||||
import advancedFormat from "dayjs/plugin/advancedFormat"
|
||||
import duration from "dayjs/plugin/duration"
|
||||
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
|
||||
@@ -19,43 +20,7 @@ import utc from "dayjs/plugin/utc"
|
||||
* https://day.js.org/docs/en/customization/customization
|
||||
* https://github.com/iamkun/dayjs/blob/dev/src/locale/nb.js
|
||||
*/
|
||||
d.locale("no", {
|
||||
name: "no",
|
||||
weekdays: "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
|
||||
weekdaysShort: "sø._ma._ti._on._to._fr._lø.".split("_"),
|
||||
weekdaysMin: "sø_ma_ti_on_to_fr_lø".split("_"),
|
||||
months:
|
||||
"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split(
|
||||
"_"
|
||||
),
|
||||
monthsShort:
|
||||
"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),
|
||||
ordinal: (n: any) => `${n}.`,
|
||||
weekStart: 1,
|
||||
formats: {
|
||||
LT: "HH:mm",
|
||||
LTS: "HH:mm:ss",
|
||||
L: "DD.MM.YYYY",
|
||||
LL: "D. MMMM YYYY",
|
||||
LLL: "D. MMMM YYYY [kl.] HH:mm",
|
||||
LLLL: "dddd D. MMMM YYYY [kl.] HH:mm",
|
||||
},
|
||||
relativeTime: {
|
||||
future: "om %s",
|
||||
past: "%s siden",
|
||||
s: "noen sekunder",
|
||||
m: "ett minutt",
|
||||
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",
|
||||
},
|
||||
})
|
||||
d.locale("no", { ...nb, name: "no" }, true)
|
||||
|
||||
/**
|
||||
* If more plugins are needed https://day.js.org/docs/en/plugin/plugin
|
||||
|
||||
Reference in New Issue
Block a user