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
9 lines
177 B
TypeScript
9 lines
177 B
TypeScript
import { z } from "zod"
|
|
|
|
import { Lang } from "@/constants/languages"
|
|
|
|
export const getLanguageSwitcherInput = z.object({
|
|
lang: z.nativeEnum(Lang),
|
|
pathName: z.string(),
|
|
})
|