From 86922df61a8cdd1a5a51ec4183667a8b60b1ec24 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Tue, 25 Aug 2020 21:55:23 +0530 Subject: [PATCH] Detect browser language and always redirect to locale - fixed #1108 --- nuxt.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index 16e17368b..307c813c6 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -280,6 +280,10 @@ export default { }, lazy: true, langDir: "lang/", + detectBrowserLanguage: { + alwaysRedirect: true, + fallbackLocale: "en", + }, }, /* ** Build configuration