Skip to content

Commit

Permalink
update icu sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Apr 18, 2018
1 parent e46fbfe commit f9df6e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/react_icu_withHOC/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"i18next": "11.2.2",
"i18next-browser-languagedetector": "2.1.0",
"i18next-icu": "0.1.0",
"i18next-icu": "0.3.0",
"i18next-xhr-backend": "1.5.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
Expand Down
6 changes: 5 additions & 1 deletion example/react_icu_withHOC/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import i18n from 'i18next';
import Backend from 'i18next-xhr-backend';
import LanguageDetector from 'i18next-browser-languagedetector';
import { reactI18nextModule } from 'react-i18next';

import ICU from 'i18next-icu'
import de from 'i18next-icu/locale-data/de';

i18n
.use(ICU)
.use(new ICU({
localeData: de // you also can pass in array of localeData
}))
.use(Backend)
.use(LanguageDetector)
.use(reactI18nextModule)
Expand Down

0 comments on commit f9df6e8

Please sign in to comment.