From 5f7545a6431e6562904e793d9a5d7c8771ba86d5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 25 May 2022 16:35:57 +0200 Subject: [PATCH] Fix i18n --- next-i18next.config.js | 9 --------- next.config.js | 10 ++++++++-- 2 files changed, 8 insertions(+), 11 deletions(-) delete mode 100644 next-i18next.config.js diff --git a/next-i18next.config.js b/next-i18next.config.js deleted file mode 100644 index e503276..0000000 --- a/next-i18next.config.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - i18n: { - defaultLocale: "it-IT", - locales: [ - "it-IT", - ], - localePath: path.resolve('./public/locales'), - } -} \ No newline at end of file diff --git a/next.config.js b/next.config.js index b37ed1e..2213e76 100644 --- a/next.config.js +++ b/next.config.js @@ -1,9 +1,15 @@ -import i18n from "./next-i18next.config" +const path = require("path") /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, - i18n, + i18n: { + defaultLocale: "it-IT", + locales: [ + "it-IT", + ], + localePath: path.resolve('./public/locales'), + } } module.exports = nextConfig