diff --git a/package.json b/package.json index d983cbdaa9..f750179b25 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "cmdk": "1.1.1", "dayjs": "^1.11.11", "embla-carousel-react": "^8.6.0", - "i18next": "^23.16.4", + "i18next": "^25.8.11", "i18next-resources-to-backend": "^1.2.1", "jotai": "^2.12.2", "js-cookie": "^3.0.5", @@ -51,7 +51,7 @@ "react": "^19.2.0", "react-dom": "^19.2.0", "react-hook-form": "^7.66.0", - "react-i18next": "^15.1.0", + "react-i18next": "^16.5.4", "react-icons": "^5.5.0", "react-intersection-observer": "^9.16.0", "react-markdown": "^10.1.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e0c9337b08..2179508fa1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,8 +66,8 @@ importers: specifier: ^8.6.0 version: 8.6.0(react@19.2.0) i18next: - specifier: ^23.16.4 - version: 23.16.4 + specifier: ^25.8.11 + version: 25.8.11(typescript@5.7.3) i18next-resources-to-backend: specifier: ^1.2.1 version: 1.2.1 @@ -96,8 +96,8 @@ importers: specifier: ^7.66.0 version: 7.66.0(react@19.2.0) react-i18next: - specifier: ^15.1.0 - version: 15.1.0(i18next@23.16.4)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + specifier: ^16.5.4 + version: 16.5.4(i18next@25.8.11(typescript@5.7.3))(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.7.3) react-icons: specifier: ^5.5.0 version: 5.5.0(react@19.2.0) @@ -3895,8 +3895,13 @@ packages: i18next-resources-to-backend@1.2.1: resolution: {integrity: sha512-okHbVA+HZ7n1/76MsfhPqDou0fptl2dAlhRDu2ideXloRRduzHsqDOznJBef+R3DFZnbvWoBW+KxJ7fnFjd6Yw==} - i18next@23.16.4: - resolution: {integrity: sha512-9NIYBVy9cs4wIqzurf7nLXPyf3R78xYbxExVqHLK9od3038rjpyOEzW+XB130kZ1N4PZ9inTtJ471CRJ4Ituyg==} + i18next@25.8.11: + resolution: {integrity: sha512-LZ32llTLGludnddjLoijHV7TbmVubU5eJnsWf8taiuM3jmSfUuvBLuyDeubJKS1yBjLBgb7As124M4KWNcBvpw==} + peerDependencies: + typescript: ^5 + peerDependenciesMeta: + typescript: + optional: true iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} @@ -5009,18 +5014,21 @@ packages: peerDependencies: react: ^16.8.0 || ^17 || ^18 || ^19 - react-i18next@15.1.0: - resolution: {integrity: sha512-zj3nJynMnZsy2gPZiOTC7XctCY5eQGqT3tcKMmfJWC9FMvgd+960w/adq61j8iPzpwmsXejqID9qC3Mqu1Xu2Q==} + react-i18next@16.5.4: + resolution: {integrity: sha512-6yj+dcfMncEC21QPhOTsW8mOSO+pzFmT6uvU7XXdvM/Cp38zJkmTeMeKmTrmCMD5ToT79FmiE/mRWiYWcJYW4g==} peerDependencies: - i18next: '>= 23.2.3' + i18next: '>= 25.6.2' react: '>= 16.8.0' react-dom: '*' react-native: '*' + typescript: ^5 peerDependenciesMeta: react-dom: optional: true react-native: optional: true + typescript: + optional: true react-icons@5.5.0: resolution: {integrity: sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw==} @@ -5753,6 +5761,11 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + use-sync-external-store@1.6.0: + resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -10000,9 +10013,11 @@ snapshots: dependencies: '@babel/runtime': 7.28.6 - i18next@23.16.4: + i18next@25.8.11(typescript@5.7.3): dependencies: '@babel/runtime': 7.28.6 + optionalDependencies: + typescript: 5.7.3 iconv-lite@0.6.3: dependencies: @@ -11258,14 +11273,16 @@ snapshots: dependencies: react: 19.2.0 - react-i18next@15.1.0(i18next@23.16.4)(react-dom@19.2.0(react@19.2.0))(react@19.2.0): + react-i18next@16.5.4(i18next@25.8.11(typescript@5.7.3))(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.7.3): dependencies: '@babel/runtime': 7.28.6 html-parse-stringify: 3.0.1 - i18next: 23.16.4 + i18next: 25.8.11(typescript@5.7.3) react: 19.2.0 + use-sync-external-store: 1.6.0(react@19.2.0) optionalDependencies: react-dom: 19.2.0(react@19.2.0) + typescript: 5.7.3 react-icons@5.5.0(react@19.2.0): dependencies: @@ -12209,6 +12226,10 @@ snapshots: dependencies: react: 19.2.0 + use-sync-external-store@1.6.0(react@19.2.0): + dependencies: + react: 19.2.0 + util-deprecate@1.0.2: {} vfile-message@4.0.3: diff --git a/resources/js/i18n-client.ts b/resources/js/i18n-client.ts index 0863ddfda7..b89b5f4cbd 100644 --- a/resources/js/i18n-client.ts +++ b/resources/js/i18n-client.ts @@ -20,6 +20,7 @@ i18n detection: { order: ['htmlTag'], }, + showSupportNotice: false, }); export default i18n; diff --git a/resources/js/i18n-server.ts b/resources/js/i18n-server.ts index db556346c2..046541a1f3 100644 --- a/resources/js/i18n-server.ts +++ b/resources/js/i18n-server.ts @@ -18,6 +18,7 @@ export const createServerI18nInstance = async (locale: string) => { lng: locale, fallbackLng: 'en_US', interpolation: { escapeValue: false }, + showSupportNotice: false, }); return i18nInstance;