diff --git a/src/components/Layout/TopBar.jsx b/src/components/Layout/TopBar.jsx index eae5a22..ad77fe8 100644 --- a/src/components/Layout/TopBar.jsx +++ b/src/components/Layout/TopBar.jsx @@ -125,7 +125,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { if (truthyParam(verified)) { const who = (email || uname || last?.email || last?.username || "").trim(); - setSignupInfo("✅ Email confirmé" + (who ? " (" + who + ")" : "") + ". Tu peux te connecter."); + setSignupInfo("✅ Email confirmed" + (who ? " (" + who + ")" : "") + ". You can log in."); setMode("login"); setShowAuth(true); @@ -133,7 +133,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { if (prefill) setLoginUser(prefill); } else if (truthyParam(signup)) { const who = (email || uname || last?.email || last?.username || "").trim(); - setSignupInfo("✅ Compte créé" + (who ? " (" + who + ")" : "") + ". Vérifie tes emails (et le spam), puis connecte-toi."); + setSignupInfo("✅ Account created" + (who ? " (" + who + ")" : "") + ". Check your emails (spam too), then log in."); setMode("login"); setShowAuth(true); @@ -195,7 +195,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { localStorage.setItem(LAST_SIGNUP_KEY, JSON.stringify({ username: u, email: em })); } catch {} - setSignupInfo("✅ Compte créé (" + em + "). Vérifie tes emails (spam aussi), puis connecte-toi."); + setSignupInfo("✅ Account created (" + em + "). Check your emails (spam too), then log in."); setMode("login"); setLoginUser(u || em); setLoginPass(""); @@ -210,7 +210,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { const toast = useMemo(() => { if (lastError) { const t = needsEmailVerification ? "warn" : "error"; - const title = needsEmailVerification ? "Vérification email requise" : "Connexion impossible"; + const title = needsEmailVerification ? "Email verification required" : "Login failed"; return { type: t, title, message: lastError }; } if (lastInfo) { @@ -225,7 +225,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { const e = new Event('beforeinstallprompt'); window.dispatchEvent(e); } else { - alert('Installation PWA non supportée sur ce navigateur.'); + alert('PWA installation not supported on this browser.'); } }; @@ -290,7 +290,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { boxShadow: '0 2px 8px rgba(0,0,0,0.3)', }} > - Installer + Install @@ -386,7 +386,7 @@ export default function TopBar({ theme = "dark", onChangeTheme }) { {needsEmailVerification ? (
- ⚠️ Ton compte demande une vérification email. Confirme ton email, puis réessaie de te connecter. + ⚠️ Your account requires email verification. Confirm your email, then try logging in again.
) : null}