Skip to content

Commit 2b1f0d9

Browse files
authored
Merge pull request #379 from zhang-accounting/fix/i18n-auto-extraction
feat: add i18n extraction server and some i18n
2 parents b4e1332 + a549c50 commit 2b1f0d9

File tree

8 files changed

+524
-14
lines changed

8 files changed

+524
-14
lines changed

frontend/package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"lint": "eslint .",
1010
"preview": "vite preview",
1111
"prettier:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
12-
"prettier:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'"
12+
"prettier:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
13+
"i18n-server": "node src/server.js"
1314
},
1415
"dependencies": {
15-
1616
"@mantine/hooks": "^7.12.0",
1717
"@radix-ui/react-accordion": "^1.2.1",
1818
"@radix-ui/react-dialog": "^1.1.2",
@@ -45,7 +45,7 @@
4545
"react-day-picker": "8.10.1",
4646
"react-dom": "^18.3.1",
4747
"react-dropzone": "^14.2.3",
48-
"react-i18next": "^14.1.1",
48+
"react-i18next": "^15.0.2",
4949
"react-router": "^6.23.1",
5050
"react-router-dom": "^6.23.1",
5151
"recharts": "^2.12.7",
@@ -70,10 +70,13 @@
7070
"@vitejs/plugin-react": "^4.3.2",
7171
"@vitejs/plugin-react-swc": "^3.5.0",
7272
"autoprefixer": "^10.4.20",
73+
"body-parser": "^1.20.3",
74+
"cors": "^2.8.5",
7375
"eslint": "^9.11.1",
7476
"eslint-config-prettier": "^9.1.0",
7577
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
7678
"eslint-plugin-react-refresh": "^0.4.12",
79+
"express": "^4.21.0",
7780
"globals": "^15.9.0",
7881
"husky": "^9.0.11",
7982
"i18next-parser": "^8.13.0",
@@ -86,5 +89,10 @@
8689
"typescript-eslint": "^8.7.0",
8790
"vite": "^5.4.8",
8891
"vite-plugin-compression": "^0.5.1"
92+
},
93+
"husky": {
94+
"hooks": {
95+
"pre-commit": "pnpm run prettier:fix"
96+
}
8997
}
9098
}

0 commit comments

Comments
 (0)