You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/05/28 08:09:00 UTC

[apisix-website] branch master updated: feat: disable language detection (#1124)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new eb280dd67cf feat: disable language detection (#1124)
eb280dd67cf is described below

commit eb280dd67cfd56a120c07a1b68c0af4158bc533d
Author: 琚致远 <ju...@apache.org>
AuthorDate: Sat May 28 16:08:56 2022 +0800

    feat: disable language detection (#1124)
---
 website/src/clientModules/lang-redirect.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/src/clientModules/lang-redirect.js b/website/src/clientModules/lang-redirect.js
index d3a8e400b2f..7a625361226 100644
--- a/website/src/clientModules/lang-redirect.js
+++ b/website/src/clientModules/lang-redirect.js
@@ -26,7 +26,7 @@ import config from '../../docusaurus.config';
   }
 
   function redirect() {
-    const localLang = localStorage.getItem(storeKey) || followSystem;
+    const localLang = localStorage.getItem(storeKey) || 'en';
     const lct = window.location;
     const pathArr = lct.pathname.split('/');
     const curLang = langArr.includes(pathArr[1]) ? pathArr[1] : defaultLang;