feat: i18n
Showing
client/next-i18next.config.js
0 → 100644
| ... | ... | @@ -25,12 +25,14 @@ |
| "cookie": "^0.5.0", | ||
| "crypto": "^1.0.1", | ||
| "date-fns": "^2.30.0", | ||
| "echarts": "^5.4.1", | ||
| "dayjs": "^1.11.7", | ||
| "echarts": "^5.4.1", | ||
| "formidable": "^2.1.1", | ||
| "framer-motion": "^9.0.6", | ||
| "hyperdown": "^2.4.29", | ||
| "i18next": "^22.5.1", | ||
| "immer": "^9.0.19", | ||
| "js-cookie": "^3.0.5", | ||
| "jsonwebtoken": "^9.0.0", | ||
| "lodash": "^4.17.21", | ||
| "mammoth": "^1.5.1", | ||
| ... | ... | @@ -38,6 +40,7 @@ |
| "mongoose": "^6.10.0", | ||
| "nanoid": "^4.0.1", | ||
| "next": "13.1.6", | ||
| "next-i18next": "^13.3.0", | ||
| "nextjs-cors": "^2.1.2", | ||
| "nodemailer": "^6.9.1", | ||
| "nprogress": "^0.2.0", | ||
| ... | ... | @@ -48,6 +51,7 @@ |
| "react-day-picker": "^8.7.1", | ||
| "react-dom": "18.2.0", | ||
| "react-hook-form": "^7.43.1", | ||
| "react-i18next": "^12.3.1", | ||
| "react-markdown": "^8.0.7", | ||
| "react-syntax-highlighter": "^15.5.0", | ||
| "reactflow": "^11.7.4", | ||
| ... | ... | @@ -65,6 +69,7 @@ |
| "@svgr/webpack": "^6.5.1", | ||
| "@types/cookie": "^0.5.1", | ||
| "@types/formidable": "^2.0.5", | ||
| "@types/js-cookie": "^3.0.3", | ||
| "@types/jsonwebtoken": "^9.0.1", | ||
| "@types/lodash": "^4.14.191", | ||
| "@types/node": "18.14.0", | ||
| ... | ... |
This diff is collapsed.
Click to expand it.
client/public/locales/en/common.json
0 → 100644
client/public/locales/zh/common.json
0 → 100644
client/src/utils/i18n.ts
0 → 100644
| ... | ... | @@ -8,8 +8,11 @@ |
| }, | ||
| "devDependencies": { | ||
| "husky": "^8.0.3", | ||
| "i18next": "^23.2.11", | ||
| "lint-staged": "^13.2.1", | ||
| "prettier": "^2.8.7" | ||
| "next-i18next": "^14.0.0", | ||
| "prettier": "^2.8.7", | ||
| "react-i18next": "^13.0.2" | ||
| }, | ||
| "lint-staged": { | ||
| "./**/**/*.{ts,tsx,scss}": "npm run format" | ||
| ... | ... |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment