Breadcrumbs with navigation for mobile
All checks were successful
Build and deploy website / build (push) Successful in 33s

This commit is contained in:
2025-03-16 21:32:11 +01:00
parent 05ef06f95c
commit dc4d564059
3 changed files with 17 additions and 11 deletions

View File

@ -31,10 +31,11 @@ const {
} = entry!.data
function localeDateString(isoString: string): string {
let template = "DD-MM-YYYY"
if (languageTag() === "nb") {
return dayjs(isoString).locale(languageTag()).format("DD/MM/YYYY")
template = "DD/MM/YYYY"
}
return dayjs(isoString).locale(languageTag()).format("DD-MM-YYYY")
return dayjs(isoString).locale(languageTag()).format(template)
}
---