✨ Breadcrumbs with navigation for mobile
All checks were successful
Build and deploy website / build (push) Successful in 33s
All checks were successful
Build and deploy website / build (push) Successful in 33s
This commit is contained in:
@ -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)
|
||||
}
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user