From 5d549648b27ba33312351562ee41572b9aaa6ca9 Mon Sep 17 00:00:00 2001 From: Erik Vroon Date: Wed, 17 Jan 2024 11:54:02 +0100 Subject: [PATCH] Fix translations on Vercel (#409) Translations are not shown properly in vercel, fix: https://github.com/i18next/next-i18next/issues/1552#issuecomment-981156476 --- frontend/next-i18next.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/next-i18next.config.js b/frontend/next-i18next.config.js index bc66d834a..df089c27c 100644 --- a/frontend/next-i18next.config.js +++ b/frontend/next-i18next.config.js @@ -1,7 +1,9 @@ /** @type {import('next-i18next').UserConfig} */ +const path = require('path'); module.exports = { i18n: { locales: ['en', 'zh-CN'], defaultLocale: 'en', + localePath: path.resolve('./public/locales') }, };