Commit a6b7d99c authored by BBeretta's avatar BBeretta

feat/language-translation (Change Language removed from Header component)...

feat/language-translation (Change Language removed from Header component) language added in the System Setting
parent 8b72ecb8
......@@ -190,9 +190,10 @@
"SelectOneCardAtTime": "Select one card at a time"
},
"SystemSettings": {
"AudioSettings": "Audio settings",
"AudioSettings": "Audio",
"TurnOnMusic": "Music",
"TurnOnSoundEffects": "Sound effects",
"SwitchMusicAccordingToTheEnvironment": "Switch music according to the environment"
"SwitchMusicAccordingToTheEnvironment": "Switch music according to the environment",
"LanguageSettings": "Language"
}
}
\ No newline at end of file
......@@ -109,7 +109,6 @@ export const Component = () => {
{i18n("DeckBuilding")}
</HeaderBtn>
<span style={{ flexGrow: 1 }} />
{location.pathname === "/" && <I18NSelector />}
<span className={styles.profile}>
<Dropdown
arrow
......
......@@ -6,6 +6,7 @@ import { render, unmountComponentAtNode } from "react-dom";
import { theme } from "../theme";
import { AudioSetting } from "./Audio";
import { useTranslation } from "react-i18next";
import { I18NSelector } from "../I18N";
/** 设置面板属性 */
export interface SettingProps {
......@@ -23,6 +24,11 @@ export const Setting = (props: SettingProps) => {
label: i18n("AudioSettings"),
children: <AudioSetting />,
},
{
key: "language",
label: i18n("LanguageSettings"),
children: <I18NSelector />,
},
];
return <Tabs defaultActiveKey={defaultKey} items={items} />;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment