cleanup: remove translation
This commit is contained in:
1 parent
87fba8af04
commit
acf92a7647
6 files changed
-180
No files matched your search
@@ -26,8 +26,6 @@
|
||||
import { deleteItem, save } from '$lib/lemmy/contentview.js'
|
||||
import { Button, Menu, MenuButton, MenuDivider } from 'mono-svelte'
|
||||
import { t } from '$lib/translations'
|
||||
import Translation from '$lib/components/translate/Translation.svelte'
|
||||
import { text } from '$lib/components/translate/translation'
|
||||
import { settings } from '$lib/settings.svelte'
|
||||
|
||||
interface Props {
|
||||
@@ -101,20 +99,6 @@
|
||||
<Icon src={Square2Stack} mini size="16" />
|
||||
<div>{$t('comment.actions.link')}</div>
|
||||
</MenuButton>
|
||||
{#if settings.translator}
|
||||
<MenuButton
|
||||
onclick={() => {
|
||||
// @ts-ignore
|
||||
text.set(comment.comment.content)
|
||||
translating = !translating
|
||||
}}
|
||||
>
|
||||
{#snippet prefix()}
|
||||
<Icon src={Language} size="16" mini />
|
||||
{/snippet}
|
||||
{$t('post.actions.more.translate')}
|
||||
</MenuButton>
|
||||
{/if}
|
||||
{#if $profile?.jwt}
|
||||
{#if comment.creator.id == $profile.user?.local_user_view.person.id}
|
||||
<MenuButton onclick={() => dispatcher('edit', comment)}>
|
||||
|
||||
@@ -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={() => {
|
||||
|
||||
Reference in new issue
Block a user