diff --git a/apps/extension/src/core/domains/app/store.features.ts b/apps/extension/src/core/domains/app/store.features.ts index 022ab4f9fe..dd9ee008d9 100644 --- a/apps/extension/src/core/domains/app/store.features.ts +++ b/apps/extension/src/core/domains/app/store.features.ts @@ -42,7 +42,6 @@ if (DEBUG && Browser.extension.getBackgroundPage() === window) { BUY_CRYPTO: true, // nav buttons + button in fund wallet component LINK_TX_HISTORY: true, LINK_STAKING: true, - I18N: true, USE_ONFINALITY_API_KEY: false, TEST_VARIANT: "VARIANT1", } diff --git a/apps/extension/src/core/domains/app/types.ts b/apps/extension/src/core/domains/app/types.ts index 60985e9487..e1772a731d 100644 --- a/apps/extension/src/core/domains/app/types.ts +++ b/apps/extension/src/core/domains/app/types.ts @@ -32,7 +32,6 @@ export type FeatureVariants = Partial<{ BUY_CRYPTO: boolean LINK_TX_HISTORY: boolean LINK_STAKING: boolean - I18N: boolean USE_ONFINALITY_API_KEY: boolean TEST_VARIANT: "VARIANT1" | "VARIANT2" // keep this one for string type checking }> diff --git a/apps/extension/src/ui/apps/dashboard/routes/Settings/GeneralPage.tsx b/apps/extension/src/ui/apps/dashboard/routes/Settings/GeneralPage.tsx index f07af41f46..925f97c279 100644 --- a/apps/extension/src/ui/apps/dashboard/routes/Settings/GeneralPage.tsx +++ b/apps/extension/src/ui/apps/dashboard/routes/Settings/GeneralPage.tsx @@ -12,7 +12,6 @@ import { } from "@talismn/icons" import { AvatarTypeSelect } from "@ui/domains/Settings/AvatarTypeSelect" import { useAppState } from "@ui/hooks/useAppState" -import { useIsFeatureEnabled } from "@ui/hooks/useFeatures" import { useSetting } from "@ui/hooks/useSettings" import { Trans, useTranslation } from "react-i18next" import { CtaButton, Toggle, Tooltip, TooltipContent, TooltipTrigger } from "talisman-ui" @@ -24,7 +23,6 @@ export const GeneralPage = () => { const [hasSpiritKey] = useAppState("hasSpiritKey") const [useTestnets, setUseTestnets] = useSetting("useTestnets") const [hideBalances, setHideBalances] = useSetting("hideBalances") - const i18nEnabled = useIsFeatureEnabled("I18N") const [identiconType, setIdenticonType] = useSetting("identiconType") const [allowNotifications, setAllowNotifications] = useSetting("allowNotifications") const [spiritClanFeatures, setSpiritClanFeatures] = useSetting("spiritClanFeatures") @@ -100,15 +98,13 @@ export const GeneralPage = () => { > setHideBalances(e.target.checked)} /> - {i18nEnabled && ( - - )} + { const { t, i18n } = useTranslation("admin") - const i18nEnabled = useIsFeatureEnabled("I18N") - const navigate = useNavigate() const currentLang = i18n.language const changeLang = (lang?: keyof typeof languages) => lang && i18n.changeLanguage(lang) - // TODO remove this useEffect when i18n is enabled by default - useEffect(() => { - if (!i18nEnabled) { - // redirect to general settings page - navigate("/settings/general") - } - }, [i18nEnabled, navigate]) - return ( diff --git a/apps/extension/tests/mocks/index.ts b/apps/extension/tests/mocks/index.ts index e41f0dbd9d..dd1b80f6ec 100644 --- a/apps/extension/tests/mocks/index.ts +++ b/apps/extension/tests/mocks/index.ts @@ -50,7 +50,6 @@ jest.mock("@core/util/getConfig", () => ({ BUY_CRYPTO: true, // nav buttons + button in fund wallet component LINK_TX_HISTORY: true, LINK_STAKING: true, - I18N: true, }, }) ),