From 8cedfe483f604bf67e8b6eb2b994c277b453490e Mon Sep 17 00:00:00 2001 From: Collin Brown Date: Fri, 11 Sep 2020 11:34:19 -0400 Subject: [PATCH] Enable automatic language detection from browser --- frontend/i18n/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/i18n/index.js b/frontend/i18n/index.js index f5d6456d..559fb56e 100644 --- a/frontend/i18n/index.js +++ b/frontend/i18n/index.js @@ -18,5 +18,10 @@ export default { defaultLocale: 'en', vueI18n: { fallbackLocale: 'en' + }, + detectBrowserLanguage: { + useCookie: true, + cookieKey: 'i18n_redirected', + onlyOnRoot: true, // for SEO purposes } }