Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(i18n): default app language to English on first launch

webadderall57e1c8c77b3b
diff --git a/src/contexts/I18nContext.tsx b/src/contexts/I18nContext.tsx
index 77670801..dda55641 100644
--- a/src/contexts/I18nContext.tsx
+++ b/src/contexts/I18nContext.tsx
@@ -123,7 +123,9 @@ function getInitialLocale(): AppLocale {
return storedLocale
}
- return normalizeLocale(window.navigator.language)
+ // Product default must be English on first launch unless user explicitly
+ // selected another locale and we persisted it in localStorage.
+ return DEFAULT_LOCALE
}
function getMessageValue(source: unknown, key: string): string | undefined {