updated translations
This commit is contained in:
parent
307d2621ce
commit
ffae2f728b
@ -51,5 +51,6 @@
|
|||||||
"create": "बनाएं",
|
"create": "बनाएं",
|
||||||
"operation": "ऑपरेशन",
|
"operation": "ऑपरेशन",
|
||||||
"next": "अगला",
|
"next": "अगला",
|
||||||
"select": "चुनें"
|
"select": "चुनें",
|
||||||
|
"productCode": "प्रोडक्ट कोड"
|
||||||
}
|
}
|
@ -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}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user