updated translations

This commit is contained in:
Md Asif 2024-12-27 17:24:56 +05:30
parent 307d2621ce
commit ffae2f728b
2 changed files with 5 additions and 2 deletions

View File

@ -51,5 +51,6 @@
"create": "बनाएं", "create": "बनाएं",
"operation": "ऑपरेशन", "operation": "ऑपरेशन",
"next": "अगला", "next": "अगला",
"select": "चुनें" "select": "चुनें",
"productCode": "प्रोडक्ट कोड"
} }

View File

@ -2,8 +2,10 @@ import PropTypes from "prop-types";
import { AnimatePresence } from "motion/react"; import { AnimatePresence } from "motion/react";
import clsx from "clsx"; import clsx from "clsx";
import FieldError from "./FieldError"; import FieldError from "./FieldError";
import { useTranslation } from "react-i18next";
function FormSelect({ props, valid = true, className = "", options }) { function FormSelect({ props, valid = true, className = "", options }) {
const { t } = useTranslation();
return ( return (
<div> <div>
<select <select
@ -14,7 +16,7 @@ function FormSelect({ props, valid = true, className = "", options }) {
)} )}
> >
<option disabled value=""> <option disabled value="">
Select {t("select")}
</option> </option>
{options?.map(({ value, label }) => ( {options?.map(({ value, label }) => (
<option key={value} value={value}> <option key={value} value={value}>