@@ -453,4 +453,5 @@ export const languageEnglish = {
|
|||||||
imgGenInstructions: "Image Generation Instructions",
|
imgGenInstructions: "Image Generation Instructions",
|
||||||
usePlainFetchWarn: "Please disable this option when using NovelAI, as it can cause CORS errors when using NovelAI.",
|
usePlainFetchWarn: "Please disable this option when using NovelAI, as it can cause CORS errors when using NovelAI.",
|
||||||
translationPrompt: "Translation Prompt",
|
translationPrompt: "Translation Prompt",
|
||||||
|
webdeeplwarn: "This option is not recommended for use with web version, as it can cause CORS errors.",
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
import OptionInput from "src/lib/UI/GUI/OptionInput.svelte";
|
import OptionInput from "src/lib/UI/GUI/OptionInput.svelte";
|
||||||
import SelectInput from "src/lib/UI/GUI/SelectInput.svelte";
|
import SelectInput from "src/lib/UI/GUI/SelectInput.svelte";
|
||||||
import { alertNormal } from "src/ts/alert";
|
import { alertNormal } from "src/ts/alert";
|
||||||
import { downloadFile } from "src/ts/storage/globalApi";
|
import { downloadFile, isTauri } from "src/ts/storage/globalApi";
|
||||||
import { languageEnglish } from "src/lang/en";
|
import { languageEnglish } from "src/lang/en";
|
||||||
import TextInput from "src/lib/UI/GUI/TextInput.svelte";
|
import TextInput from "src/lib/UI/GUI/TextInput.svelte";
|
||||||
import TextAreaInput from "src/lib/UI/GUI/TextAreaInput.svelte";
|
import TextAreaInput from "src/lib/UI/GUI/TextAreaInput.svelte";
|
||||||
@@ -61,7 +61,9 @@
|
|||||||
</SelectInput>
|
</SelectInput>
|
||||||
|
|
||||||
{#if $DataBase.translatorType === 'deepl'}
|
{#if $DataBase.translatorType === 'deepl'}
|
||||||
|
{#if !isTauri}
|
||||||
|
<span class="text-draculared text-xs ml-2">{language.webdeeplwarn}</span>
|
||||||
|
{/if}
|
||||||
<span class="text-textcolor mt-4">{language.deeplKey}</span>
|
<span class="text-textcolor mt-4">{language.deeplKey}</span>
|
||||||
<TextInput bind:value={$DataBase.deeplOptions.key} />
|
<TextInput bind:value={$DataBase.deeplOptions.key} />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user