mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 07:34:10 +08:00
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:
committed by
GitHub
parent
2da54a50d1
commit
4be5f7f52f
@ -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,
|
||||
|
||||
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user