i18n: Fix application language selection with electronAPI setLocale
This commit is contained in:
@@ -112,6 +112,7 @@ export function I18nProvider({ children }: { children: ReactNode }) {
|
||||
|
||||
useEffect(() => {
|
||||
document.documentElement.lang = locale;
|
||||
window.electronAPI?.setLocale?.(locale);
|
||||
}, [locale]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user