misc: make default translation language your locale
This commit is contained in:
1 parent
990f073715
commit
6ac44d2d6c
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { Button, Modal, Select, Spinner, TextArea } from 'mono-svelte'
|
||||
import { text } from './translation'
|
||||
import { t } from '$lib/translations'
|
||||
import { locale, t } from '$lib/translations'
|
||||
import { userSettings } from '$lib/settings'
|
||||
import { ArrowRight, Icon } from 'svelte-hero-icons'
|
||||
import MarkdownEditor from '../markdown/MarkdownEditor.svelte'
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
let result: Promise<TranslateResponse> | undefined = undefined
|
||||
let from = 'auto'
|
||||
let to = 'en'
|
||||
let to = $locale
|
||||
|
||||
async function translate(text: string) {
|
||||
const url = $userSettings.translator
|
||||
|
||||
Reference in new issue
Block a user