From 2e41b7f3e28b0ad5ca97d29c5985ff1dee52902e Mon Sep 17 00:00:00 2001 From: Ram Gopal Srikar Katakam <44802869+RamGopalSrikar@users.noreply.github.com> Date: Fri, 29 May 2026 17:12:02 -0400 Subject: [PATCH] fix(i18n): default to English regardless of browser locale (#13324) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, on first load with no saved language preference, the app used navigator.language as the fallback, causing users with Portuguese (pt-PT / pt-BR) or other non-English browser locales to see the UI in that language automatically. The expected behavior is that English is always the default; users can change the language explicitly via settings. Co-authored-by: Antônio Alexandre Borges Lima <104531655+AntonioABLima@users.noreply.github.com> --- src/frontend/src/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/i18n.ts b/src/frontend/src/i18n.ts index d3ec6f2af0..907b3cda90 100644 --- a/src/frontend/src/i18n.ts +++ b/src/frontend/src/i18n.ts @@ -41,7 +41,7 @@ const normalizeLanguage = (lang?: string | null): string => { }; export const detectedLang = normalizeLanguage( - localStorage.getItem("languagePreference") || navigator.language, + localStorage.getItem("languagePreference") || "en", ); const i18n = i18next.createInstance();