Merged in feat/SW-1745-language-switcher-non-contentstack-pages (pull request #1501)

feat(SW-1745): Query for language switcher returns just current pathname for non-contentstack pages except for hotelreservation paths

* feat(SW-1745): Query for language switcher returns just current pathname for non-contentstack pages except for hotelreservation paths


Approved-by: Linus Flood
This commit is contained in:
Erik Tiekstra
2025-03-10 09:06:19 +00:00
parent 1009ea87c9
commit 19bb965298
11 changed files with 267 additions and 260 deletions
@@ -2,9 +2,7 @@ import { z } from "zod"
import { Lang } from "@/constants/languages"
export const getLanguageSwitcherInput = z
.object({
lang: z.nativeEnum(Lang),
pathName: z.string(),
})
.optional()
export const getLanguageSwitcherInput = z.object({
lang: z.nativeEnum(Lang),
pathName: z.string(),
})