Files
myeasycms-v2/packages/i18n/package.json
giancarlo ae10f7b142 Refactor i18n settings and improve language load handling
This update separates the creation of i18n settings into its own function (@kit/i18n) and enhances the handling of language and namespace loading in i18n.client. It tracks loaded languages and namespaces, and prevents rendering if none are loaded or after a maximum number of iterations. The usage of Suspense has also been modified in root-providers to employ a null fallback.
2024-04-21 18:40:12 +08:00

58 lines
1.4 KiB
JSON

{
"name": "@kit/i18n",
"private": true,
"version": "0.1.0",
"scripts": {
"clean": "git clean -xdf .turbo node_modules",
"format": "prettier --check \"**/*.{ts,tsx}\"",
"lint": "eslint .",
"typecheck": "tsc --noEmit"
},
"prettier": "@kit/prettier-config",
"exports": {
".": "./src/index.ts",
"./server": "./src/i18n.server.ts",
"./client": "./src/i18n.client.ts",
"./provider": "./src/i18n-provider.tsx"
},
"devDependencies": {
"@kit/eslint-config": "workspace:*",
"@kit/prettier-config": "workspace:*",
"@kit/shared": "workspace:^",
"@kit/tailwind-config": "workspace:*",
"@kit/tsconfig": "workspace:*",
"@tanstack/react-query": "5.29.2",
"i18next": "^23.11.2",
"i18next-browser-languagedetector": "7.2.1",
"i18next-resources-to-backend": "^1.2.1",
"react-i18next": "^14.1.0"
},
"peerDependencies": {
"@kit/shared": "^0.1.0",
"i18next": "^23.10.1",
"i18next-browser-languagedetector": "7.2.1",
"i18next-resources-to-backend": "^1.2.0",
"react-i18next": "^14.1.0"
},
"eslintConfig": {
"root": true,
"extends": [
"@kit/eslint-config/base",
"@kit/eslint-config/react"
]
},
"typesVersions": {
"*": {
"*": [
"src/*"
]
}
},
"dependencies": {
"@tanstack/react-table": "^8.16.0",
"next": "14.3.0-canary.7",
"tailwind-merge": "^2.2.2",
"zod": "^3.22.4"
}
}