From ad22d479477ff946ac8143ac183becda78768095 Mon Sep 17 00:00:00 2001 From: RaviAnand Mohabir Date: Tue, 27 Aug 2024 11:01:32 +0200 Subject: [PATCH] feat: :sparkles: use number input for guests - Add translations --- src/app/(frontend)/[locale]/contact/reservation-form.tsx | 3 ++- src/i18n/de.ts | 4 ++++ src/i18n/en.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/(frontend)/[locale]/contact/reservation-form.tsx b/src/app/(frontend)/[locale]/contact/reservation-form.tsx index 36e642b..495461e 100644 --- a/src/app/(frontend)/[locale]/contact/reservation-form.tsx +++ b/src/app/(frontend)/[locale]/contact/reservation-form.tsx @@ -4,6 +4,7 @@ import { Button } from "@/components/ui/button"; import DateTimePicker from "./date-time-picker"; import { Field } from "@/components/ui/field"; import { Input } from "@/components/ui/input"; +import { NumberInput } from "@/components/ui/number-input"; import { getI18n } from "@/i18n/server"; import { stack } from "@styled-system/patterns"; import { styled } from "@styled-system/jsx"; @@ -31,7 +32,7 @@ export default async function ReservationForm() { {t("reservation.guests")} - + {t("contact.message")} diff --git a/src/i18n/de.ts b/src/i18n/de.ts index 828963b..8325b8a 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -10,6 +10,7 @@ export default { openingTimes: "Öffnungszeiten", date: "Datum", time: "Zeit", + submit: "Absenden", en: "Englisch", de: "Deutsch", fr: "Französisch", @@ -34,4 +35,7 @@ export default { message: "Nachricht", reservation: "Reservation", }, + reservation: { + guests: "Gäste", + }, } as const; diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 758368b..4777b9d 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -10,6 +10,7 @@ export default { phoneNumber: "Phone", date: "Date", time: "Time", + submit: "Submit", en: "English", de: "German", fr: "French",