mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-21 12:01:05 +00:00
9da348bdf3
- 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
22 lines
721 B
TypeScript
22 lines
721 B
TypeScript
import { Loader2 } from 'lucide-react';
|
|
import { useTranslation } from '@/i18n';
|
|
|
|
interface LoadingScreenProps {
|
|
message?: string;
|
|
}
|
|
|
|
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">
|
|
<div className="w-16 h-16 rounded-full bg-primary/20 flex items-center justify-center">
|
|
<Loader2 className="w-8 h-8 text-primary animate-spin" />
|
|
</div>
|
|
</div>
|
|
<p className="mt-4 text-sm text-muted-foreground">{displayMessage}</p>
|
|
</div>
|
|
);
|
|
}
|