refactor: remove translation feature

Remove the translation feature including:
- Translation services (Smesh API and LibreTranslate)
- TranslationServiceProvider and context
- TranslateButton component
- Translation settings page
- useTranslatedEvent hook
- Translation-related types and i18n strings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
mleku
2025-12-27 04:11:24 +02:00
parent 0c6de715c4
commit bb74308e28
30 changed files with 23 additions and 1267 deletions

View File

@@ -7,7 +7,6 @@ import {
toPostSettings,
toRelaySettings,
toSystemSettings,
toTranslation,
toWallet
} from '@/lib/link'
import { cn } from '@/lib/utils'
@@ -20,7 +19,6 @@ import {
Copy,
Info,
KeyRound,
Languages,
Palette,
PencilLine,
Server,
@@ -61,15 +59,6 @@ export default function Settings() {
</div>
<ChevronRight />
</SettingItem>
{!!pubkey && (
<SettingItem className="clickable" onClick={() => push(toTranslation())}>
<div className="flex items-center gap-4">
<Languages />
<div>{t('Translation')}</div>
</div>
<ChevronRight />
</SettingItem>
)}
{!!pubkey && (
<SettingItem className="clickable" onClick={() => push(toWallet())}>
<div className="flex items-center gap-4">