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 {SettingsType} from '../pages/Settings';
|
||||||
import {IntroductionContent} from '../pages/Home';
|
import {IntroductionContent} from '../pages/Home';
|
||||||
import {AboutContent} from '../pages/About';
|
import {AboutContent} from '../pages/About';
|
||||||
|
import i18n from 'i18next';
|
||||||
|
|
||||||
export enum ModelStatus {
|
export enum ModelStatus {
|
||||||
Offline,
|
Offline,
|
||||||
@ -120,6 +121,9 @@ class CommonStore {
|
|||||||
else
|
else
|
||||||
WindowSetLightTheme();
|
WindowSetLightTheme();
|
||||||
|
|
||||||
|
if (this.settings.language)
|
||||||
|
i18n.changeLanguage(this.settings.language);
|
||||||
|
|
||||||
if (saveConfig)
|
if (saveConfig)
|
||||||
saveConfigs();
|
saveConfigs();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user