mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
Re-enable non latin languages
This commit is contained in:
@@ -485,11 +485,6 @@ const supportedLanguages: LanguageOption[] = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const supportedLatinLanguages = supportedLanguages.filter(
|
supportedLanguages.push({ value: undefined, name: "No Translation" });
|
||||||
(lan) => lan.script == "Latn",
|
|
||||||
);
|
|
||||||
supportedLatinLanguages.push({ value: undefined, name: "No Translation" });
|
|
||||||
|
|
||||||
export { supportedLatinLanguages };
|
export { supportedLanguages };
|
||||||
|
|
||||||
export default supportedLanguages;
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import Privacy from "../../(aboutAndPrivacy)/privacy";
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import useCreateTranscript from "../createTranscript";
|
import useCreateTranscript from "../createTranscript";
|
||||||
import SelectSearch from "react-select-search";
|
import SelectSearch from "react-select-search";
|
||||||
import { supportedLatinLanguages } from "../../supportedLanguages";
|
import { supportedLanguages } from "../../supportedLanguages";
|
||||||
|
|
||||||
const TranscriptCreate = () => {
|
const TranscriptCreate = () => {
|
||||||
// const transcript = useTranscript(stream, api);
|
// const transcript = useTranscript(stream, api);
|
||||||
@@ -95,7 +95,7 @@ const TranscriptCreate = () => {
|
|||||||
<p>Do you want to enable live translation?</p>
|
<p>Do you want to enable live translation?</p>
|
||||||
<SelectSearch
|
<SelectSearch
|
||||||
search
|
search
|
||||||
options={supportedLatinLanguages}
|
options={supportedLanguages}
|
||||||
value={targetLanguage}
|
value={targetLanguage}
|
||||||
onChange={onLanguageChange}
|
onChange={onLanguageChange}
|
||||||
placeholder="Choose your language"
|
placeholder="Choose your language"
|
||||||
|
|||||||
Reference in New Issue
Block a user