Refactor i18n client and server initialization
The refactor includes the removal of clientInstance checks as they are unnecessary. Also, i18n-provider.tsx has been updated to use react-query instead of local state for client initialization. Lastly, error handling has been added to the server initialization process and the @tanstack/react-query package has been added to the project dependencies.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
"@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",
|
||||
|
||||
Reference in New Issue
Block a user