chore(i18n): disable automatic browser language detection (#12671)

* chore(i18n): disable automatic browser language detection, hardcode English

* chore(i18n): remove language selector from Settings page
This commit is contained in:
Ram Gopal Srikar Katakam
2026-04-13 16:26:42 -04:00
committed by GitHub
parent 2da54a50d1
commit 4be5f7f52f
2 changed files with 1 additions and 9 deletions

View File

@ -2,16 +2,11 @@ import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import en from "./locales/en.json";
const detectedLang =
localStorage.getItem("languagePreference") ||
navigator.language.split("-")[0] ||
"en";
i18n.use(initReactI18next).init({
resources: {
en: { translation: en },
},
lng: detectedLang,
lng: "en",
fallbackLng: "en",
interpolation: {
escapeValue: false,

View File

@ -21,7 +21,6 @@ import type {
} from "../../../../types/components";
import useScrollToElement from "../hooks/use-scroll-to-element";
import GeneralPageHeaderComponent from "./components/GeneralPageHeader";
import LanguageFormComponent from "./components/LanguageForm";
import PasswordFormComponent from "./components/PasswordForm";
import ProfilePictureFormComponent from "./components/ProfilePictureForm";
@ -139,8 +138,6 @@ export const GeneralPage = () => {
<GeneralPageHeaderComponent />
<div className="flex w-full flex-col gap-6">
<LanguageFormComponent />
{ENABLE_PROFILE_ICONS && (
<ProfilePictureFormComponent
profilePicture={profilePicture}