Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(i18n): fix file type
Browse files Browse the repository at this point in the history
  • Loading branch information
ocBruno committed Jan 31, 2020
1 parent b4135b8 commit cf305bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/i18n.tsx → 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';

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Expand Up @@ -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(<App />, document.getElementById('root'))

Expand Down

0 comments on commit cf305bc

Please sign in to comment.