Skip to content

Commit

Permalink
Add LanguageDetector frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowflash2041 committed Oct 31, 2022
1 parent 299ff9f commit 0903352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -21,7 +21,7 @@ appService
const path = config?.SUB_PATH || '/';
i18n
.use(Backend)
// .use(LanguageDetector)
.use(LanguageDetector)
.use(initReactI18next)
.init({
load: 'languageOnly',
Expand Down

0 comments on commit 0903352

Please sign in to comment.