fix language setting

This commit is contained in:
josc146 2023-05-21 17:34:24 +08:00
parent 39222f037d
commit 927d1a78b5

View File

@ -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();
};