From a597400e3f70d8771a4550a06165c26fc865e847 Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Sat, 23 May 2026 06:33:42 +0000 Subject: [PATCH] fix: language switcher defaults to EN, not browser locale --- src/components/LanguageSwitcher.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/LanguageSwitcher.tsx b/src/components/LanguageSwitcher.tsx index 4589e2b..16bce45 100644 --- a/src/components/LanguageSwitcher.tsx +++ b/src/components/LanguageSwitcher.tsx @@ -92,8 +92,12 @@ export default function LanguageSwitcher({ currentLang, onLanguageChange, compac const dropdownRef = useRef(null); useEffect(() => { - // Priority: prop > cookie > browser detection - const lang = currentLang || getLangCookie() || detectBrowserLang(); + // Priority: prop > cookie > 'en'. We intentionally do NOT auto-detect + // the browser locale here — site content is English-only at this + // point, so showing "FR" on a French-locale browser misrepresents + // the page. Users opt into another language by picking it in the + // dropdown, which then writes the cookie. + const lang = currentLang || getLangCookie() || 'en'; setActiveLang(lang); // Apply RTL if Arabic