Skip to content

Commit

Permalink
fix: disable browser language detection
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Apr 21, 2023
1 parent 2e7f224 commit ef946e3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit ef946e3

Please sign in to comment.