From 37a853f3991472fb5e74b43173e5427f9dada102 Mon Sep 17 00:00:00 2001 From: Christian Andolf Date: Mon, 3 Mar 2025 08:57:18 +0100 Subject: [PATCH] fix(SW-1773): added defineMessage declarations in order for localise to find the proper schema keys --- .../HotelReservation/FindMyBooking/schema.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/apps/scandic-web/components/HotelReservation/FindMyBooking/schema.ts b/apps/scandic-web/components/HotelReservation/FindMyBooking/schema.ts index 5a4c7c68e..cf3f22a3d 100644 --- a/apps/scandic-web/components/HotelReservation/FindMyBooking/schema.ts +++ b/apps/scandic-web/components/HotelReservation/FindMyBooking/schema.ts @@ -1,5 +1,22 @@ +import { defineMessage } from "react-intl" import { z } from "zod" +defineMessage({ + id: "Invalid booking number", +}) +defineMessage({ + id: "Booking number is required", +}) +defineMessage({ + id: "First name is required", +}) +defineMessage({ + id: "Last name is required", +}) +defineMessage({ + id: "Email address is required", +}) + export const findMyBookingFormSchema = z.object({ bookingNumber: z .string()