Fix i18n: move init to root.tsx and downgrade to stable versions
Move initI18n() from entry.client.tsx to root.tsx in both Planner and Journal so i18n is initialized before any component renders. Downgrade react-i18next to 16.6.1 and i18next to 25.10.4 to avoid hydration mismatch issues introduced in newer versions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
30ae68dd69
commit
3f7499ff06
7 changed files with 252 additions and 248 deletions
16
package.json
16
package.json
|
|
@ -25,9 +25,9 @@
|
|||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@react-router/dev": "^7.13.2",
|
||||
"@react-router/node": "^7.13.2",
|
||||
"@react-router/serve": "^7.13.2",
|
||||
"@react-router/dev": "^7.13.1",
|
||||
"@react-router/node": "^7.13.1",
|
||||
"@react-router/serve": "^7.13.1",
|
||||
"@sentry/vite-plugin": "^5.1.1",
|
||||
"@tailwindcss/vite": "^4.2.2",
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
"drizzle-postgis": "^1.1.1",
|
||||
"eslint": "^10.1.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"i18next": "^25.10.9",
|
||||
"i18next": "^25.10.4",
|
||||
"i18next-browser-languagedetector": "^8.2.1",
|
||||
"jsdom": "^29.0.1",
|
||||
"leaflet": "^1.9.4",
|
||||
|
|
@ -51,13 +51,13 @@
|
|||
"prettier": "^3.8.1",
|
||||
"react": "^19.2.4",
|
||||
"react-dom": "^19.2.4",
|
||||
"react-i18next": "^16.6.6",
|
||||
"react-i18next": "^16.6.1",
|
||||
"react-leaflet": "^5.0.0",
|
||||
"react-router": "^7.13.2",
|
||||
"react-router": "^7.13.1",
|
||||
"tailwindcss": "^4.2.2",
|
||||
"turbo": "^2.8.20",
|
||||
"typescript-eslint": "^8.57.2",
|
||||
"typescript-eslint": "^8.57.1",
|
||||
"vite": "catalog:",
|
||||
"vitest": "^4.1.1"
|
||||
"vitest": "^4.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue