mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
feat(ui): secret blind index banner in secret main page and removed i18n translations for now by keeping en as only option
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { initReactI18next } from "react-i18next";
|
import { initReactI18next } from "react-i18next";
|
||||||
import i18n from "i18next";
|
import i18n from "i18next";
|
||||||
import LanguageDetector from "i18next-browser-languagedetector";
|
// import LanguageDetector from "i18next-browser-languagedetector";
|
||||||
import Backend from "i18next-http-backend";
|
import Backend from "i18next-http-backend";
|
||||||
// don't want to use this?
|
// don't want to use this?
|
||||||
// have a look at the Quick start guide
|
// have a look at the Quick start guide
|
||||||
@@ -13,17 +13,18 @@ i18n
|
|||||||
.use(Backend)
|
.use(Backend)
|
||||||
// detect user language
|
// detect user language
|
||||||
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
||||||
.use(LanguageDetector)
|
// .use(LanguageDetector)
|
||||||
// pass the i18n instance to react-i18next.
|
// pass the i18n instance to react-i18next.
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
// init i18next
|
// init i18next
|
||||||
// for all options read: https://www.i18next.com/overview/configuration-options
|
// for all options read: https://www.i18next.com/overview/configuration-options
|
||||||
.init({
|
.init({
|
||||||
|
lng:"en",
|
||||||
fallbackLng: "en",
|
fallbackLng: "en",
|
||||||
supportedLngs: ["en", "ko", "fr", "pt-BR", "pt-PT", "es"],
|
// supportedLngs: ["en", "ko", "fr", "pt-BR", "pt-PT", "es"],
|
||||||
debug: process.env.NODE_ENV === "development",
|
debug: process.env.NODE_ENV === "development",
|
||||||
detection: {
|
detection: {
|
||||||
lookupLocalStorage: "lang"
|
// lookupLocalStorage: "lang"
|
||||||
},
|
},
|
||||||
ns: ["translations"],
|
ns: ["translations"],
|
||||||
interpolation: {
|
interpolation: {
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ import {
|
|||||||
useGetWsTags
|
useGetWsTags
|
||||||
} from "@app/hooks/api";
|
} from "@app/hooks/api";
|
||||||
|
|
||||||
|
import { ProjectIndexSecretsSection } from "../SecretOverviewPage/components/ProjectIndexSecretsSection";
|
||||||
import { ActionBar } from "./components/ActionBar";
|
import { ActionBar } from "./components/ActionBar";
|
||||||
import { CreateSecretForm } from "./components/CreateSecretForm";
|
import { CreateSecretForm } from "./components/CreateSecretForm";
|
||||||
import { FolderListView } from "./components/FolderListView";
|
import { FolderListView } from "./components/FolderListView";
|
||||||
@@ -219,6 +220,7 @@ export const SecretMainPage = () => {
|
|||||||
protectionPolicyName={boardPolicy?.name}
|
protectionPolicyName={boardPolicy?.name}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<ProjectIndexSecretsSection decryptFileKey={decryptFileKey!} />
|
||||||
{!isRollbackMode ? (
|
{!isRollbackMode ? (
|
||||||
<>
|
<>
|
||||||
<ActionBar
|
<ActionBar
|
||||||
|
|||||||
-2
@@ -1,4 +1,3 @@
|
|||||||
import { ChangeLanguageSection } from "../ChangeLanguageSection";
|
|
||||||
import { DeleteAccountSection } from "../DeleteAccountSection";
|
import { DeleteAccountSection } from "../DeleteAccountSection";
|
||||||
import { EmergencyKitSection } from "../EmergencyKitSection";
|
import { EmergencyKitSection } from "../EmergencyKitSection";
|
||||||
import { SessionsSection } from "../SessionsSection";
|
import { SessionsSection } from "../SessionsSection";
|
||||||
@@ -8,7 +7,6 @@ export const PersonalGeneralTab = () => {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<UserNameSection />
|
<UserNameSection />
|
||||||
<ChangeLanguageSection />
|
|
||||||
<SessionsSection />
|
<SessionsSection />
|
||||||
<EmergencyKitSection />
|
<EmergencyKitSection />
|
||||||
<DeleteAccountSection />
|
<DeleteAccountSection />
|
||||||
|
|||||||
Reference in New Issue
Block a user