diff --git a/src/i18n.tsx b/src/i18n.ts similarity index 94% rename from src/i18n.tsx rename to src/i18n.ts index 704d11c8f8..a6d53f248c 100644 --- a/src/i18n.tsx +++ b/src/i18n.ts @@ -1,5 +1,4 @@ import i18n from 'i18next'; -// import Backend from 'i18next-xhr-backend'; import LanguageDetector from 'i18next-browser-languagedetector'; import { initReactI18next } from 'react-i18next'; @@ -46,11 +45,6 @@ const resources = { i18n // load translation using xhr -> see /public/locales // learn more: https://github.com/i18next/i18next-xhr-backend - - // SET UP Backend resource - // .use(Backend) - - // detect user language // learn more: https://github.com/i18next/i18next-browser-languageDetector .use(LanguageDetector) diff --git a/src/index.tsx b/src/index.tsx index eaa56436ec..bca328c084 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import 'bootstrap/dist/css/bootstrap.min.css' import './index.css' import App from './App' import * as serviceWorker from './serviceWorker' -import './i18n.tsx' +import './i18n.ts' ReactDOM.render(, document.getElementById('root'))