diff --git a/frontend/components/TryOut/NMT.tsx b/frontend/components/TryOut/NMT.tsx index 65cd3c2..76af935 100644 --- a/frontend/components/TryOut/NMT.tsx +++ b/frontend/components/TryOut/NMT.tsx @@ -1,6 +1,9 @@ "use client"; import { API_URL, LANGUAGE_CODE_NAMES } from "@/app/config"; -import { IndicTransliterate } from "@ai4bharat/indic-transliterate"; +import { + IndicTransliterate, + IndicTransliterateProps, +} from "@ai4bharat/indic-transliterate"; import { Button, Card, @@ -52,6 +55,13 @@ interface LanguageCodeNames { [key: string]: string; } +interface CustomIndicTransliterateProps extends IndicTransliterateProps { + customApiURL?: string; +} + +const CustomIndicTransliterate = + IndicTransliterate as React.ComponentType; + export default function NMT({ services }: { services: any }) { const [service, setService] = useState(Object.keys(services)[0]); const [sourceLanguage, setSourceLanguage] = useState( @@ -156,7 +166,8 @@ export default function NMT({ services }: { services: any }) { -