Disabled picking browsers language in localisation (#4502)

This commit is contained in:
Kavin Venkatachalam 2022-10-20 16:48:13 +05:30 committed by GitHub
parent d238454a12
commit 306a53622c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ import { App } from './App';
// eslint-disable-next-line import/no-unresolved
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
// import LanguageDetector from 'i18next-browser-languagedetector';
import Backend from 'i18next-http-backend';
const AppWithProfiler = Sentry.withProfiler(App);
@ -21,7 +21,7 @@ appService
const path = config?.SUB_PATH || '/';
i18n
.use(Backend)
.use(LanguageDetector)
// .use(LanguageDetector)
.use(initReactI18next)
.init({
load: 'languageOnly',