This commit is contained in:
josc146
2023-05-20 16:07:08 +08:00
parent 5883686003
commit ca33d75f19
8 changed files with 188 additions and 149 deletions

View File

@@ -5,7 +5,20 @@ import {Labeled} from '../components/Labeled';
import commonStore from '../stores/commonStore';
import {observer} from 'mobx-react-lite';
import {useTranslation} from 'react-i18next';
import {checkUpdate, Language, Languages} from '../utils';
import {checkUpdate} from '../utils';
export const Languages = {
dev: 'English', // i18n default
zh: '简体中文'
};
export type Language = keyof typeof Languages;
export type Settings = {
language: Language,
darkMode: boolean
autoUpdatesCheck: boolean
}
export const Settings: FC = observer(() => {
const {t, i18n} = useTranslation();