From ef946e34504ea6acb964b3f78f0d80cfb5a59429 Mon Sep 17 00:00:00 2001 From: Yauheni Prakopchyk Date: Sat, 22 Apr 2023 00:20:00 +0400 Subject: [PATCH] fix: disable browser language detection --- packages/docs/nuxt.config.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/docs/nuxt.config.ts b/packages/docs/nuxt.config.ts index a4e4d90092..f69aa83a1d 100644 --- a/packages/docs/nuxt.config.ts +++ b/packages/docs/nuxt.config.ts @@ -140,11 +140,14 @@ export default defineNuxtConfig({ strategy: 'prefix_and_default', - detectBrowserLanguage: { - redirectOn: 'root', - useCookie: true, - cookieKey: 'i18n_locale', - }, + // TODO Browser detection was working extremely poorly and caused multiple redirects. + // Let's enable it after thorough testing. + detectBrowserLanguage: false, + // detectBrowserLanguage: { + // redirectOn: 'root', + // useCookie: true, + // cookieKey: 'i18n_locale', + // }, lazy: true,