Skip to content

Commit

Permalink
update react-component-lib example
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Oct 26, 2023
1 parent b9cd375 commit 4619862
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 69 deletions.
138 changes: 75 additions & 63 deletions example/react-component-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions example/react-component-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"i18next": "22.4.9",
"i18next-browser-languagedetector": "7.0.1",
"i18next-http-backend": "2.1.1",
"i18next": "23.6.0",
"i18next-browser-languagedetector": "7.1.0",
"i18next-http-backend": "2.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-i18next": "12.1.4",
"react-i18next": "13.3.1",
"react-scripts": "5.0.1"
},
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions example/react-component-lib/src/other-lib/i18n.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createInstance } from 'i18next';
import { initReactI18next } from 'react-i18next';

const i18n = createInstance({
fallbackLng: 'en',
Expand All @@ -23,6 +22,6 @@ const i18n = createInstance({
},
});

i18n.use(initReactI18next).init();
i18n.init();

export default i18n;

0 comments on commit 4619862

Please sign in to comment.