Feat(SW-3708): refactor contentstack fetching (removing all refs) and cache invalidation * Remove all REFS * Revalidate correct language * PR fixes * PR fixes * Throw when errors from contentstack api Approved-by: Joakim Jäderberg
40 lines
679 B
TypeScript
40 lines
679 B
TypeScript
import { Lang } from "@scandic-hotels/common/constants/language"
|
|
|
|
export const affix = "breadcrumbs"
|
|
|
|
// TODO: Make these editable in CMS?
|
|
export const homeBreadcrumbs: {
|
|
[key in keyof typeof Lang]: { href: string; title: string; uid: string }
|
|
} = {
|
|
[Lang.da]: {
|
|
href: "/da",
|
|
title: "Hjem",
|
|
uid: "da",
|
|
},
|
|
[Lang.de]: {
|
|
href: "/de",
|
|
title: "Heim",
|
|
uid: "de",
|
|
},
|
|
[Lang.en]: {
|
|
href: "/en",
|
|
title: "Home",
|
|
uid: "en",
|
|
},
|
|
[Lang.fi]: {
|
|
href: "/fi",
|
|
title: "Koti",
|
|
uid: "fi",
|
|
},
|
|
[Lang.no]: {
|
|
href: "/no",
|
|
title: "Hjem",
|
|
uid: "no",
|
|
},
|
|
[Lang.sv]: {
|
|
href: "/sv",
|
|
title: "Hem",
|
|
uid: "sv",
|
|
},
|
|
}
|