From 3ef3086b164ce71ae5e1d7712b3d5fbdc26b8e9f Mon Sep 17 00:00:00 2001 From: Shanks0465 Date: Thu, 29 Aug 2024 13:21:19 +0530 Subject: [PATCH 1/3] Added Transliteration Downgradeed --- frontend/components/TryOut/NMT.tsx | 21 ++++++--------------- frontend/package-lock.json | 8 ++++---- frontend/package.json | 2 +- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/frontend/components/TryOut/NMT.tsx b/frontend/components/TryOut/NMT.tsx index 4993e88..27a5f8b 100644 --- a/frontend/components/TryOut/NMT.tsx +++ b/frontend/components/TryOut/NMT.tsx @@ -17,10 +17,7 @@ import { import { LANGUAGE_CODE_NAMES } from "@/app/config"; import axios from "axios"; import { API_URL } from "@/app/config"; -const IndicTransliterate = - typeof window !== "undefined" - ? require("@ai4bharat/indic-transliterate").IndicTransliterate - : null; +import { IndicTransliterate } from "@ai4bharat/indic-transliterate"; const fetchTranslation = async ({ sourceLanguage, @@ -124,29 +121,23 @@ export default function NMT({ - {/* ( -