cleanup: remove translation

This commit is contained in:
James Xylight committed 2025-02-02 17:43:40 -08:00
1 parent 87fba8af04
commit acf92a7647
6 files changed
-180

No files matched your search

@@ -55,7 +55,6 @@
} from 'mono-svelte'
import { fediseer, type Data } from '$lib/fediseer/fediseer'
import { t } from '$lib/translations'
import { text } from '$lib/components/translate/translation'
import { hidePost, postLink } from './helpers'
import { feature } from '$lib/version'
import Switch from '$lib/components/input/Switch.svelte'
@@ -121,12 +120,6 @@
</Modal>
{/if}
{#if translating}
{#await import('$lib/components/translate/Translation.svelte') then { default: Translation }}
<Translation bind:open={translating} />
{/await}
{/if}
<footer
class="flex flex-row gap-2 items-center flex-shrink-0 {buttonHeight}"
class:flex-row-reverse={settings.posts.reverseActions}
@@ -378,20 +371,6 @@
</div>
{/if}
</MenuButton>
{#if post.post.body && settings.translator}
<MenuButton
onclick={() => {
// @ts-ignore
text.set(post.post.body)
translating = !translating
}}
>
{#snippet prefix()}
<Icon src={Language} size="16" micro />
{/snippet}
{$t('post.actions.more.translate')}
</MenuButton>
{/if}
{#if $profile?.jwt}
<MenuButton
onclick={() => {