fixed paddle locale

This commit is contained in:
Codex Agent
2025-10-27 21:05:06 +01:00
parent 5432456ffd
commit f29067f570
6 changed files with 146 additions and 66 deletions

View File

@@ -6,7 +6,7 @@ import { useCheckoutWizard } from "../WizardContext";
import type { GoogleProfilePrefill } from '../types';
import LoginForm, { AuthUserPayload } from "../../../auth/LoginForm";
import RegisterForm, { RegisterSuccessPayload } from "../../../auth/RegisterForm";
import { useTranslation } from 'react-i18next';
import { Trans, useTranslation } from 'react-i18next';
import toast from 'react-hot-toast';
import { LoaderCircle } from "lucide-react";
@@ -104,10 +104,20 @@ export const AuthStep: React.FC<AuthStepProps> = ({ privacyHtml, googleProfile,
if (isAuthenticated && authUser) {
return (
<div className="space-y-6">
<Alert>
<AlertTitle>{t('checkout.auth_step.already_logged_in_title')}</AlertTitle>
<AlertDescription>
{t('checkout.auth_step.already_logged_in_desc', { email: authUser?.email || '' })}
<Alert className="border-primary/40 bg-primary/5">
<AlertTitle className="text-xl font-semibold">
{t('checkout.auth_step.already_logged_in_title')}
</AlertTitle>
<AlertDescription className="space-y-2 text-base leading-relaxed">
<Trans
t={t}
i18nKey="checkout.auth_step.already_logged_in_body"
components={{ strong: <span className="font-semibold" /> }}
values={{ email: authUser?.email || '' }}
/>
<p className="text-sm text-muted-foreground">
{t('checkout.auth_step.already_logged_in_hint')}
</p>
</AlertDescription>
</Alert>
<div className="flex justify-end">