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(
(lan) => lan.script == "Latn",
);
supportedLatinLanguages.push({ value: undefined, name: "No Translation" });
supportedLanguages.push({ value: undefined, name: "No Translation" });
export { supportedLatinLanguages };
export default supportedLanguages;
export { supportedLanguages };

View File

@@ -10,7 +10,7 @@ import Privacy from "../../(aboutAndPrivacy)/privacy";
import { useRouter } from "next/navigation";
import useCreateTranscript from "../createTranscript";
import SelectSearch from "react-select-search";
import { supportedLatinLanguages } from "../../supportedLanguages";
import { supportedLanguages } from "../../supportedLanguages";
const TranscriptCreate = () => {
// const transcript = useTranscript(stream, api);
@@ -95,7 +95,7 @@ const TranscriptCreate = () => {
<p>Do you want to enable live translation?</p>
<SelectSearch
search
options={supportedLatinLanguages}
options={supportedLanguages}
value={targetLanguage}
onChange={onLanguageChange}
placeholder="Choose your language"