diff --git a/next-i18next.config.js b/next-i18next.config.js index f9c971b..b9a1286 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -7,6 +7,6 @@ module.exports = { i18n: { locales: ['en', 'es'], defaultLocale: 'en', - localePath: path.resolve('./public/static/locales') }, + localePath: typeof window === 'undefined' ? path.resolve('./public/locales') : '/locales', }; diff --git a/next.config.mjs b/next.config.mjs index 62250e1..404aa72 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,7 +5,6 @@ const nextConfig = { locales: ['en', 'es'], defaultLocale: 'en', }, - outputFileTracing: true }; export default nextConfig; diff --git a/package.json b/package.json index be79128..6079f6d 100644 --- a/package.json +++ b/package.json @@ -40,11 +40,12 @@ "@next/eslint-plugin-next": "14.1.3", "@rainbow-me/rainbowkit": "2.0.2", "@tanstack/react-query": "5.28.0", - "i18next": "23.12.1", + "i18next": "23.7.6", "next": "14.1.3", - "next-i18next": "15.3.0", + "next-i18next": "15.2.0", "react": "18.2.0", "react-dom": "18.2.0", + "react-i18next": "14.0.0", "react-router-dom": "6.15.0", "viem": "2.8.6", "wagmi": "2.5.7" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a81a64..fcd394e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,20 +36,23 @@ dependencies: specifier: 5.28.0 version: 5.28.0(react@18.2.0) i18next: - specifier: 23.12.1 - version: 23.12.1 + specifier: 23.7.6 + version: 23.7.6 next: specifier: 14.1.3 version: 14.1.3(@babel/core@7.24.1)(react-dom@18.2.0)(react@18.2.0) next-i18next: - specifier: 15.3.0 - version: 15.3.0(i18next@23.12.1)(next@14.1.3)(react-i18next@15.0.0)(react@18.2.0) + specifier: 15.2.0 + version: 15.2.0(i18next@23.7.6)(next@14.1.3)(react-i18next@14.0.0)(react@18.2.0) react: specifier: 18.2.0 version: 18.2.0 react-dom: specifier: 18.2.0 version: 18.2.0(react@18.2.0) + react-i18next: + specifier: 14.0.0 + version: 14.0.0(i18next@23.7.6)(react-dom@18.2.0)(react-native@0.73.6)(react@18.2.0) react-router-dom: specifier: 6.15.0 version: 6.15.0(react-dom@18.2.0)(react@18.2.0) @@ -1540,7 +1543,6 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - dev: false /@babel/template@7.24.0: resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} @@ -2583,7 +2585,7 @@ packages: '@types/react': optional: true dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 '@mui/utils': 5.15.14(@types/react@18.2.15)(react@18.2.0) '@types/react': 18.2.15 prop-types: 15.8.1 @@ -2603,7 +2605,7 @@ packages: '@emotion/styled': optional: true dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 '@emotion/cache': 11.11.0 '@emotion/react': 11.11.3(@types/react@18.2.15)(react@18.2.0) '@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.15)(react@18.2.0) @@ -4931,7 +4933,7 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==} engines: {node: '>=10', npm: '>=6'} dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 cosmiconfig: 7.1.0 resolve: 1.22.8 dev: false @@ -5994,7 +5996,7 @@ packages: /dom-helpers@5.2.1: resolution: {integrity: sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==} dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 csstype: 3.1.3 dev: false @@ -7458,10 +7460,10 @@ packages: '@babel/runtime': 7.24.8 dev: false - /i18next@23.12.1: - resolution: {integrity: sha512-l4y291ZGRgUhKuqVSiqyuU2DDzxKStlIWSaoNBR4grYmh0X+pRYbFpTMs3CnJ5ECKbOI8sQcJ3PbTUfLgPRaMA==} + /i18next@23.7.6: + resolution: {integrity: sha512-O66BhXBw0fH4bEJMA0/klQKPEbcwAp5wjXEL803pdAynNbg2f4qhLIYlNHJyE7icrL6XmSZKPYaaXwy11kJ6YQ==} dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 dev: false /iconv-lite@0.6.3: @@ -8922,7 +8924,7 @@ packages: /media-query-parser@2.0.2: resolution: {integrity: sha512-1N4qp+jE0pL5Xv4uEcwVUhIkwdUO3S/9gML90nqKA7v7FcOS5vUtatfzok9S9U1EJU8dHWlcv95WLnKmmxZI9w==} dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 dev: false /memoize-one@5.2.1: @@ -9337,8 +9339,8 @@ packages: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} dev: false - /next-i18next@15.3.0(i18next@23.12.1)(next@14.1.3)(react-i18next@15.0.0)(react@18.2.0): - resolution: {integrity: sha512-bq7Cc9XJFcmGOCLnyEtHaeJ3+JJNsI/8Pkj9BaHAnhm4sZ9vNNC4ZsaqYnlRZ7VH5ypSo73fEqLK935jLsmCvQ==} + /next-i18next@15.2.0(i18next@23.7.6)(next@14.1.3)(react-i18next@14.0.0)(react@18.2.0): + resolution: {integrity: sha512-Rl5yZ4oGffsB0AjRykZ5PzNQ2M6am54MaMayldGmH/UKZisrIxk2SKEPJvaHhKlWe1qgdNi2FkodwK8sEjfEmg==} engines: {node: '>=14'} peerDependencies: i18next: '>= 23.7.13' @@ -9346,15 +9348,15 @@ packages: react: '>= 17.0.2' react-i18next: '>= 13.5.0' dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 '@types/hoist-non-react-statics': 3.3.5 core-js: 3.37.1 hoist-non-react-statics: 3.3.2 - i18next: 23.12.1 + i18next: 23.7.6 i18next-fs-backend: 2.3.1 next: 14.1.3(@babel/core@7.24.1)(react-dom@18.2.0)(react@18.2.0) react: 18.2.0 - react-i18next: 15.0.0(i18next@23.12.1)(react-dom@18.2.0)(react-native@0.73.6)(react@18.2.0) + react-i18next: 14.0.0(i18next@23.7.6)(react-dom@18.2.0)(react-native@0.73.6)(react@18.2.0) dev: false /next@14.1.3(@babel/core@7.24.1)(react-dom@18.2.0)(react@18.2.0): @@ -10161,8 +10163,8 @@ packages: react-native: 0.73.6(@babel/core@7.24.1)(@babel/preset-env@7.24.1)(react@18.2.0) dev: false - /react-i18next@15.0.0(i18next@23.12.1)(react-dom@18.2.0)(react-native@0.73.6)(react@18.2.0): - resolution: {integrity: sha512-2O3IgF4zivg57Q6p6i+ChDgJ371IDcEWbuWC6gvoh5NbkDMs0Q+O7RPr4v61+Se32E0V+LmtwePAeqWZW0bi6g==} + /react-i18next@14.0.0(i18next@23.7.6)(react-dom@18.2.0)(react-native@0.73.6)(react@18.2.0): + resolution: {integrity: sha512-OCrS8rHNAmnr8ggGRDxjakzihrMW7HCbsplduTm3EuuQ6fyvWGT41ksZpqbduYoqJurBmEsEVZ1pILSUWkHZng==} peerDependencies: i18next: '>= 23.2.3' react: '>= 16.8.0' @@ -10176,7 +10178,7 @@ packages: dependencies: '@babel/runtime': 7.24.8 html-parse-stringify: 3.0.1 - i18next: 23.12.1 + i18next: 23.7.6 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-native: 0.73.6(@babel/core@7.24.1)(@babel/preset-env@7.24.1)(react@18.2.0) @@ -10476,7 +10478,7 @@ packages: /regenerator-transform@0.15.2: resolution: {integrity: sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==} dependencies: - '@babel/runtime': 7.24.1 + '@babel/runtime': 7.24.8 /regexp.prototype.flags@1.5.2: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==}