From cf305bcad8175d2df9b5a3e1947b27a6fa45a9a7 Mon Sep 17 00:00:00 2001 From: ocBruno Date: Thu, 30 Jan 2020 21:41:54 -0300 Subject: [PATCH] fix(i18n): fix file type --- src/{i18n.tsx => i18n.ts} | 6 ------ src/index.tsx | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) rename src/{i18n.tsx => i18n.ts} (94%) 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'))