Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Detect browser language and always redirect to locale - fixed #1108

Liyas Thomas86922df61a8c
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