Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

i18n: Fix application language selection with electronAPI setLocale

Luca Fontanotc4acb9d6e797
diff --git a/src/contexts/I18nContext.tsx b/src/contexts/I18nContext.tsx
index 1056749b4..5d7534b34 100644
--- a/src/contexts/I18nContext.tsx
+++ b/src/contexts/I18nContext.tsx
@@ -112,6 +112,7 @@ export function I18nProvider({ children }: { children: ReactNode }) {
useEffect(() => {
document.documentElement.lang = locale;
+ window.electronAPI?.setLocale?.(locale);
}, [locale]);
useEffect(() => {