fix language setting
This commit is contained in:
parent
39222f037d
commit
927d1a78b5
@ -9,6 +9,7 @@ import {DownloadStatus} from '../pages/Downloads';
|
||||
import {SettingsType} from '../pages/Settings';
|
||||
import {IntroductionContent} from '../pages/Home';
|
||||
import {AboutContent} from '../pages/About';
|
||||
import i18n from 'i18next';
|
||||
|
||||
export enum ModelStatus {
|
||||
Offline,
|
||||
@ -120,6 +121,9 @@ class CommonStore {
|
||||
else
|
||||
WindowSetLightTheme();
|
||||
|
||||
if (this.settings.language)
|
||||
i18n.changeLanguage(this.settings.language);
|
||||
|
||||
if (saveConfig)
|
||||
saveConfigs();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user