Skip to content

Commit

Permalink
Merge pull request #833 from AI4Bharat/exportVOTR
Browse files Browse the repository at this point in the history
minor change for xlit endpoint
  • Loading branch information
ishvindersethi22 authored Oct 10, 2024
2 parents 083dbec + 7336d5a commit 12c24de
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 9 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@ai4bharat/indic-transliterate": "^1.3.6",
"@ai4bharat/indic-transliterate": "^1.3.8",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.6",
Expand Down
2 changes: 2 additions & 0 deletions src/common/FindAndReplace.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ const FindAndReplace = (props) => {

<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={transliterationLanguage}
value={findValue}
onChangeText={(text) => {
Expand Down Expand Up @@ -422,6 +423,7 @@ const FindAndReplace = (props) => {

<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={transliterationLanguage}
value={replaceValue}
onChangeText={(text) => setReplaceValue(text)}
Expand Down
2 changes: 2 additions & 0 deletions src/common/GlossaryDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const GlossaryDialog = ({
<Grid item md={6} xs={12} sx={{ mt: 3 }}>
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={sourceLanguage}
value={sourceText}
onChange={(event) => setSourceText(event.target.value)}
Expand All @@ -196,6 +197,7 @@ const GlossaryDialog = ({
<Grid item md={6} xs={12} sx={{ mt: 3 }}>
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={targetLanguage}
value={targetText}
onChange={(event) => setTargetText(event.target.value)}
Expand Down
2 changes: 1 addition & 1 deletion src/config/apiendpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const endpoints = {
task: "/task/",

//Transliteration
transliteration: "/api/generic/transliteration/",
transliteration: "/xlit-api/generic/transliteration/",

//Glossary
glossary: "/glossary/",
Expand Down
1 change: 1 addition & 0 deletions src/containers/Organization/Video/ParaphraseRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ const ParaphraseRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showT
{taskData?.src_language !== "en" && enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={taskData?.src_language}
value={item.paraphrased_text}
onChangeText={(text) => {
Expand Down
1 change: 1 addition & 0 deletions src/containers/Organization/Video/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ const RightPanel = ({ currentIndex, currentSubs,setCurrentIndex, showTimeline, s
{taskData?.src_language !== "en" && enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={taskData?.src_language}
value={item.text}
onChange={(event) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ const TranslationRightPanel = ({ currentIndex, currentSubs,setCurrentIndex, show
{enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={taskData?.target_language}
value={item.target_text}
onChangeText={(text) => {
Expand Down
1 change: 1 addition & 0 deletions src/containers/Organization/Video/VoiceOverRightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ const VoiceOverRightPanel = ({ setCurrentIndex }) => {
enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={taskData?.target_language}
value={item.text}
onChangeText={(text) => {
Expand Down
1 change: 1 addition & 0 deletions src/containers/Organization/Video/VoiceOverRightPanel1.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ const VoiceOverRightPanel1 = ({ currentIndex, setCurrentIndex, showTimeline, seg
enableTransliteration ? (
<IndicTransliterate
customApiURL={`${configs.BASE_URL_AUTO}${endpoints.transliteration}`}
apiKey={`JWT ${localStorage.getItem("token")}`}
lang={taskData?.target_language}
value={item.text}
onChangeText={(text) => {
Expand Down

0 comments on commit 12c24de

Please sign in to comment.