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 (