feat: add i18n support with 6 languages (en, tr, krd, ar, fa, ckb)

- Add translation system with useTranslation hook and LanguageProvider
- Auto-detect language from Telegram user settings
- Update all components and sections to use translation keys
- Support English, Turkish, Kurdish, Arabic, Persian, Sorani
This commit is contained in:
2026-02-14 11:06:14 +03:00
parent e5dd2b4b5b
commit 9da348bdf3
26 changed files with 2682 additions and 424 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
import { Loader2 } from 'lucide-react';
import { useTranslation } from '@/i18n';
interface LoadingScreenProps {
message?: string;
}
export function LoadingScreen({ message = 'Tê barkirin...' }: LoadingScreenProps) {
export function LoadingScreen({ message }: LoadingScreenProps) {
const { t } = useTranslation();
const displayMessage = message ?? t('loadingScreen.loading');
return (
<div className="flex flex-col items-center justify-center min-h-screen bg-background">
<div className="relative">
@@ -12,7 +15,7 @@ export function LoadingScreen({ message = 'Tê barkirin...' }: LoadingScreenProp
<Loader2 className="w-8 h-8 text-primary animate-spin" />
</div>
</div>
<p className="mt-4 text-sm text-muted-foreground">{message}</p>
<p className="mt-4 text-sm text-muted-foreground">{displayMessage}</p>
</div>
);
}