From 7708ee83a1182bf0704d0d1beb23940762ee3a1e Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 14 Oct 2022 13:16:46 -0600 Subject: [PATCH] Locale fixes --- next-i18next.config.js | 5 +---- next.config.js | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index a64f3380b0..402b72363c 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -3,10 +3,7 @@ const i18nConfig = require("@calcom/config/next-i18next.config"); /** @type {import("next-i18next").UserConfig} */ const config = { - i18n: { - ...i18nConfig, - localeDetection: false, - }, + ...i18nConfig, localePath: path.resolve("../web/public/static/locales"), }; diff --git a/next.config.js b/next.config.js index 0e22193499..8c56d42d09 100644 --- a/next.config.js +++ b/next.config.js @@ -18,7 +18,10 @@ const { i18n } = require("./next-i18next.config"); module.exports = withAxiom( withTM({ - i18n, + i18n: { + ...i18n, + localeDetection: false, + }, async rewrites() { return { afterFiles: [