Re-enable non latin languages

This commit is contained in:
Koper
2023-10-30 19:24:10 +00:00
parent 86f4de7958
commit a96277d50b
2 changed files with 4 additions and 9 deletions

View File

@@ -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;

View File

@@ -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"