From f0ff5d453d288f4a787110b20748ff0dca8d91b4 Mon Sep 17 00:00:00 2001 From: ajnart Date: Wed, 18 Jan 2023 17:54:18 +0900 Subject: [PATCH] :pencil2: Try to fix locales on vercel --- next-i18next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next-i18next.config.js b/next-i18next.config.js index b1b50ec42..5d52e6dcf 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,3 +1,5 @@ +const path = require('path'); + module.exports = { // https://www.i18next.com/overview/configuration-options#logging i18n: { @@ -23,6 +25,7 @@ module.exports = { 'uk', 'zh', ], + localePath: path.resolve('./public/locales'), fallbackLng: 'en', localeDetection: true, returnEmptyString: false,