Skip to content

Commit 87c8973

Browse files
author
yidafu
committed
feat: init i18n config and deps
1 parent 2c18256 commit 87c8973

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

web/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
3-
"plugins": ["react", "@typescript-eslint", "prettier"],
3+
"plugins": ["react", "@typescript-eslint", "prettier", "i18n"],
44
"settings": {
55
"react": {
66
"pragma": "React",

web/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@
1919
"@types/node": "^15.0.2",
2020
"@types/react": "^17.0.2",
2121
"babel-loader": "^8.2.2",
22+
"babel-plugin-i18next-extract": "^0.9.0",
2223
"clean-webpack-plugin": "^4.0.0-alpha.0",
2324
"css-loader": "^5.2.4",
2425
"css-minimizer-webpack-plugin": "^3.0.0",
2526
"file-loader": "^6.2.0",
2627
"html-webpack-plugin": "^5.3.1",
28+
"i18next": "^22.4.12",
29+
"i18next-browser-languagedetector": "^7.0.1",
30+
"i18next-parser": "^1.0.0-beta38",
2731
"mini-css-extract-plugin": "^1.6.0",
2832
"monaco-editor": "^0.30.1",
2933
"monaco-editor-webpack-plugin": "^6.0.0",
@@ -45,6 +49,7 @@
4549
"cross-env": "^7.0.3",
4650
"eslint": "^7.32.0",
4751
"eslint-config-prettier": "^6.9.0",
52+
"eslint-plugin-i18n": "^2.1.0",
4853
"eslint-plugin-prettier": "^4.0.0",
4954
"eslint-plugin-react": "^7.17.0",
5055
"json-format": "^1.0.1",
@@ -54,6 +59,7 @@
5459
"pretty-format": "^27.0.2",
5560
"react": "^17.0.2",
5661
"react-dom": "^17.0.2",
62+
"react-i18next": "^12.2.0",
5763
"react-redux": "^6.0.1",
5864
"react-router": "^5.2.0",
5965
"react-router-dom": "^5.2.0",

0 commit comments

Comments
 (0)