From 38d3de18e665e0fc9bea9a7cfef28c12bb9cba6f Mon Sep 17 00:00:00 2001 From: titix Date: Wed, 17 Jul 2024 16:21:12 -0300 Subject: [PATCH] fix: config --- next-i18next.config.js | 17 ++++++++++------- package.json | 3 +-- public/locales/en/common.json | 5 +++++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index 226c96c..b9a1286 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,9 +1,12 @@ -/** @type {import('next-i18next').UserConfig} */ +/* eslint-disable @typescript-eslint/no-var-requires */ +/* eslint-disable no-undef */ + +const path = require('path'); -// eslint-disable-next-line no-undef module.exports = { - i18n: { - locales: ['en', 'es'], - defaultLocale: 'en', - }, - }; \ No newline at end of file + i18n: { + locales: ['en', 'es'], + defaultLocale: 'en', + }, + localePath: typeof window === 'undefined' ? path.resolve('./public/locales') : '/locales', +}; diff --git a/package.json b/package.json index a85ef92..be79128 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,7 @@ { - "name": "web3-react-boilerplate", + "name": "ZKchainHub", "private": true, "version": "0.0.0", - "type": "module", "license": "MIT", "author": "Wonderland", "engines": { diff --git a/public/locales/en/common.json b/public/locales/en/common.json index e69de29..41e3090 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -0,0 +1,5 @@ +{ + "HOME":{ + + } +} \ No newline at end of file