Fix: Certain languages not loading due to bad map.

This commit is contained in:
Paul
2021-07-06 08:56:30 +01:00
parent 3f001df7cb
commit 025a5c7eab
2 changed files with 6 additions and 1 deletions

View File

@@ -160,7 +160,7 @@ function Locale({ children, locale }: Props) {
dayjs["sameElse"] = DATE_FORMATS[date];
Object.keys(dayjs)
.filter((k) => k !== "defaults")
.filter((k) => typeof dayjs[k] === 'string')
.forEach(
(k) =>
(dayjs[k] = dayjs[k].replace(