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:
Akhil Mohan
2024-02-28 14:47:50 +05:30
parent d9828db2ec
commit e6a89fb9d0
3 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -1,6 +1,6 @@
import { initReactI18next } from "react-i18next";
import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
// import LanguageDetector from "i18next-browser-languagedetector";
import Backend from "i18next-http-backend";
// don't want to use this?
// have a look at the Quick start guide
@@ -13,17 +13,18 @@ i18n
.use(Backend)
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// .use(LanguageDetector)
// pass the i18n instance to react-i18next.
.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
lng:"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",
detection: {
lookupLocalStorage: "lang"
// lookupLocalStorage: "lang"
},
ns: ["translations"],
interpolation: {