Skip to content

Commit f3ee50c

Browse files
committed
fix settings tab not updating when lang changes
1 parent f9f7bd0 commit f3ee50c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/containers/Settings/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { sc } from "../../utils/sizeScaler";
2020
import Advanced from "./Tab/Advanced";
2121
import General from "./Tab/General";
2222
import Languages from "./Tab/Languages";
23+
import i18n from "../../locales";
2324

2425
const MODAL_WIDTH = 500;
2526
const MODAL_HEIGHT = 300;
@@ -41,7 +42,7 @@ const SettingsModal = () => {
4142
{ label: t("settings_lang_tab_title"), type: "languages" },
4243
{ label: t("settings_advanced_tab_title"), type: "advanced" },
4344
],
44-
[]
45+
[t, i18n.language]
4546
);
4647

4748
const tabComponents = useMemo(

0 commit comments

Comments
 (0)