From ffae2f728b0109b019289fa68f34c44f14fda9e0 Mon Sep 17 00:00:00 2001 From: asif Date: Fri, 27 Dec 2024 17:24:56 +0530 Subject: [PATCH] updated translations --- public/locales/hi/translation.json | 3 ++- src/components/FormSelect.jsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/locales/hi/translation.json b/public/locales/hi/translation.json index f0f5c74..2e5be0a 100644 --- a/public/locales/hi/translation.json +++ b/public/locales/hi/translation.json @@ -51,5 +51,6 @@ "create": "बनाएं", "operation": "ऑपरेशन", "next": "अगला", - "select": "चुनें" + "select": "चुनें", + "productCode": "प्रोडक्ट कोड" } \ No newline at end of file diff --git a/src/components/FormSelect.jsx b/src/components/FormSelect.jsx index ce876f8..61cb614 100644 --- a/src/components/FormSelect.jsx +++ b/src/components/FormSelect.jsx @@ -2,8 +2,10 @@ import PropTypes from "prop-types"; import { AnimatePresence } from "motion/react"; import clsx from "clsx"; import FieldError from "./FieldError"; +import { useTranslation } from "react-i18next"; function FormSelect({ props, valid = true, className = "", options }) { + const { t } = useTranslation(); return (