Skip to content

Commit

Permalink
Undo broken clientside eval
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachinman committed Dec 9, 2018
1 parent d16a1c8 commit 28193d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/create-i18next-client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import isNode from 'detect-node'
import i18next from 'i18next'
import i18nextXHRBackend from 'i18next-xhr-backend'
import i18nextBrowserLanguageDetector from 'i18next-browser-languagedetector'

const i18n = i18next.default ? i18next.default : i18next
i18n.nsFromReactTree = []
Expand All @@ -15,7 +16,6 @@ export default (config) => {
} else {
i18n.use(i18nextXHRBackend)
if (config.browserLanguageDetection) {
const i18nextBrowserLanguageDetector = eval("require('i18next-browser-languagedetector')")
i18n.use(i18nextBrowserLanguageDetector)
}
}
Expand Down

0 comments on commit 28193d8

Please sign in to comment.