Skip to content

Commit

Permalink
revert transliteration module to use cl backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar committed Jun 29, 2024
1 parent 99320f2 commit 8cd0e0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useState, useRef, memo } from "react";
import { IndicTransliterate } from "@ai4bharat/indic-transliterate";
import { IndicTransliterate } from "indic-transliterate";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router-dom";
import subscript from "config/subscript";
Expand Down Expand Up @@ -719,6 +719,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
>
{taskData?.src_language !== "en" && enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
lang={taskData?.src_language}
value={item.text}
onChange={(event) => {
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Organization/Video/TranslationRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
MenuItem,
useMediaQuery,
} from "@mui/material";
import { IndicTransliterate } from "@ai4bharat/indic-transliterate";
import { IndicTransliterate } from "indic-transliterate";
import ButtonComponent from "./components/ButtonComponent";
import SettingsButtonComponent from "./components/SettingsButtonComponent";
import Pagination from "./components/Pagination";
Expand Down Expand Up @@ -801,6 +801,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show

{enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
lang={taskData?.target_language}
value={item.target_text}
onChangeText={(text) => {
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Organization/Video/VoiceOverRightPanel1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import TaskAltIcon from "@mui/icons-material/TaskAlt";
import { Box, CardContent, CircularProgress, Grid, IconButton, Menu, Tooltip, Typography } from "@mui/material";
import SettingsButtonComponent from "./components/SettingsButtonComponent";
import Pagination from "./components/Pagination";
import { IndicTransliterate } from "@ai4bharat/indic-transliterate";
import { IndicTransliterate } from "indic-transliterate";
import subscript from "config/subscript";
import superscriptMap from "config/superscript";
import {
Expand Down Expand Up @@ -950,6 +950,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
{taskData?.target_language !== "en" &&
enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
lang={taskData?.target_language}
value={item.text}
onChangeText={(text) => {
Expand Down

0 comments on commit 8cd0e0f

Please sign in to comment.